Android Open Source - MordazaCrush M C App






From Project

Back to project page MordazaCrush.

License

The source code is released under:

GNU General Public License

If you think the Android project MordazaCrush 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 org.confederacionpirata.mordazacrush;
// w w w  .ja va 2 s. c  o  m
import android.app.Application;
import android.content.Context;
import android.content.pm.PackageManager.NameNotFoundException;

public class MCApp extends Application {

  public static final String LOGTAG = "MordazaCrush";
  
  private static Context context = null;
  private static String appVersionName;
  private static int appRevision;

  public static Context getContext() {

    return context;
  }

  @Override
  public void onCreate() {

    super.onCreate();

    // app context
    context = super.getApplicationContext();

    // version
    try {

      android.content.pm.PackageInfo pi = getPackageManager()
          .getPackageInfo(getPackageName(), 0);

      appVersionName = pi.versionName;
      appRevision = pi.versionCode;

    } catch (NameNotFoundException e) {
      e.printStackTrace();
    }
  }

  public static String getAppVersionName() {
    return appVersionName;
  }

  public static int getAppRevision() {
    return appRevision;
  }

}




Java Source Code List

org.confederacionpirata.mordazacrush.CameraPreview.java
org.confederacionpirata.mordazacrush.MCApp.java
org.confederacionpirata.mordazacrush.MainActivity.java
org.confederacionpirata.mordazacrush.api.ActionListener.java
org.confederacionpirata.mordazacrush.api.ChannelManager.java
org.confederacionpirata.mordazacrush.api.ChannelProvider.java
org.confederacionpirata.mordazacrush.api.MediaCrushMessage.java
org.confederacionpirata.mordazacrush.api.MediaCrushProvider.java
org.confederacionpirata.mordazacrush.api.Message.java
org.confederacionpirata.mordazacrush.api.QueuedMessage.java