I have one Android application that has 4 activities. First is splash screen basically, second is login, third is main and forth is one extra for drawing.
Running that application on real device - Samsung Galazy tab from 2014 or smth with Android 4.4 runs to error and crashes after login activity. It says out of memory error. Main activity contains of multiple edit text fields and buttons, with also radio choice and making fields visible and invisible.
When I set drawing activity after login, it will log in correctly and when going from drawing to main, it crashes first time, but runs second.
So I removed splash and login activity and then application runs smoothly - no lagging or anything. Can go to drawing and come back without problems. All functions work.
My question is, why is this happening? Why it can run without splash and login, but crashes with these two. I assume these two aren't heavy on memory. Can it be problem with that tablet or maybe I should look over memory consumption? Just seems weird for me that it can open up that main activity without these two.