Android Open Source - ImproveMyCity-Mobile Constants_ A P I






From Project

Back to project page ImproveMyCity-Mobile.

License

The source code is released under:

GNU General Public License

If you think the Android project ImproveMyCity-Mobile 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

/** Constants_API */
package com.mk4droid.IMC_Store;
/*  w w w.jav a 2  s .co  m*/
/**
 * Customization for your application is feasible here.
 * HINT: Be careful when to use http:// or https:// in downloading and uploading data. It highly depends on your platform
 * HINT2: Be careful with the paths of your remote server. Paths may differ per installation configuration.

 * These constants are visible everywhere in the app.
 * 
 * @copyright   Copyright (C) 2012 - 2013 Information Technology Institute ITI-CERTH. All rights reserved.
 * @license     GNU Affero General Public License version 3 or later; see LICENSE.txt
 * @author      Dimitrios Ververidis for the Multimedia Group (http://mklab.iti.gr). 
 *
 */


public class Constants_API {

  /** TAG for Log of messages to alleviate debugging  */
  public static String TAG = "ImproveMyCity";

  /** The e-mail to contact with the support*/
  public static String ContactEmail = "improvemycitymobile@gmail.com";
  
  //==================== Communication parameters =================
  /** Transmitting protocol */
  public static String COM_Protocol   = "http://";

  /** Secure transmitting protocol. If your server supports SSL then this should be https:// */
  public static String COM_Protocol_S = "http://"; 
  //public static String COM_Protocol_S = "https://";
  
  
    /** Server address. It can be a XXX.XXX.XXX.XXX address instead */
  public static String ServerSTR      =  "smartcitydemos.urenio.org";
  
  
  /** Server path of application */
  public static String phpExec        = "/";
  
  /** Server path of issue images */ 
  public static String remoteImages   = "/";

  /** Encryption key for transmitting password (16 digits). It should be the same as in your ImproveMyCity joomla component. 
   * The default value is 1234567890123456 (choose this as a quick start to connect with your server).
   * */
  public static String EncKey =  "1111111111111111"; // This key is for the demo server


  /**
   * Default menu language, options: "en - English" or  "el - ????????"
   * 
   * Go also to res/myprefs.xml to android:key="LanguageAR" and set 
   * android:defaultValue="el - ????????"  or "en - English" in order to have a correct initial value for the radius buttons.
   */
  public static String DefaultLanguage = "en - English";
  //public static String DefaultLanguage = "el - ????????";

  //====== GEOGRAPHIC  Limits ============
  /** Geographical limits is a polygon from where issues can be sent. It can be modified in /raw/polygoncoords.txt.
    * The polygon is created by Longitude,Latitude pairs separated with a single space, e.g.
    *   
    * 23.1094 40.5789 23.1111 40.5781 23.1126 40.5774 23.1094 ... 23.1094 40.5789                 
    *                
    * HINT: The polygon should be closed, i.e. first point should match last point               
    * HINT2: Latitude and Longitude can be obtained by from GoogleMaps by right-clicking on the desired points and selecting 'What is here'.
    * */ 


    //============ Gather usage analytics ================
  /** Key for Flurry analytics that monitors usage of application see www.flurry.com 
   *  Use your own key. 
   *  
   *  To set default value (enable or disable) Flurry analytics see at res/myprefs.xml go to 
   *     
   * android:key="AnalyticsSW"
   * 
   * and set 
   * android:defaultValue="true" or "false"
   *     
   */
   public static String Flurry_Key = "00000000000000000000";

    //====== Google map api key ====================
    /**
     * A) Important: You should include the "google-play-services_lib" project to your project as an external library project. 
     * 
     * B) Insert your google maps v2 key in AndroidManifest.xml -> 
     *    <meta-data android:name="com.google.android.maps.v2.API_KEY"  android:value="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"/>
     * 
     *      You should have two map api keys: 
     *      1) For debugging related to your android debug key 
     *      2) For release version related to your android release key. 
     * 
     *      See in android developer about how to generate map api keys according to your android key.  
     * 
     */
   
 
   //==== Predefined User Location ===========
   /**
    *  Define a location which can be used when user position is unavailable,
    *  such as provider is null, GPS fix not feasible etc.
    * 
    */
   public static double locUserPred_Lat = 40.5469;
   public static double locUserPred_Long = 23.0197;
   
   //===== Default view range =================
   /**
    * Issues are downloaded within user's range. Set default value here (meters).
    * 20000000 m is considered the infinite range.
    */
   public static int initRange = 20000000 ;
}




Java Source Code List

com.mk4droid.IMC_Activities.Activity_Information_Detailed.java
com.mk4droid.IMC_Activities.Activity_Register.java
com.mk4droid.IMC_Activities.Activity_Setup.java
com.mk4droid.IMC_Activities.Activity_Splash_Login.java
com.mk4droid.IMC_Activities.Activity_Thinking.java
com.mk4droid.IMC_Activities.FActivity_TabHost.java
com.mk4droid.IMC_Activities.Fragment_Comments.java
com.mk4droid.IMC_Activities.Fragment_Filters.java
com.mk4droid.IMC_Activities.Fragment_Issue_Details.java
com.mk4droid.IMC_Activities.Fragment_List.java
com.mk4droid.IMC_Activities.Fragment_Map.java
com.mk4droid.IMC_Activities.Fragment_NewIssueA.java
com.mk4droid.IMC_Activities.Fragment_NewIssueB.java
com.mk4droid.IMC_Activities.package-info.java
com.mk4droid.IMC_Constructors.Category.java
com.mk4droid.IMC_Constructors.Comment.java
com.mk4droid.IMC_Constructors.IssueListItem.java
com.mk4droid.IMC_Constructors.IssuePic.java
com.mk4droid.IMC_Constructors.Issue.java
com.mk4droid.IMC_Constructors.VersionDB.java
com.mk4droid.IMC_Constructors.Vote.java
com.mk4droid.IMC_Constructors.package-info.java
com.mk4droid.IMC_Core.FilterCateg_ExpandableListAdapter.java
com.mk4droid.IMC_Core.ImageView_Zoom.java
com.mk4droid.IMC_Core.InfoWindowAdapterButtoned.java
com.mk4droid.IMC_Core.Issues_ListAdapter.java
com.mk4droid.IMC_Core.Preference_About.java
com.mk4droid.IMC_Core.Preference_AccountOperations.java
com.mk4droid.IMC_Core.Preference_Email.java
com.mk4droid.IMC_Core.Preference_PlainText.java
com.mk4droid.IMC_Core.Preference_Reset.java
com.mk4droid.IMC_Core.Preference_SeekBar.java
com.mk4droid.IMC_Core.SpinnerAdapter_NewIssueCateg.java
com.mk4droid.IMC_Core.package-info.java
com.mk4droid.IMC_Services.DatabaseHandler.java
com.mk4droid.IMC_Services.Download_Data.java
com.mk4droid.IMC_Services.InternetConnCheck.java
com.mk4droid.IMC_Services.Security.java
com.mk4droid.IMC_Services.Service_Data.java
com.mk4droid.IMC_Services.Service_Location.java
com.mk4droid.IMC_Services.Upload_Data.java
com.mk4droid.IMC_Services.package-info.java
com.mk4droid.IMC_Store.Constants_API.java
com.mk4droid.IMC_Store.Phptasks.java
com.mk4droid.IMC_Store.package-info.java
com.mk4droid.IMC_Utils.GEO.java
com.mk4droid.IMC_Utils.My_Crypt_Utils.java
com.mk4droid.IMC_Utils.My_Date_Utils.java
com.mk4droid.IMC_Utils.My_System_Utils.java
com.mk4droid.IMC_Utils.RestCaller.java
com.mk4droid.IMC_Utils.RestClient.java
com.mk4droid.IMC_Utils.package-info.java