android - Next to 1st page works, 2nd page doesn't -
because 1st page , 2nd page onclick have same thing going on , tried copy , paste, doesn't work. whenever 2nd page onclick next page, crashes. should do?
1st page - hira1_1 > hira1_2 > hira1_3 working well
package com.linguido; import android.content.intent; import android.support.v7.app.appcompatactivity; import android.os.bundle; import android.view.view; public class bc_hira1_1 extends appcompatactivity { @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_bc_hira1_1); } public void tohira1_2(view view) { intent intent = new intent(this, bc_hira1_2.class); startactivity(intent); } }
package com.linguido; import android.content.intent; import android.support.v7.app.appcompatactivity; import android.os.bundle; import android.view.view; public class bc_hira1_2 extends appcompatactivity { @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_bc_hira1_2); } public void tohira1_3(view view) { intent intent = new intent(this, bc_hira1_3.class); startactivity(intent); } }
2nd page - hira2_1 > hira2_2 > hira2_3 crashes @ hira2_1 > hira2_2
package com.linguido; import android.content.intent; import android.os.bundle; import android.support.v7.app.appcompatactivity; import android.view.view; public class bc_hira2_1 extends appcompatactivity { @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_bc_hira2_1); } public void tohira2_2(view view) { intent intent = new intent(this, bc_hira2_2.class); startactivity(intent); } }
package com.linguido; import android.content.intent; import android.support.v7.app.appcompatactivity; import android.os.bundle; import android.view.view; public class bc_hira2_2 extends appcompatactivity { @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_bc_hira2_2); } public void tohira2_3(view view) { intent intent = new intent(this, bc_hira2_3.class); startactivity(intent); } }
Comments
Post a Comment