dapaintballer331 wrote: > An Alarm starts a "WakefulIntentService"( made by me, which is used to > keep a wakelock). That extends an "IntentService" (made by android).
That sounds familiar. > This WakefulIntentService then writes data, passing itself as an > argument for the context. > I'm guessing IntentServices don't count as a "Context", even though > Intents and Services do count. At least the WakefulIntentService in my book is a Context. Morever, it is not null. If context.openFileOutput(filename, Context.MODE_PRIVATE); is blowing up, you are not passing the context object around correctly. Moreover, if you are in your WakefulIntentService, you do not need the "context" object -- just use "this". -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need Android talent? Ask on HADO! http://wiki.andmob.org/hado --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

