Android Open Source - AndroidCloud Constant Variables






From Project

Back to project page AndroidCloud.

License

The source code is released under:

GNU General Public License

If you think the Android project AndroidCloud 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.twlkyao.utils;
//from   w ww  . j  a  va2  s. c om
public class ConstantVariables {
  
  /**
   * AVD base address
   */
//  final public static String BASE_URL= "http://10.0.2.2/"; //Set the base url; 

  /**
   * Real world base address
   */
//  final public static String BASE_URL = "http://219.245.80.192/"; //Set the base url
  final public static String BASE_URL = "http://219.245.80.2:20080/"; // Set the base url.
//  final public static String BASE_URL = "http://192.168.0.1:20080/"; // Set the base url.
  
  // The string of website.
  final public static String REGISTER_URL = "cloud/android/register.php"; // The location of the register PHP script
  final public static String LOGIN_URL = "cloud/android/login.php"; // The location of the login PHP script
  final public static String UPLOAD_FILE_INFO_URL = "cloud/android/data_info.php"; // The locaion of the file information PHP script
  final public static String UPLOAD_FILE_URL = "cloud/storage/file_operation.php"; // The location of the file upload PHP script
  final public static String CHECK_FILE_INFO_URL = "cloud/android/check_data_info.php"; // The locaion of the file information PHP script
  final public static String RETRIEVE_ENCRYPT_KEY = "cloud/android/keys_generator.php"; // The location of the keys generator PHP script.
  final public static String CHECK_APK_INFO = "cloud/check_apk_info"; // The location of the check apk info PHP script.
  
  // The encrypt level info.
  final public static String dataBase = "db_encrypt_level"; //The name of database.
  final public static String table = "table_encrypt_level"; // The name of table.
  
  public static String smsBackupLocation = "/SMSBackup/";
  public static String smsFile = "sms.xml";
  
  // The type of message.
  final String SMS_URI_ALL = "content://sms/"; // All sms.
  final String SMS_URI_INBOX = "content://sms/inbox"; // Inbox sms.
  final String SMS_URI_SEND = "content://sms/sent"; // Sent sms.
  final String SMS_URI_DRAFT = "content://sms/draft"; // Draft sms.
  final String SMS_URI_OUTBOX = "content://sms/outbox"; // Outbox sms.
  final String SMS_URI_FAILED = "content://sms/failed"; // Failed sms.
  final String SMS_URI_QUEUED = "content://sms/queued"; // Queued sms.
  
  
  // The SharedPreferences name and key of base key.
  public String PREF_NAME = "base_key"; // The SharedPreferences name. of the base key.
  public String PREF_KEY = "base_key_key"; // The SharedPreferences key of the base key.
  
  // The SharedPreferences name and key of encrypt level
  public String ENCRYPT_LEVEL_PREF_NAME = "encrypt_level"; // The SharedPreferences name of the encrypt level.
  public String ENCRPT_LEVEL_PREF_KEY = "encrypt_level_key"; // The SharedPreferences key of the encrypt level.
  
  final public int operation_succeed= 1; // Indicating that the operation is succeeded.
  final public int operation_failed = 0; // Indicating that the operation is failed.
  
  final public int upload_file = 1; // Indicating the type is file upload.
  final public int upload_file_info = 0; // Indicating the type is file info upload.
  
  final public int encrypt_file = 3; // Indicating the type is encrypt file.
  final public int decrypt_file = 2; // Indicating the type is decrypt file.
  
  enum result_code {
    set_level, upload, set_level_upload, integrity_check, decrypt
  };
  
  public static String charset = "UTF-8";
  
  /**
   * DES THe length of DES algorithm is 64bits, 56bits are valid.
   * DESede The length of DESede algorithm is 192bits.
   * Blowfish The length of Blowfish algorithm is 8bits to 448bits.
   */
  
  public String[] algorithms = {
      "AES", "AES", "AES", "DESede"
  };
  
  /*public String[] keys = {
    "12345678abcd",
    "12345678"
  };*/
  
  
  public String[] packageNames = {
    "com.owncloud.android",
    "com.qq.qcloud",
    "com.baidu.netdisk",
    "com.ylmf.androidclient",
    "com.qihoo.yunpan"
  };
  
  public String[] classNames= {
    "com.owncloud.android.ui.activity.FileDisplayActivity",
    "com.qq.qcloud.LaunchActivity",
    "com.baidu.netdisk.ui.Navigate",
    "com.ylmf.androidclient.UI.LogActivity",
    "com.qihoo.yunpan.SplashyActivity"
  };
  }




Java Source Code List

com.twlkyao.androidcloud.ApkValidate.java
com.twlkyao.androidcloud.ContactsActivity.java
com.twlkyao.androidcloud.FileListAdapter.java
com.twlkyao.androidcloud.KuaipanDiskActivity.java
com.twlkyao.androidcloud.LoginActivity.java
com.twlkyao.androidcloud.MainActivity.java
com.twlkyao.androidcloud.MessageActivity.java
com.twlkyao.androidcloud.ObserverService.java
com.twlkyao.androidcloud.RegisterActivity.java
com.twlkyao.androidcloud.SetEncryptLevelActivity.java
com.twlkyao.androidcloud.StartUpReceiver.java
com.twlkyao.dao.DaoMaster.java
com.twlkyao.dao.DaoSession.java
com.twlkyao.dao.FileInfoDao.java
com.twlkyao.dao.FileInfo.java
com.twlkyao.kuaipan.DownloadTask.java
com.twlkyao.kuaipan.MkdirTask.java
com.twlkyao.kuaipan.RequestBase.java
com.twlkyao.kuaipan.ResultBase.java
com.twlkyao.kuaipan.TransportListener.java
com.twlkyao.kuaipan.UploadTask.java
com.twlkyao.utils.ApkOperation.java
com.twlkyao.utils.ConstantVariables.java
com.twlkyao.utils.ExportSms.java
com.twlkyao.utils.FileDEncryption.java
com.twlkyao.utils.FileOperation.java
com.twlkyao.utils.ImportSms.java
com.twlkyao.utils.LogUtils.java
com.twlkyao.utils.SmsField.java
com.twlkyao.utils.SmsItem.java
com.twlkyao.utils.StringSplice.java