• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Database in Android Studio

Hello,I have to make a Speedometer App. When I try to run it, it appears this message:

E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.myapplication, PID: 16450
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.myapplication/com.example.myapplication.MainActivity}: java.lang.IllegalStateException: getDatabase called recursively
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2913)

I have use in my app getWritabaleDatabase. What the problem may be? Thank you in advance.
 
Back
Top Bottom