[Solved] How to use OnClick in android programming [closed]
For doing some Action on Button Click following these Steps : STEP 1: Add a button in your Activity layout as: <Button android:id=”@+id/button_id_here” android:layout_width=”wrap_content” android:layout_height=”wrap_content”/> STEP 2: Add your NextActivity in AndroidManifest.xml as: <!– your other xml –> <application <!– your other xml –> <activity android:name=”.NextActivity” /> </application> STEP 3: In MainActivity code add a … Read more