开发者

How can I reach one activity's Intent from an another?

If I make for example an

 Intent i = new Intent();
 Bundl开发者_运维问答e b = new Bundle();
 b.putString("Number", spinner.getSelectedItem);
 i.putExtras(b);

So If I want to reach this intent from an another activity, how Can I do this?


In Android: How do I get variables/data from one screen to another?

In the onCreate in your second activity you would get the string by calling:

getIntent().getStringExtra("Number");
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜