Just to confirm that this approach perfectly worked for me! Thanks
again!

On 22 Jun., 16:56, "Christian S." <schrott...@gmx.de> wrote:
> Great - will try and let you know .... Ch.
>
> On 22 Jun., 16:40, Sujay Krishna Suresh <sujay.coold...@gmail.com>
> wrote:
>
>
>
> > //calling activity
> > int count  = 0;
> > //perform code for counting..
> > Intent i = new Intent(Caller.this,Target.class);
> > i.putExtra("count", count);
> > startActivityForResult(i,0);
>
> > //target class
> > int count = getIntent().getIntExtra("count");
>
> > On Mon, Jun 22, 2009 at 7:26 PM, Christian S. <schrott...@gmx.de> wrote:
>
> > > Sujay, thanks for this rapid response!!!
>
> > > Do you have a sample code to illustrate how this would be working ...?
> > > Thanks, Christian
>
> > > On 22 Jun., 15:29, Sujay Krishna Suresh <sujay.coold...@gmail.com>
> > > wrote:
> > > > 'm not sure if this's the best approach...
> > > > if u r using intents to transfer control between the activities then i'd
> > > > advice u to try using the putExtra method of the Intent class...
> > > > u can read the extras in ur target activity by using
> > > getIntent.getExtras()
> > > > method... jus give it a try...
> > > > i hope this helps u...
>
> > > > On Mon, Jun 22, 2009 at 6:52 PM, Christian S. <schrott...@gmx.de> wrote:
>
> > > > > I have tried to understand for the past 2 days what is the best
> > > > > approach to making the value from a variable sitting in activity A (in
> > > > > my case, the int position used in OnListItemClick /
> > > > > OnItemSelectedListener) available in another activity B (which of
> > > > > course sits in another class). There may be the option to write the
> > > > > result of the OnListItemClick int position into a small SQLite DB -
> > > > > but that seems to be total overkill.
>
> > > > > Anybody could pls share the best approach with me?
>
> > > > > Thanks, Christian
>
> > > > --
> > > > Regards,
> > > > Sujay
> > > > P. J. O'Rourke<
> > >http://www.brainyquote.com/quotes/authors/p/p_j_orourke.html>
> > > > - "If government were a product, selling it would be illegal."
>
> > --
> > Regards,
> > Sujay
> > Henny 
> > Youngman<http://www.brainyquote.com/quotes/authors/h/henny_youngman.html>
> > - "I told the doctor I broke my leg in two places. He told me to quit
> > going
> > to those places."- Zitierten Text ausblenden -
>
> > - Zitierten Text anzeigen -- Zitierten Text ausblenden -
>
> - Zitierten Text anzeigen -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to