Android SQLite ContextWrapper.openOrCreateDatabase() nullpointer?

The Application class is part of the Android framework, you can't just create it with a constructor and so on. Use the Application object of your app, instead of using a "fake" one.

I tried saving a static version of my activity class (i don't have one extending Application), and the activity class was not instantiated before the service is started. – SimonDK Nov 18 '10 at 21:06 pass it the Application, it is still a Context – apps Nov 18 '10 at 21:08.

11-18 19:12:14.048: ERROR/AndroidRuntime(15655): java.lang. RuntimeException: Unable to create service sdo.GeoTracker.Services. 11-18 19:12:14.048: ERROR/AndroidRuntime(15655): at android.app.ActivityThread.

11-18 19:12:14.048: ERROR/AndroidRuntime(15655): at android.app.ActivityThread. 11-18 19:12:14.048: ERROR/AndroidRuntime(15655): at android.app. 11-18 19:12:14.048: ERROR/AndroidRuntime(15655): at android.os.Handler.

11-18 19:12:14.048: ERROR/AndroidRuntime(15655): at android.os.Looper. 11-18 19:12:14.048: ERROR/AndroidRuntime(15655): at android.app.ActivityThread. 11-18 19:12:14.048: ERROR/AndroidRuntime(15655): at java.lang.reflect.Method.

11-18 19:12:14.048: ERROR/AndroidRuntime(15655): at java.lang.reflect.Method. 11-18 19:12:14.048: ERROR/AndroidRuntime(15655): at com.android.internal.os. 11-18 19:12:14.048: ERROR/AndroidRuntime(15655): at com.android.internal.os.ZygoteInit.

11-18 19:12:14.048: ERROR/AndroidRuntime(15655): at dalvik.system.NativeStart. 11-18 19:12:14.048: ERROR/AndroidRuntime(15655): Caused by: java.lang. 11-18 19:12:14.048: ERROR/AndroidRuntime(15655): at android.content.ContextWrapper.

11-18 19:12:14.048: ERROR/AndroidRuntime(15655): at android.database.sqlite. 11-18 19:12:14.048: ERROR/AndroidRuntime(15655): at sdo.GeoTracker.DataAccess.SqlAdapter.(SqlAdapter. 11-18 19:12:14.048: ERROR/AndroidRuntime(15655): at sdo.GeoTracker.DataAccess.SqlAdapter.

11-18 19:12:14.048: ERROR/AndroidRuntime(15655): at sdo.GeoTracker.Services.DataService. 11-18 19:12:14.048: ERROR/AndroidRuntime(15655): at sdo.GeoTracker.Services.DataService. 11-18 19:12:14.048: ERROR/AndroidRuntime(15655): at android.app.ActivityThread.

Any help is greatly appreciated!

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions