skill paper

  • paper
Showing posts with label Pass value using bundle. Show all posts
Showing posts with label Pass value using bundle. Show all posts

Wednesday, August 8, 2012

Passing value between activity:

Class1.java
    Intent intt=new Intent();
intt.putExtra("keyto call",value to pass);
startAcivity(intt);

key : which used to refer value in another actvity.
Class2.java

Bundle bun=Intent.getExtra();
String gh=bun.toString("Keyto call");