PowenKo, Android Tutorial,Bundle, change activity and pass data

January 12, 2012   ·   0 Comments

Intent intent = new Intent();
 	    intent.setClass(exchangeRate.this,newpage.class);
 	    Bundle bundle = new Bundle();
 	    bundle.putString("title","xxx");
 	    intent.putExtras(bundle);
 	    startActivity(intent);

newpage.class

     Intent intent=this.getIntent();
        Bundle bunde = intent.getExtras();
        String t_appslink_url=bunde.getString("title");

shareShare on FacebookShare on Google+Share on LinkedInEmail this to someonePrint this pageBuffer this pageDigg thisFlattr the authorShare on RedditPin on PinterestShare on StumbleUponShare on TumblrTweet about this on Twitter

By


Readers Comments (0)


You must be logged in to post a comment.

PowenKo’s Online Store

powenko_arduinoBook
Android7

Amazon

adsbygoogle

Recent Posts

Categories

Amazon