Code example for RenamingDelegatingContext

0
	protected void setUp() { 
 
		//delegates to the given context, but performs database and  
		// file operations with a renamed database/file  
		// name (prefixes default names with a given prefix). 
		context = new RenamingDelegatingContext(getContext(), "test_");
		 
		if (Analytics.isInitialized()) Analytics.close(); 
		 
		Analytics.initialize(context, "testsecret");
	} 
	 
	@AfterClass 
	protected void close() { 
		Analytics.close(); 
	} 
	 
} 
Contextual code suggestions in your IDE  Get Codota for Java