Android Studio: Link Activity to Class

From OnnoCenterWiki
Revision as of 10:53, 19 March 2022 by Unknown user (talk) (Created page with " The much i got is that you want to go SurfaceViewExample from your main activity for that you need to use intent on button click like Intent i = new Intent(this, SurfaceVie...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

The much i got is that you want to go SurfaceViewExample from your main activity for that you need to use intent on button click like

Intent i = new Intent(this, SurfaceViewExample.class);
startActivity(i) ;

and you have to add a permission in menifest to got to that activity like

<activity android:enabled="true" android:name="SurfaceViewExample" />




Referensi