Issue
please help me as i'm hell stuck in an idiot error :( ..
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<VideoView
android:id="@+id/video"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@android:color/background_dark"/>
<Button
android:id="@+id/button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</RelativeLayout>
this is xml which i think is correct.
public class MainActivity extends Activity {
VideoView videoview;
Button button;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
//videoview=(VideoView)findViewById(R.id.video);
//button=(Button)findViewById(R.id.button);
}
and that one is java file..im getting an error when im getting videoview and button through their id's. error is "video cannot be resolved or is not a field"
please tell me if you know the solution thankyou
Solution
Build and clean the project will solve your problem
Answered By - Stefano Vuerich
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.