Build m3-rc37a

android.app
Class ApplicationContext

java.lang.Object
  extended by android.content.Context
      extended by android.app.ApplicationContext
Direct Known Subclasses:
Activity, Application, Service

public class ApplicationContext
extends Context


Field Summary
 
Fields inherited from class android.content.Context
ALARM_SERVICE, BIND_AUTO_CREATE, CONTEXT_IGNORE_SECURITY, CONTEXT_INCLUDE_CODE, INFLATE_SERVICE, KEYGUARD_SERVICE, LOCATION_SERVICE, MODE_APPEND, MODE_PRIVATE, MODE_WORLD_READABLE, MODE_WORLD_WRITEABLE, NOTIFICATION_SERVICE, POWER_SERVICE, WINDOW_SERVICE
 
Constructor Summary
ApplicationContext(ApplicationContext context)
           
 
Method Summary
protected  void applyThemeResource(Resources.Theme theme, int resid, boolean first)
           
 boolean bindService(Intent service, String interfaceName, ServiceConnection conn, int flags)
           
 void broadcastIntent(Intent intent)
           
 void broadcastIntent(Intent intent, String receiverPermission)
           
 void broadcastIntent(Intent intent, String receiverPermission, IntentReceiver resultReceiver, Handler scheduler, int initialCode, String initialData, Bundle initialExtras)
           
 int checkCallingOrSelfPermission(String permission)
           
 int checkCallingPermission(String permission)
           
 int checkPermission(String permission, int pid, int uid)
           
 void clearWallpaper()
           
 void closeExternalStorageFiles(String s)
           
 SQLiteDatabase createDatabase(String name, int version, int mode, SQLiteDatabase.CursorFactory factory)
           
 Context createPackageContext(String packageName, int flags)
           
 boolean deleteDatabase(String name)
           
 boolean deleteFile(String name)
           
 String[] fileList()
           
 AssetManager getAssets()
           
 ClassLoader getClassLoader()
           
 ContentResolver getContentResolver()
           
 String getDataDir()
           
 File getFileStreamPath(String name)
           
 PackageManager getPackageManager()
           
 String getPackageName()
           
 String getPackagePath()
           
 Resources getResources()
           
 SharedPreferences getSharedPreferences(String name, int mode)
           
 Object getSystemService(String name)
           
 Resources.Theme getTheme()
           
 Drawable getWallpaper()
           
 SQLiteDatabase openDatabase(String name, SQLiteDatabase.CursorFactory factory)
           
 FileInputStream openFileInput(String name)
           
 FileOutputStream openFileOutput(String name, int mode)
           
 Drawable peekWallpaper()
           
 void registerExternalStorageListener()
           
 Intent registerReceiver(IntentReceiver receiver, IntentFilter filter)
           
 Intent registerReceiver(IntentReceiver receiver, IntentFilter filter, String broadcastPermission, Handler scheduler)
           
 void setTheme(int resid)
           
 void setWallpaper(Bitmap bitmap)
           
 void setWallpaper(InputStream data)
           
 DialogInterface showAlert(CharSequence title, CharSequence message, CharSequence buttonText, boolean cancelable)
           
 DialogInterface showAlert(CharSequence title, CharSequence message, CharSequence buttonText, DialogInterface.OnClickListener buttonListener, boolean cancelable, DialogInterface.OnCancelListener cancelListener)
           
 DialogInterface showAlert(CharSequence title, CharSequence message, CharSequence button1Text, DialogInterface.OnClickListener button1Listener, CharSequence button2Text, DialogInterface.OnClickListener button2Listener, boolean cancelable, DialogInterface.OnCancelListener cancelListener)
           
 DialogInterface showAlert(CharSequence title, CharSequence message, CharSequence button1Text, Message button1Callback, CharSequence button2Text, Message button2Callback, boolean cancelable, Message cancelCallback)
          Deprecated. Method showAlert is deprecated
 void startActivity(Intent intent)
           
 boolean startInstrumentation(ComponentName className, String profileFile, Bundle arguments)
           
 ComponentName startService(Intent service, Bundle args)
           
 boolean stopService(Intent service)
           
 void unbindService(ServiceConnection conn)
           
 void unregisterReceiver(IntentReceiver receiver)
           
 
Methods inherited from class android.content.Context
getString, getText, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationContext

public ApplicationContext(ApplicationContext context)
Method Detail

getAssets

public AssetManager getAssets()
Specified by:
getAssets in class Context

getResources

public Resources getResources()
Specified by:
getResources in class Context

getPackageManager

public PackageManager getPackageManager()
Specified by:
getPackageManager in class Context

getContentResolver

public ContentResolver getContentResolver()
Specified by:
getContentResolver in class Context

registerExternalStorageListener

public void registerExternalStorageListener()

closeExternalStorageFiles

public void closeExternalStorageFiles(String s)

setTheme

public void setTheme(int resid)
Specified by:
setTheme in class Context

getTheme

public Resources.Theme getTheme()
Specified by:
getTheme in class Context

applyThemeResource

protected void applyThemeResource(Resources.Theme theme,
                                  int resid,
                                  boolean first)

getClassLoader

public ClassLoader getClassLoader()
Specified by:
getClassLoader in class Context

getPackageName

public String getPackageName()
Specified by:
getPackageName in class Context

getPackagePath

public String getPackagePath()
Specified by:
getPackagePath in class Context

getSharedPreferences

public SharedPreferences getSharedPreferences(String name,
                                              int mode)
Specified by:
getSharedPreferences in class Context

openFileInput

public FileInputStream openFileInput(String name)
                              throws FileNotFoundException
Specified by:
openFileInput in class Context
Throws:
FileNotFoundException

openFileOutput

public FileOutputStream openFileOutput(String name,
                                       int mode)
                                throws FileNotFoundException
Specified by:
openFileOutput in class Context
Throws:
FileNotFoundException

deleteFile

public boolean deleteFile(String name)
Specified by:
deleteFile in class Context

getFileStreamPath

public File getFileStreamPath(String name)
                       throws FileNotFoundException
Specified by:
getFileStreamPath in class Context
Throws:
FileNotFoundException

fileList

public String[] fileList()
Specified by:
fileList in class Context

openDatabase

public SQLiteDatabase openDatabase(String name,
                                   SQLiteDatabase.CursorFactory factory)
                            throws FileNotFoundException
Specified by:
openDatabase in class Context
Throws:
FileNotFoundException

createDatabase

public SQLiteDatabase createDatabase(String name,
                                     int version,
                                     int mode,
                                     SQLiteDatabase.CursorFactory factory)
                              throws FileNotFoundException
Specified by:
createDatabase in class Context
Throws:
FileNotFoundException

deleteDatabase

public boolean deleteDatabase(String name)
Specified by:
deleteDatabase in class Context

getWallpaper

public Drawable getWallpaper()
Specified by:
getWallpaper in class Context

peekWallpaper

public Drawable peekWallpaper()
Specified by:
peekWallpaper in class Context

setWallpaper

public void setWallpaper(Bitmap bitmap)
                  throws IOException
Specified by:
setWallpaper in class Context
Throws:
IOException

setWallpaper

public void setWallpaper(InputStream data)
                  throws IOException
Specified by:
setWallpaper in class Context
Throws:
IOException

clearWallpaper

public void clearWallpaper()
Specified by:
clearWallpaper in class Context

startActivity

public void startActivity(Intent intent)
Specified by:
startActivity in class Context

showAlert

public DialogInterface showAlert(CharSequence title,
                                 CharSequence message,
                                 CharSequence buttonText,
                                 DialogInterface.OnClickListener buttonListener,
                                 boolean cancelable,
                                 DialogInterface.OnCancelListener cancelListener)
Specified by:
showAlert in class Context

showAlert

public DialogInterface showAlert(CharSequence title,
                                 CharSequence message,
                                 CharSequence buttonText,
                                 boolean cancelable)
Specified by:
showAlert in class Context

showAlert

public DialogInterface showAlert(CharSequence title,
                                 CharSequence message,
                                 CharSequence button1Text,
                                 DialogInterface.OnClickListener button1Listener,
                                 CharSequence button2Text,
                                 DialogInterface.OnClickListener button2Listener,
                                 boolean cancelable,
                                 DialogInterface.OnCancelListener cancelListener)
Specified by:
showAlert in class Context

showAlert

public DialogInterface showAlert(CharSequence title,
                                 CharSequence message,
                                 CharSequence button1Text,
                                 Message button1Callback,
                                 CharSequence button2Text,
                                 Message button2Callback,
                                 boolean cancelable,
                                 Message cancelCallback)
Deprecated. Method showAlert is deprecated

Specified by:
showAlert in class Context

broadcastIntent

public void broadcastIntent(Intent intent)
Specified by:
broadcastIntent in class Context

broadcastIntent

public void broadcastIntent(Intent intent,
                            String receiverPermission)
Specified by:
broadcastIntent in class Context

broadcastIntent

public void broadcastIntent(Intent intent,
                            String receiverPermission,
                            IntentReceiver resultReceiver,
                            Handler scheduler,
                            int initialCode,
                            String initialData,
                            Bundle initialExtras)
Specified by:
broadcastIntent in class Context

registerReceiver

public Intent registerReceiver(IntentReceiver receiver,
                               IntentFilter filter)
Specified by:
registerReceiver in class Context

registerReceiver

public Intent registerReceiver(IntentReceiver receiver,
                               IntentFilter filter,
                               String broadcastPermission,
                               Handler scheduler)
Specified by:
registerReceiver in class Context

unregisterReceiver

public void unregisterReceiver(IntentReceiver receiver)
Specified by:
unregisterReceiver in class Context

startService

public ComponentName startService(Intent service,
                                  Bundle args)
Specified by:
startService in class Context

stopService

public boolean stopService(Intent service)
Specified by:
stopService in class Context

bindService

public boolean bindService(Intent service,
                           String interfaceName,
                           ServiceConnection conn,
                           int flags)
Specified by:
bindService in class Context

unbindService

public void unbindService(ServiceConnection conn)
Specified by:
unbindService in class Context

startInstrumentation

public boolean startInstrumentation(ComponentName className,
                                    String profileFile,
                                    Bundle arguments)
Specified by:
startInstrumentation in class Context

getSystemService

public Object getSystemService(String name)
Specified by:
getSystemService in class Context

checkPermission

public int checkPermission(String permission,
                           int pid,
                           int uid)
Specified by:
checkPermission in class Context

checkCallingPermission

public int checkCallingPermission(String permission)
Specified by:
checkCallingPermission in class Context

checkCallingOrSelfPermission

public int checkCallingOrSelfPermission(String permission)
Specified by:
checkCallingOrSelfPermission in class Context

createPackageContext

public Context createPackageContext(String packageName,
                                    int flags)
                             throws PackageManager.NameNotFoundException
Specified by:
createPackageContext in class Context
Throws:
PackageManager.NameNotFoundException

getDataDir

public String getDataDir()
Specified by:
getDataDir in class Context

Build m3-rc37a