title: Add a Intent in a class
body: <p>I need to start a new activity to show an image in Fullscreen and my Intent is in a class but outside my main class.</p>
  
  <pre><code>class PhotoItem(val user: String, val send: String, val timestamp: Long, val country: String): Item&lt;GroupieViewHolder&gt;(){
  
  override fun bind(viewHolder: GroupieViewHolder, position: kotlin.Int) {
  
  
      viewHolder.itemView.textView10.text = user
      viewHolder.itemView.textView13.text = timestamp.toString()
      viewHolder.itemView.textView14.text = country
      val uri = send
      val targetImageView = viewHolder.itemView.selectphoto_imageview
      val targetImageViewFullScreen = viewHolder.itemView.fullscreen
      Picasso.get().load(uri).into(targetImageView)
      viewHolder.itemView.setOnClickListener{v : View -&gt;
  
          v.getContext().startActivity(Intent(v.getContext(), FullscreenPhoto::class.java))
  
  
      }
  
  }
  override fun getLayout(): kotlin.Int {
      return R.layout.photo_from_row
  
  
  }
  }
  </code></pre>
  
  <p>So I found this line : <code>v.getContext().startActivity(Intent(v.getContext(), FullscreenPhoto::class.java))</code> because I can't create a basic Intent : <code>val intent = Intent(this,Home::class.java)startActivity(intent)</code></p>
  
  <p>And I need to have the val uri for load the image into my Image view</p>
  
  <p>thank you in advance.</p>