public class UpdaterService
extends android.app.Service
| Modifier and Type | Class and Description | 
|---|---|
class  | 
UpdaterService.MyBinder  | 
| Modifier and Type | Field and Description | 
|---|---|
android.content.Context | 
cx  | 
java.lang.String[][] | 
data  | 
DBAdapter | 
db  | 
android.widget.ProgressBar | 
loadingBar  | 
START_CONTINUATION_MASK, START_FLAG_REDELIVERY, START_FLAG_RETRY, START_NOT_STICKY, START_REDELIVER_INTENT, START_STICKY, START_STICKY_COMPATIBILITYACCESSIBILITY_SERVICE, ACCOUNT_SERVICE, ACTIVITY_SERVICE, ALARM_SERVICE, AUDIO_SERVICE, BIND_AUTO_CREATE, BIND_DEBUG_UNBIND, BIND_NOT_FOREGROUND, CLIPBOARD_SERVICE, CONNECTIVITY_SERVICE, CONTEXT_IGNORE_SECURITY, CONTEXT_INCLUDE_CODE, CONTEXT_RESTRICTED, DEVICE_POLICY_SERVICE, DROPBOX_SERVICE, INPUT_METHOD_SERVICE, KEYGUARD_SERVICE, LAYOUT_INFLATER_SERVICE, LOCATION_SERVICE, MODE_APPEND, MODE_PRIVATE, MODE_WORLD_READABLE, MODE_WORLD_WRITEABLE, NOTIFICATION_SERVICE, POWER_SERVICE, SEARCH_SERVICE, SENSOR_SERVICE, TELEPHONY_SERVICE, UI_MODE_SERVICE, VIBRATOR_SERVICE, WALLPAPER_SERVICE, WIFI_SERVICE, WINDOW_SERVICE| Constructor and Description | 
|---|
UpdaterService()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
getDatafromDB()
Populate the data array using the newly-updated local database 
 | 
void | 
getLatLongs()
Set the ordering of the cities based on their co-ordinates (obtained from the local db) 
 | 
android.os.IBinder | 
onBind(android.content.Intent arg0)  | 
void | 
onDestroy()  | 
int | 
onStartCommand(android.content.Intent intent,
              int flags,
              int startId)  | 
void | 
updateData(boolean manually,
          boolean override)
Calls the AsyncTask if it is not already running or an update is urgent 
 | 
dump, finalize, getApplication, onConfigurationChanged, onCreate, onLowMemory, onRebind, onStart, onUnbind, setForeground, startForeground, stopForeground, stopSelf, stopSelf, stopSelfResultattachBaseContext, bindService, checkCallingOrSelfPermission, checkCallingOrSelfUriPermission, checkCallingPermission, checkCallingUriPermission, checkPermission, checkUriPermission, checkUriPermission, clearWallpaper, createPackageContext, databaseList, deleteDatabase, deleteFile, enforceCallingOrSelfPermission, enforceCallingOrSelfUriPermission, enforceCallingPermission, enforceCallingUriPermission, enforcePermission, enforceUriPermission, enforceUriPermission, fileList, getApplicationContext, getApplicationInfo, getAssets, getBaseContext, getCacheDir, getClassLoader, getContentResolver, getDatabasePath, getDir, getExternalCacheDir, getExternalFilesDir, getFilesDir, getFileStreamPath, getMainLooper, getPackageCodePath, getPackageManager, getPackageName, getPackageResourcePath, getResources, getSharedPreferences, getSystemService, getTheme, getWallpaper, getWallpaperDesiredMinimumHeight, getWallpaperDesiredMinimumWidth, grantUriPermission, isRestricted, openFileInput, openFileOutput, openOrCreateDatabase, peekWallpaper, registerReceiver, registerReceiver, removeStickyBroadcast, revokeUriPermission, sendBroadcast, sendBroadcast, sendOrderedBroadcast, sendOrderedBroadcast, sendStickyBroadcast, sendStickyOrderedBroadcast, setTheme, setWallpaper, setWallpaper, startActivity, startInstrumentation, startIntentSender, startService, stopService, unbindService, unregisterReceiverpublic DBAdapter db
public android.content.Context cx
public android.widget.ProgressBar loadingBar
public java.lang.String[][] data
public android.os.IBinder onBind(android.content.Intent arg0)
onBind in class android.app.Servicepublic int onStartCommand(android.content.Intent intent,
                 int flags,
                 int startId)
onStartCommand in class android.app.Servicepublic void onDestroy()
onDestroy in class android.app.Servicepublic void updateData(boolean manually,
              boolean override)
manually - if the user instigated thisoverride - force an updatepublic void getDatafromDB()
public void getLatLongs()