How to use bundle in Android Application:
===============================
/** bundle got from intent. */
private Bundle mExtras = null;
if (mExtras == null) {
mExtras = new Bundle();
}
mExtras.putString(MESSGAGE,
"Hello World");
Other end:
message = mExtras.getString( MESSAGE);
===============================
/** bundle got from intent. */
private Bundle mExtras = null;
if (mExtras == null) {
mExtras = new Bundle();
}
mExtras.putString(MESSGAGE,
"Hello World");
Other end:
message = mExtras.getString( MESSAGE);
Labels: android application, bundle
0 Comments:
Post a Comment
<< Home