Android Open Source - Volume-Setter Global App






From Project

Back to project page Volume-Setter.

License

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.

Java Source Code

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;
  }

}




Java Source Code List

fr.android.volumesetter.GlobalApp.java
fr.android.volumesetter.MainActivity.java
fr.android.volumesetter.SharedPref.java
fr.android.volumesetter.WidgetIntentReceiver.java
fr.android.volumesetter.WidgetProvider.java