[android-developers] Re: How to pass data when switching between activities in an application

2009-01-08 Thread A R

check putExtra method in Intent Class

Regards,
Amit.

On Jan 8, 12:37 pm, Asif k asifk1...@gmail.com wrote:
 Hi all,

   In an application I am switching between HomeApp.java activity to
 ListApp.java activity
 using following code :

                 Intent filelist = new Intent(this, ListApp.class);
         startActivity(filelist);

 Other than just switching , how can I pass some data( e.g. String
 name, Int no etc. that we are passing in methods) from HomeApp to
 ListApp??

 Please reply.Thanks in advance.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Re: How to pass data when switching between activities in an application

2009-01-08 Thread Asif k

Hi Amit,

Thanks for ur reply

I had Used it like following ,

Intent filelist = new Intent(this, ListApp.class);
showButton.putExtra(android_giude.AndroidView.hello,Asif
here);
startActivity(filelist);

But my doubt is how to retrive this value in the ListApp activity??
Please reply ASAP.

thanks,
Asif

On Jan 8, 1:25 pm, A R amit.r...@gmail.com wrote:
 check putExtra method in Intent Class

 Regards,
 Amit.

 On Jan 8, 12:37 pm, Asif k asifk1...@gmail.com wrote:



  Hi all,

    In an application I am switching between HomeApp.java activity to
  ListApp.java activity
  using following code :

                  Intent filelist = new Intent(this, ListApp.class);
          startActivity(filelist);

  Other than just switching , how can I pass some data( e.g. String
  name, Int no etc. that we are passing in methods) from HomeApp to
  ListApp??

  Please reply.Thanks in advance.- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Re: How to pass data when switching between activities in an application

2009-01-08 Thread lummie

In the onCreate or else where in the activity:

String value = this.getIntent().getStringExtra
(android_giude.AndroidView.hello);

there are severla getExtra methods for retrieving different types
of data.

On Jan 8, 10:18 am, Asif k asifk1...@gmail.com wrote:
 Hi Amit,

 Thanks for ur reply

 I had Used it like following ,

         Intent filelist = new Intent(this, ListApp.class);
         showButton.putExtra(android_giude.AndroidView.hello,Asif
 here);
         startActivity(filelist);

 But my doubt is how to retrive this value in the ListApp activity??
 Please reply ASAP.

 thanks,
 Asif

 On Jan 8, 1:25 pm, A R amit.r...@gmail.com wrote:

  check putExtra method in Intent Class

  Regards,
  Amit.

  On Jan 8, 12:37 pm, Asif k asifk1...@gmail.com wrote:

   Hi all,

     In an application I am switching between HomeApp.java activity to
   ListApp.java activity
   using following code :

                   Intent filelist = new Intent(this, ListApp.class);
           startActivity(filelist);

   Other than just switching , how can I pass some data( e.g. String
   name, Int no etc. that we are passing in methods) from HomeApp to
   ListApp??

   Please reply.Thanks in advance.- Hide quoted text -

  - Show quoted text -
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Re: How to pass data when switching between activities in an application

2009-01-08 Thread lummie

In the onCreate or else where in the activity:

String value = this.getIntent().getStringExtra
(android_giude.AndroidView.hello);

there are severla getExtra methods for retrieving different types
of data.

On Jan 8, 10:18 am, Asif k asifk1...@gmail.com wrote:
 Hi Amit,

 Thanks for ur reply

 I had Used it like following ,

         Intent filelist = new Intent(this, ListApp.class);
         showButton.putExtra(android_giude.AndroidView.hello,Asif
 here);
         startActivity(filelist);

 But my doubt is how to retrive this value in the ListApp activity??
 Please reply ASAP.

 thanks,
 Asif

 On Jan 8, 1:25 pm, A R amit.r...@gmail.com wrote:

  check putExtra method in Intent Class

  Regards,
  Amit.

  On Jan 8, 12:37 pm, Asif k asifk1...@gmail.com wrote:

   Hi all,

     In an application I am switching between HomeApp.java activity to
   ListApp.java activity
   using following code :

                   Intent filelist = new Intent(this, ListApp.class);
           startActivity(filelist);

   Other than just switching , how can I pass some data( e.g. String
   name, Int no etc. that we are passing in methods) from HomeApp to
   ListApp??

   Please reply.Thanks in advance.- Hide quoted text -

  - Show quoted text -
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Re: How to pass data when switching between activities in an application

2009-01-08 Thread Asif k

Hi all,

I got the solution

here is a good thread regarding this topic

http://groups.google.com/group/android-developers/browse_thread/thread/9d0fd6127cb513ff

On Jan 8, 3:54 pm, lummie gro...@lummie.co.uk wrote:
 In the onCreate or else where in the activity:

 String value = this.getIntent().getStringExtra
 (android_giude.AndroidView.hello);

 there are severla getExtra methods for retrieving different types
 of data.

 On Jan 8, 10:18 am, Asif k asifk1...@gmail.com wrote:



  Hi Amit,

  Thanks for ur reply

  I had Used it like following ,

          Intent filelist = new Intent(this, ListApp.class);
          showButton.putExtra(android_giude.AndroidView.hello,Asif
  here);
          startActivity(filelist);

  But my doubt is how to retrive this value in the ListApp activity??
  Please reply ASAP.

  thanks,
  Asif

  On Jan 8, 1:25 pm, A R amit.r...@gmail.com wrote:

   check putExtra method in Intent Class

   Regards,
   Amit.

   On Jan 8, 12:37 pm, Asif k asifk1...@gmail.com wrote:

Hi all,

  In an application I am switching between HomeApp.java activity to
ListApp.java activity
using following code :

                Intent filelist = new Intent(this, ListApp.class);
        startActivity(filelist);

Other than just switching , how can I pass some data( e.g. String
name, Int no etc. that we are passing in methods) from HomeApp to
ListApp??

Please reply.Thanks in advance.- Hide quoted text -

   - Show quoted text -- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---