Code examples for ContextWrapper

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
52:	return realContextWrapper.getBaseContext().getApplicationContext(); 
Full Snippet Info
6
CodeRank
28:	ContextWrapper cw = new ContextWrapper(context); 
29:	cw.startService(new Intent(cw, MusicPlaybackService.class)); 
-
31:	if (cw.bindService(new Intent(cw, MusicPlaybackService.class), sb, 0)) { 
-
33:	return new ServiceToken(cw); 
Full Snippet Info
6
CodeRank
33:	ContextWrapper cw = new ContextWrapper(realActivity); 
34:	cw.startService(new Intent(cw, DemoService.class)); 
-
36:	if (cw.bindService((new Intent()).setClass(cw, DemoService.class), sb, 0)) { 
-
38:	return new ServiceToken(cw); 
Full Snippet Info
6
CodeRank
130:	ContextWrapper cw = new ContextWrapper(context); 
131:	Context baseContext = cw.getBaseContext(); 
-
140:	cw.startService(intentSMS); 
Full Snippet Info
6
CodeRank
135:	packageInfo.packageName = contextWrapper.getPackageName(); 
Full Snippet Info
5
CodeRank
65:	sphindroidResrouceService.setAssetManager(contextWrapper.getAssets()); 
-
69:	.getBaseContext())); 
70:	sphindroidResrouceService.setResources(contextWrapper.getResources()); 
71:	sphindroidResrouceService.setContext(contextWrapper); 
Full Snippet Info
5
CodeRank
30:	return ctx.getSharedPreferences(ctx.getPackageName() + "_preferences", MODE_PRIVATE); 
Full Snippet Info
5
CodeRank
23:	Context    ctx = contextWrapper.getApplicationContext(); 
Full Snippet Info
5
CodeRank
29:	ContextWrapper cw = new ContextWrapper(context); 
30:	File fileDir = cw.getExternalFilesDir(null); 
Full Snippet Info
5
CodeRank
23:	final TelephonyManager tm = (TelephonyManager) context.getBaseContext().getSystemService(Context.TELEPHONY_SERVICE); 
-
28:	androidId = "" + android.provider.Settings.Secure.getString(context.getContentResolver(), android.provider.Settings.Secure.ANDROID_ID); 
Full Snippet Info
5
CodeRank
93:	context = new ContextWrapper(newcontext); 
Full Snippet Info
5
CodeRank
39:	return ctx.getSharedPreferences( ctx.getPackageName() + "_preferences", MODE_PRIVATE ); 
Full Snippet Info
5
CodeRank
22:	String name = context.getPackageName() + "_preferences"; 
23:	return context.getSharedPreferences(name, MODE_PRIVATE); 
Full Snippet Info
5
CodeRank
20:	ContextWrapper cw = new ContextWrapper(mContext); 
21:	File directory = cw.getDir("", Context.MODE_PRIVATE); 
Full Snippet Info
5
CodeRank
19:	TelephonyManager tm = (TelephonyManager) ctx.getBaseContext().getSystemService(Context.TELEPHONY_SERVICE); 
-
21:	String androidId = "" + android.provider.Settings.Secure.getString(ctx.getContentResolver(), 
Full Snippet Info
5
CodeRank
28:	context = new ContextWrapper(newcontext); 
Full Snippet Info
5
CodeRank
13:	if( IMReady.getNotificationLevel(new ContextWrapper(context)) != 0 ) { 
Full Snippet Info
5
CodeRank