Best code examples for Android Configuration class (android.content.res.Configuration)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android Configuration class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Android Configuration examples from Open Source projects
This code example shows how to use the following methods:
23:	configuration = new Configuration(); 
24:	shConfiguration = Robolectric.shadowOf( configuration ); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: updateConfiguration
65:	Configuration config = new Configuration(); 
-
68:	getContext().getResources().updateConfiguration(config, metrics); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: updateConfiguration
65:	Configuration config = new Configuration(); 
-
68:	getContext().getResources().updateConfiguration(config, metrics); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
72:	Configuration diffConfig = new Configuration(); 
73:	shadowOf(resources).setConfiguration(diffConfig); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
34:	Configuration config = new Configuration(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: compareTo
108:	return realConfiguration.compareTo(that) == 0; 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: updateFrom
28:	int configChanges = mLastConfiguration.updateFrom(res.getConfiguration()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
75:	mAm.updateConfiguration(new Configuration()); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: updateConfiguration
24:	Configuration config = new Configuration(); 
-
27:	context.getResources().updateConfiguration(config, context.getResources() 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
116:	mWm.updateOrientationFromAppTokens(new Configuration(), null); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getLayoutDirection
21:	return conf.getLayoutDirection(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: updateConfiguration
24:	Configuration config = new Configuration(); 
-
27:	context.getResources().updateConfiguration(config, context.getResources() 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: toString
44:	Log.v(TAG, newConfig.toString()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
131:	Configuration configuration = new Configuration(); 
132:	expect(base.getConfiguration()).andReturn(configuration); 
-
135:	assertSame(configuration, resources.getConfiguration()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
150:	final Configuration config = new Configuration(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: toString
44:	Log.v(TAG, newConfig.toString()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: updateConfiguration
97:	Configuration config = new Configuration(); 
-
99:	context.getResources().updateConfiguration(config, context.getResources().getDisplayMetrics()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: updateFrom
143:	mConfig.updateFrom(newConfig); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: toString
44:	Log.v(TAG, newConfig.toString()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: updateConfiguration
217:	final Configuration config = new Configuration(); 
-
219:	context.getResources().updateConfiguration(config, null); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
311:	proxyOf(activity).attach(context, null, this, token, application, intent, info, title, parent, id, lastNonConfigurationInstance, new Configuration()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: updateConfiguration
184:	Configuration config = new Configuration(); 
-
186:	context.getResources().updateConfiguration(config, 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
34:	Configuration config = new Configuration(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
154:	resources = ShadowResources.bind(new Resources(realApplication.getAssets(), null, new Configuration()), resourceLoader); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: updateConfiguration
56:	Configuration config = new Configuration(); 
-
58:	getBaseContext().getResources().updateConfiguration(config, 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: updateFrom
166:	int configChanges = mLastConfiguration.updateFrom(res.getConfiguration()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
20:	configuration = new Configuration(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: updateConfiguration
80:	Configuration config = new Configuration(); 
-
82:	ctx.getResources().updateConfiguration(config, ctx.getResources().getDisplayMetrics()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: updateFrom
168:	if (densityChanged || (configChanges&(ActivityInfo.CONFIG_LOCALE 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
62:	private final Configuration mCurConfig = new Configuration(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
60:	private final Configuration mCurConfig = new Configuration(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: updateFrom
45:	Configuration config = new Configuration(); 
46:	config.updateFrom(mResources.getConfiguration()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
116:	mWm.updateOrientationFromAppTokens(new Configuration(), null); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: updateConfiguration
25:	Configuration config = new Configuration(); 
-
35:	getBaseContext().getResources().updateConfiguration(config, 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: updateConfiguration
312:	Configuration config = new Configuration(); 
-
315:	c.getResources().updateConfiguration(config, null); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: updateConfiguration
25:	Configuration config = new Configuration(); 
-
35:	getBaseContext().getResources().updateConfiguration(config, 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: updateFrom
28:	int configChanges = mLastConfiguration.updateFrom(res.getConfiguration()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: isLayoutSizeAtLeast
519:	if (config.isLayoutSizeAtLeast(Configuration.SCREENLAYOUT_SIZE_XLARGE)) { 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: updateConfiguration
55:	Configuration config = new Configuration(); 
-
57:	context.getResources().updateConfiguration(config, 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: updateConfiguration
16:	Configuration config = new Configuration(); 
-
18:	context.getResources().updateConfiguration(config, null); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: updateConfiguration
19:	Configuration config = new Configuration(); 
-
21:	context.getResources().updateConfiguration(config, 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: updateConfiguration
16:	Configuration config = new Configuration(); 
-
18:	context.getResources().updateConfiguration(config, null); 
Full Snippet Info
5
CodeRank
Related Android Configuration Questions & Answers:
Other Android Configuration Examples
7:				builder.setOAuthConsumerKey(TWITTER_CONSUMER_KEY);
8:				builder.setOAuthConsumerSecret(TWITTER_CONSUMER_SECRET);
9:				Configuration configuration = builder.build();
10:				
11:				TwitterFactory factory = new TwitterFactory(configuration);

Read More

138:	
139:		@Override
140:		public void onConfigurationChanged(Configuration newConfig) {
141:			super.onConfigurationChanged(newConfig);
142:			// Pass any configuration change to the drawer toggls

Read More

221:	
222:		@Override
223:		public void onConfigurationChanged(Configuration newConfig) {
224:			super.onConfigurationChanged(newConfig);
225:			// Pass any configuration change to the drawer toggls

Read More

See Code Examples for Android Configuration Methods: