I want to display a video for the app I am developing. The problem that I am facing is, I have a Button being displayed from a template which is in JSON
format.
layout Onclick
of this button I want my main.xml
to be displayed. The contents of my XML are as follows.
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Play Video"
/>
<Button
android:id="@+id/playvideoplayer"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="- PLAY Video -"
/>
<VideoView
android:id="@+id/videoview"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
Could anyone please suggest how I could resolve this issue.