Back to project page AStory.
The source code is released under:
Apache License
If you think the Android project AStory listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.Litterfeldt.AStory.customClasses; //from w ww. j av a2 s . co m import android.app.Application; import android.content.Intent; import com.Litterfeldt.AStory.services.AudioplayerService; public class CoreApplication extends Application{ public boolean serviceStarted = false; @Override public void onCreate() { startService(new Intent(getApplicationContext(), AudioplayerService.class)); serviceStarted = true; super.onCreate(); } @Override public void onLowMemory() { stopService(new Intent(getApplicationContext(), AudioplayerService.class)); serviceStarted=false; super.onLowMemory(); } }