video - Skipped Frames. Application may be doing too much work on it's main thread” error on android 4.3 nexus 7 -
import java.io.bufferedreader; public class main extends activity implements surfaceholder.callback, mediaplayer.oncompletionlistener, view.onclicklistener, oninitlistener { string srcpath = ""; mediaplayer mp; surfaceview msurfaceview; private surfaceholder holderrrr; boolean play = false; string t_alarm1 = "alarm.xml", t_alarm2 = "alarm2.xml", text; // texttospeach private texttospeech mtext2speech; @override protected void oncreate(bundle savedinstancestate) { strictmode.threadpolicy policy = new strictmode.threadpolicy.builder() .permitall().build(); strictmode.setthreadpolicy(policy); super.oncreate(savedinstancestate); setcontentview(r.layout.main); addlisteneronbutton(); mtext2speech = new texttospeech(main.this, main.this); } // menü @override public boolean oncreateoptionsmenu(menu menu) { // inflate m...