I have written a simple Android application that uses a sqlite database which is inside "assets"
folder. I used the DataHelper class that it's DB_PATH
is initialized as follows:
private static String DB_PATH = "/data/data/program.proverb/databases/";
When I try to run it on my Galaxy S, it works fine, but when I try to run it on emulator, it shows the following error:
11-13 19:20:31.302: ERROR/AndroidRuntime(289): FATAL EXCEPTION: main
11-13 19:20:31.302: ERROR/AndroidRuntime(289): java.lang.Error: Error copying database
Would you please help me to solve this problem, so that it works on emulator too?