You can pass data into a new activity by setting "extras" on the intent or
by specifying a data URI. Both ways are documented under Intent.

--
Kostya Vasilyev -- http://kmansoft.wordpress.com
12.02.2011 1:07 пользователь "David Lyons" <wireddot...@googlemail.com>
написал:
> Hi there,
>
> I'm having a little trouble switching views and wondering anyone can
> help. Basically the initial view is a ListActivity. On this view the
> user can press the menu button which triggers a database call and when
> the result comes back (either a number or a null) I require the view
> to be altered to one of two views (a numberview and a nullview so to
> speak).
>
> I've had some success by doing -
>
> Intent myIntent = new Intent(this, numberview.class);
> this.startActivity(myIntent); Now this works however I can't see a way
> to pass the number retrieved from the database into the new view.
>
> I also tried to use the PopUpWindow class but to no avail, all the
> examples I found only had examples for the Activity (not ListActivity)
> and some of the mentioned methods don't exist. Can I get some help/
> advice at all please?
>
> --
> 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

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