• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to use putExtra when starting a new activity

 
elenora Rezaie
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you very much, I want to know that how can I use putExtra() method for sending a list of things which is kind of List to the other activity?
 
Swastik Dey
Rancher
Posts: 1643
6
Android Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may use putStringArrayListExtra method.
 
elenora Rezaie
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when I write it in my code, it has an error : create method putStringArrayListExtra(String,ArrayList<String>)! How can I fix this?
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What error is that? On which object are you invoking the method? It is in the Intent class.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic