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

Database in Android Studio

AndriannaT

Lurker
Jul 7, 2019
1
0
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.
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones