Saturday, April 13, 2013

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);

Labels: ,

0 Comments:

Post a Comment

<< Home