本文整理了Java中android.app.Activity.deleteDatabase()
方法的一些代码示例,展示了Activity.deleteDatabase()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Activity.deleteDatabase()
方法的具体详情如下:
包路径:android.app.Activity
类名称:Activity
方法名:deleteDatabase
暂无
代码示例来源:origin: com.uphyca/android-junit4-robolectric
/**
* @param name
* @return
* @see android.content.ContextWrapper#deleteDatabase(java.lang.String)
*/
public boolean deleteDatabase(String name) {
return mActivity.deleteDatabase(name);
}
代码示例来源:origin: ngageoint/geopackage-android
@Before
public void baseSetUp() throws Exception {
// Set the activity and test context
activity = rule.getActivity();
testContext = TestUtils.getTestContext(activity);
if (BuildConfig.DEBUG && Build.VERSION.SDK_INT >= 11) {
StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder()
.detectLeakedSqlLiteObjects()
.detectLeakedClosableObjects()
.penaltyLog()
.penaltyDeath()
.build());
}
activity.deleteDatabase(GeoPackageMetadataDb.DATABASE_NAME);
}
内容来源于网络,如有侵权,请联系作者删除!