Android Open Source - egotrip Release Config






From Project

Back to project page egotrip.

License

The source code is released under:

Apache License

If you think the Android project egotrip 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 net.myegotrip.egotrip;
//from w  w w. j  a  v a2s  . com
import android.content.Context;
import android.content.pm.PackageManager;
import android.util.Log;

/**
 * settings for current release
 * @author gryphius
 *
 */
public class ReleaseConfig {
  /** configuration section **/
  /* releases */
  //disabling this will make isPROLicenseInstalled always returns True
  public static final boolean ENABLE_PRO_LICENSE_CHECK=false; 
  public static final String LICENSE_APP_PACKAGE_NAME="net.myegotrip.pro";
  
  /* beta options */
  //disable this for market release!
  public static final boolean  ENABLE_UNSIGNED_AUTOUPDATE=false;
    public static final String UPDATEVERSIONURL = "http://beta.myegotrip.net/beta/updateversion.txt";
    public static final String UPDATEURL = "http://beta.myegotrip.net/beta/egotrip.apk";
    public static final String UPDATEUSERNAME = "beta";
    public static final String UPDATEPASSWORD = "gps";
    /** end of configuration section **/
 
    private static final String TAG="EGOTRIP-RelaseConfig";

    @SuppressWarnings("unused")
  public static boolean isPROLicenseInstalled(Context applicationContext){
      if(!ENABLE_PRO_LICENSE_CHECK)return true;
      
      Log.d(TAG, "Checking installation status of "+LICENSE_APP_PACKAGE_NAME);
      final PackageManager pkgMgr = applicationContext.getPackageManager();
      final int sigMatch =
      pkgMgr.checkSignatures(applicationContext.getPackageName(),
      LICENSE_APP_PACKAGE_NAME);
      if (sigMatch == PackageManager.SIGNATURE_MATCH) {
        Log.d(TAG, "PRO License is installed!");
        return true;
      } else {
        Log.d(TAG, "PRO License is NOT installed!");
        return false;
      }
    }
 
}




Java Source Code List

net.myegotrip.egotrip.CommonGPSServiceFunctions.java
net.myegotrip.egotrip.ControlHandler.java
net.myegotrip.egotrip.ControlWindow.java
net.myegotrip.egotrip.DbListener.java
net.myegotrip.egotrip.DbTools.java
net.myegotrip.egotrip.DownloadProgressHandler.java
net.myegotrip.egotrip.FallbackDefaults.java
net.myegotrip.egotrip.GPSService.java
net.myegotrip.egotrip.Installation.java
net.myegotrip.egotrip.LocationUpdate.java
net.myegotrip.egotrip.MapViewActivity.java
net.myegotrip.egotrip.PrefActivity.java
net.myegotrip.egotrip.ReleaseConfig.java
net.myegotrip.egotrip.StartupActivity.java
net.myegotrip.egotrip.TaskDoneListener.java
net.myegotrip.egotrip.Tools.java
net.myegotrip.egotrip.TripManager.java
net.myegotrip.egotrip.help.HelpActivity.java
net.myegotrip.egotrip.help.TopicActivity.java
net.myegotrip.egotrip.image.ImageHandler.java
net.myegotrip.egotrip.map.MockLocationProvider.java
net.myegotrip.egotrip.map.PlacemarkOverlay.java
net.myegotrip.egotrip.map.Placemark.java
net.myegotrip.egotrip.map.RouteOverlay.java
net.myegotrip.egotrip.map.RoutePoint.java
net.myegotrip.egotrip.map.Trip.java
net.myegotrip.egotrip.metadata.EgotripMetadata.java
net.myegotrip.egotrip.metadata.GenericMetadata.java
net.myegotrip.egotrip.metadata.Icon.java
net.myegotrip.egotrip.metadata.Image.java
net.myegotrip.egotrip.metadata.MetadataManager.java
net.myegotrip.egotrip.metadata.Text.java
net.myegotrip.egotrip.net.BetaUpdateManager.java
net.myegotrip.egotrip.net.ProtocolConstants.java
net.myegotrip.egotrip.net.ServerReply.java
net.myegotrip.egotrip.net.Uploader.java
net.myegotrip.egotrip.profile.ProfileActivity.java
net.myegotrip.egotrip.profile.ProfilePrefActivity.java
net.myegotrip.egotrip.profile.ProfileView.java
net.myegotrip.egotrip.utils.DebugActivity.java
net.myegotrip.egotrip.utils.Debug.java
net.myegotrip.egotrip.utils.GuiUtils.java
net.myegotrip.egotrip.utils.IconItem.java
net.myegotrip.egotrip.utils.TwoDScrollView.java
net.myegotrip.egotrip.utils.XYScaleGestureDetector.java