Please i am having a disturbing issue about a listView java code that kept failing on compilation with error message about code too large.
I have this code below up to 800 on count. If i reduce the code to 600 the compilation will not fail. Please tell me what to do. I have 835 lists of song lyrics, This is my code below
//start NewActivity with title for actionbar and text for textview
Intent intent = new Intent(mContext, LyricsActivity.class);
intent.putExtra("actionBarTitle", "New songs 001");
intent.putExtra("contentTv", "The lyrics in full details");
mContext.startActivity(intent);
}
if (modellist.get(i).getTitle().equals("Song 002 | New ways of living")) {
//start NewActivity with title for actionbar and text for textview
Intent intent = new Intent(mContext, LyricsActivity.class);
intent.putExtra("actionBarTitle", "New songs 001");
intent.putExtra("contentTv", "he lyrics in full details");
mContext.startActivity(intent);
.
.
.
.
.
.
.
.
etc.. to 835 example codes of these examples above causes the error
Please help to me what to do so as to complete my songs. Thanks