通过从一个活动一个String数组在Android的另一个活动 [英] pass a String array from one activity to another Activity in android
本文介绍了通过从一个活动一个String数组在Android的另一个活动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有我的应用程序的两项活动。我想从一个活动传递到另一个字符串数组THA ..如何从活动通过这个值来活动?
解决方案
捆绑bundel =新包();
bundel.putStringArray(钥匙,数组);意向意图=新意图(这一点,next.class)
intent.putExtras(bundel);
startActivity(意向);
I am having two activities in my application. I want to pass tha array of String from one activity to another.. How to pass this values from activity to activity?
解决方案
Bundle bundel = new Bundle();
bundel.putStringArray("key",array);
Intent intent = new Intent(this,next.class)
intent.putExtras(bundel);
startActivity(intent);
这篇关于通过从一个活动一个String数组在Android的另一个活动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文