app inventor - How to make a button when pressed to do a certain thing on another screen Appinventor -


i button when pressed thing on screen. example if had 2 buttons on screen1, , when click either of buttons opens screen, depending on button clicked display component.

solution 1:

you can use 2 separate activities separate components.

or

solution 2:

pass button position putextra first screen.

intent i=new intent(getapplicationcontext(), nextactivity.class); i.putextra("btn_position",position); //pass button positon int  startactivity(i); 

and button position using getextra second screen.

      intent intent = getintent();       int button_postion = intent.getintextra("position", 0); 

Comments

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Blogger related post gadget image Resize s72-c [ Need Expert Help ] -