Hiya. That leads to an error: Cannot make a static reference to the non-static method getApplicationContext() from the type Context. Also, that call would only obtain the application context which is not the same as the Application singleton that, for example, you can obtain from an Activity via: MyApp myApp = (MyApp) getApplication();
On Wednesday, 17 July 2013 17:34:23 UTC+1, TreKing wrote: > > > On Wed, Jul 17, 2013 at 4:51 AM, fr1550n <[email protected]<javascript:> > > wrote: > >> I'm not sure how to obtain my extended Application instance in the >> SyncAdapter else I'd try and use that. > > > Context.getApplicationContext(). > > > ------------------------------------------------------------------------------------------------- > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago > transit tracking app for Android-powered devices > -- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] 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 unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

