I got it working. I cut so much of it into even smaller methods, and now it seems to be working. Gah I'm so stupid >.<
(Prior issue I had one HUGE line of code without any methods. Works not that it's into smaller methods)
I got it working. I cut so much of it into even smaller methods, and now it seems to be working. Gah I'm so stupid >.<
(Prior issue I had one HUGE line of code without any methods. Works not that it's into smaller methods)
It's a limitation in Java. In short, your onCreate()
is too big. Break it up into smaller methods, do work in onStart()
and onPause
, execute AsyncTasks
to avoid doing all of the loading on the main thread.
It's generally good practice to keep your methods small and simple, so if you run into this problem
See Why does Java limit the size of a method to 65535 byte? for reference.
Just out of curiosity, how many lines of code does your onCreate()
contain?