private void copyDBToSDcrad()
{
String DATABASE_NAME = "数据库文件名称";
String oldPath = "data/data/com.packagename/databases/" + DATABASE_NAME;
String newPath = Environment.getExternalStorageDire...
分类:
移动开发 时间:
2014-09-02 14:16:36
阅读次数:
267
1、取得控制台应用程序的根目录方法 方法1、Environment.CurrentDirectory//取得或设置当前工作目录的完整限定路径 方法2、AppDomain.CurrentDomain.BaseDirectory//获取基目录,它由程序集冲突解决程序用来探测程序集2、取得Web应用程序的...
分类:
Web程序 时间:
2014-09-02 10:28:04
阅读次数:
253
## A fatal error has been detected by the Java Runtime Environment:## EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000067522fdd, pid=8100, tid....
分类:
数据库 时间:
2014-09-01 12:32:23
阅读次数:
661
linux上启动tomcat时报错The BASEDIR environment variable is not defined correctlyThis environment variable is needed to run this program这坑爹的中间件,害的我搞了半天 根据提示开...
分类:
其他好文 时间:
2014-09-01 10:32:12
阅读次数:
257
操作SQLite的dbhelperpublic class DbHelper { string connStr = @"Data Source=" + System.Environment.CurrentDirectory + @"\workhelper.db;Initial C...
分类:
数据库 时间:
2014-08-31 18:29:21
阅读次数:
318
Before you do this, you should be in a GOME or KDE environment, then type the following commands to check whether you've stalled the app:$ type evince...
分类:
系统相关 时间:
2014-08-31 17:01:21
阅读次数:
224
jdk和jre是什么?都有什么用?(转帖)文章分类:Java编程 大家肯定在安装JDK的时候会有选择是否安装单独的jre,一般都会一起安装,我也建议大家这样做。由于这样更能帮助大家弄清楚它们的差别: Jre 是java runtime environment, 是java程序的执行环境。既然是执行,...
分类:
其他好文 时间:
2014-08-31 09:12:50
阅读次数:
182
Invalid layout of java.lang.String at value## A fatal error has been detected by the Java Runtime Environment:## Internal Error (javaClasses.cpp:124),...
分类:
移动开发 时间:
2014-08-30 19:04:49
阅读次数:
202
所谓的外部存储External Storage就是将数据文件保存在SD卡上。
1.但是在保存数据时需要先对SD卡的状态进行判断。
使用Environment.getExternalStorageState()可以SD卡的运行状态
分别有一下的状态
MEDIA_UNKNOWN, MEDIA_REMOVED, MEDIA_UNMOUNTED, MEDIA_CHECKING, MEDIA_NOF...
分类:
移动开发 时间:
2014-08-29 18:20:48
阅读次数:
265
Step 1: Step 2: Step 3: Step 4: You must use the wizard to create the file share. Step 5: to make sure everything works in your test environment, add ...