[android-developers] Re: Starting an Activity by sending an Intent with Extra Data

2009-02-19 Thread reshma
Hi, The intent will be received in onCreate of SecondActivity To obtain the extra data u sent from firstActivity, use the following code: int rowid = getIntent().getIntExtra("com.foo.bar.android.app.rowid", 0); To obtain string values, there is a similar function called "getStringExtra". --~

[android-developers] Re: Starting an Activity by sending an Intent with Extra Data

2009-02-19 Thread dillirao malipeddi
Hi in second secondActivity's onCreate() try Bundle extras = getIntent().getExtras(); int value = extras.getInt("com.foo.bar.android.app.rowid"); you can get value of first intent in variable value On Thu, Feb 19, 2009 at 4:52 PM, Graeme wrote: > > Hi > > I have a newbie question wh