Android Open Source - habhub-chase-car-tracker App Info






From Project

Back to project page habhub-chase-car-tracker.

License

The source code is released under:

Copyright (c) 2012, Priyesh Patel All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1...

If you think the Android project habhub-chase-car-tracker 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 com.pexat.habhub.chasecartracker;
//from w  ww  .  j  av a  2  s .  c  o m
import android.content.Context;
import android.content.pm.PackageManager.NameNotFoundException;

public class AppInfo {
  public static String getDevice() {
    String id = "%s %s";

    return String.format(id, android.os.Build.BRAND, android.os.Build.MODEL);
  }
  
  public static String getDeviceSoftware() {
    String id = "Android %s";

    return String.format(id, android.os.Build.VERSION.RELEASE);
  }

  public static String getApplication() {
    return "HabHub Chase Car Tracker (Android)";
  }
  
  public static String getApplicationVersion(Context c) {
    String v = "unknown";
    
    try {
      v = c.getPackageManager().getPackageInfo(c.getPackageName(), 0).versionName;
    } catch (NameNotFoundException e) {
      e.printStackTrace();
    }
    
    return v;
  }
}




Java Source Code List

com.pexat.habhub.chasecartracker.About.java
com.pexat.habhub.chasecartracker.AppInfo.java
com.pexat.habhub.chasecartracker.HabitatInterface.java
com.pexat.habhub.chasecartracker.ListenerTelemetry.java
com.pexat.habhub.chasecartracker.Main.java
com.pexat.habhub.chasecartracker.TrackerService.java
com.pexat.net.SimpleHttp.java