In my application I want to start GPS. I have to pass context object
to it. Can I start my GPS listener from one activity and can fetch
coordinate in some other activity?
We get locationManager object using Context. Now if I have get
LocationManager using first activity's context then can't I use the
same locationManager to fetch the coordinates.

On Nov 24, 12:24 pm, Kumar Bibek <coomar....@gmail.com> wrote:
> Yes, Contexts are specific to components.
>
> Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com
>
> On Wed, Nov 24, 2010 at 12:52 PM, cool.manish <mannishga...@gmail.com>wrote:
>
>
>
> > Hi All,
>
> > I want to know about the Context class object. In lots of APIs we send
> > Context object. Is context object is associated with the application
> > and this object remains same throughout the application? Or it is
> > associated with the components like activity and every component
> > initiate its own context object?
>
> > I guess last one is right as Context is the super class of the
> > Activity class. So every time there will be different object.
>
> > --
> > 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<android-developers%2bunsubs­cr...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en- 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

Reply via email to