Use Bundle and pass it subsequent activity using intent
Eg for A has filled some values...put all values in Bundle before
invoking ACTIVITYB form
public class AACTIVITYextends Activity {
/* (non-Javadoc)
* @see android.app.Activity#onCreate(android.os.Bundle)
*/
Bundle mExtra = new Bundle();
void startformB(){
mExtra.putString("KEY","ARSHAD");
when invoking activity...
Intent i = new Intent(AACTIVITY.this,BACTIVITY.class);
//this is where data is passed to other activity
i.putExtras(mExtra);
startActivity(i);
}
}
In ACTIVITY B get all values passed from form A.
public class BACTIVITYextends Activity {
/* (non-Javadoc)
* @see android.app.Activity#onCreate(android.os.Bundle)
*/
Bundle mExtras = new Bundle();
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.myview);
///NOTE: this is where you will get all FORM A data
//use this bundle to populate FORM B data and than
invoke FORM C
mExtras.putAll(getIntent().getExtras());
}
}
The same thing you can do when invoking the third form.
On Apr 23, 11:51 am, Mohammad Siddiqui <[email protected]>
wrote:
> This is Android application
>
> On 4/22/10, Mike dg <[email protected]> wrote:
>
>
>
>
>
>
>
> > Is this a web app or an Android app?
>
> > -Mike dg
>
> > On Apr 22, 8:29 am, Mohammad Siddiqui <[email protected]> wrote:
> > > Hi everyone,
>
> > > i have therre consecutive form ,after filling the form one i press the
> > > next button on the first form to go
> > > to the second form then prees the next button to go to the third
> > > form.from third form i have a button to
> > > post the data on a specific url.the problem is that how can get the
> > > first and second form data on the
> > > last form
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to [email protected]
> > > To unsubscribe from this group, send email to
> > > [email protected]<android-developers%2Bunsubs
> > > [email protected]>
> > > For more options, visit this group athttp://
> > groups.google.com/group/android-developers?hl=en
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]<android-developers%2Bunsubs
> > [email protected]>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group
> athttp://groups.google.com/group/android-developers?hl=en
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en