Back to project page Volume-Setter.
The source code is released under:
GNU General Public License
If you think the Android project Volume-Setter 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 fr.android.volumesetter; /*w w w . ja v a2 s . co m*/ import android.app.Application; import android.content.Context; public class GlobalApp extends Application { private static GlobalApp instance; private Context context; @Override public void onCreate() { super.onCreate(); instance = this; instance.initializeInstance(); } private void initializeInstance() { context = getApplicationContext(); } public static synchronized GlobalApp getInstance() { return instance; } public Context getContext() { return context; } }