Back to project page smartnavi.
The source code is released under:
Apache License
If you think the Android project smartnavi 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 com.ilm.sandwich; //ww w . jav a 2 s.c o m import android.app.SearchManager; import android.provider.BaseColumns; public class Config { //Things to do before building the app: // - insert valid GoogleMapsAPI-Key in AndroidManifest.xml // - insert valid Places_API_Key and MAPQUEST_API_KEY in Config.java // - set debugMode = false in Config.java //Things to do before committing to github: // - replace PLACES_API_KEY // - replace MAPQUEST_API_KEY //app-Rate Dialog public final static String APP_PNAME = "com.ilm.sandwich"; public final static int DAYS_UNTIL_PROMPT = 2; // 2 public final static int LAUNCHES_UNTIL_PROMPT = 3; // 3 // places and mapquest api public static final String PLACES_API_URL = "https://maps.googleapis.com/maps/api/place"; public static final String PLACES_API_KEY = "PLACE_YOUR_VALID_API_KEY_HERE"; public static final String[] COLUMNS = {BaseColumns._ID, SearchManager.SUGGEST_COLUMN_TEXT_1,}; public static final String MAPQUEST_API_KEY = "PLACE_YOUR_VALID_API_KEY_HERE"; // statistics public static final String API_URL = "http://5.39.91.189:3000/users"; //debug public static boolean debugMode = false; //google or OSM public static boolean usingGoogleMaps; public static int PLACES_API_FALLBACK = 0; public static float meanAclFreq = 0; public static float meanMagnFreq = 0; public static boolean backgroundServiceUsed = false; public static long startTime = 0; //other public static boolean backgroundServiceActive = false; }