nexus 7 - App crashing when on nexus7 but works on emulator android -



nexus 7 - App crashing when on nexus7 but works on emulator android -

i have created main screen have 3 buttons. , 1 of them open page displays info database in textview. works on emulator on laptop when re-create files nexus 7 button crashes application. other buttons work fine.

here's code, basic:

viewflare = (button)findviewbyid(r.id.bviewflare); viewflare.setonclicklistener(new view.onclicklistener() { @override public void onclick(view view) { intent openviewflare = new intent("com.example.project.sqlflareview"); startactivity(openviewflare); } });

it calls page:

public class sqlflareview extends activity { @override protected void oncreate(bundle savedinstancestate){ super.oncreate(savedinstancestate); setcontentview(r.layout.sqlflareview); textview textview = (textview) findviewbyid(r.id.tvsqlflareinfo); calms info = new calms(this); info.open(); //system.out.print("this open"); string info = info.getflaredata(); //system.out.print("about close"); info.close(); textview.settext(data); } }

if have ideas appreciative, have banged head problem while.

thanks in advance

change this:

intent openviewflare = new intent("com.example.project.sqlflareview");

to this:

intent openviewflare = new intent(name_of_current_class.this, sqlflareview.class");

android nexus-7

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -