How to remove database from Android?
adb shell
# cd data
# cd data
// enter your applicaiton’s folder
# cd com.java23.test
# cd databases
# rm *
If you’d just like to remove one table, replace the last step with
# sqlite3 drop table
adb shell
# cd data
# cd data
// enter your applicaiton’s folder
# cd com.java23.test
# cd databases
# rm *
If you’d just like to remove one table, replace the last step with
# sqlite3 drop table
In an Android project in Eclipse, sometimes you can’t find the file R.java, and can’t remember when it disappeared. The file can’t be generated by yourself. If you do that, it will never be upated by Eclipse.
The key point is that there must be something wrong in your res folder, maybe drawable, maybe layout. What you can do is just correct the error. Then file R.java will come back.
As a Java programmer, my preferable IDE is Eclipse. The code editor uses Tab key to adjust the indentation by default. But I like to use 4 spaces instead of the Tab key. Following is a simple guide.