“California Dreamin’” by Kimli on Flickr

The Multiprocess Problem with SharedPreferences

“Domo Attacks Florida” by Richard Elzey on Flickr
Caused by: java.lang.ClassCastException: android.app.Application cannot be cast to com.example.app.MyApp

Many of us have been in this situation: Phone is charged to 100% in the morning, and by lunchtime, it is close to 30%. Now we’re upset and we look for the app responsible. Sometimes, we see that it was an app that was used excessively (Facebook, Netflix, some news…

Pablo Baxter

I’m an Android Developer… I am not a cat.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store