I am having trouble running the sample VideoPlayback. I put it in the sample directory and created a new project in eclipse, as did the VirtualButtons. However, the code introduces some errors, for example: 1 - In the class FullscreenPlaybak prepareViewForMediaPlayer () on line mVideoView = (VideoView) findViewById (R.id.surface_view) it does not recognize as a variable R.id.suface_view. So when I include "R" from android it does not recognize "surface_view." This happens in all places where "R" is referenced. 2 - An other erros is in "startup_screen.xml" layout, layout and layout-larg-small. In ImageView the error: No resource identifier found for attribute 'alpha' in package 'android'?
So, It can“t be runing. I'm using Samsung galaxy with android 2.3. Any suggestion?
My final goal is to modify VirtualButton sample to play a video when a button is pressed. Is it possible? if so, any suggestion, how to do?
Thanks
Problems with VideoPlayback
Hi,
I have the exact same problem. Any solutions?
Problems with VideoPlayback
Hi, including the R import from Android is not a good idea, as the "R" in this case is an auto-generated file;
this is usually created automatically by Eclipse afer cleaning a project.
Problems with VideoPlayback
Thanks for the reply. Yes, I know the "R" is auto-generated, and i don't know why, cleaning the project didn't solve the problem at once. But eventually it worked (don't know why exactly).
And your other suggestion is correct too, my API level was too low for the project.
Problems with VideoPlayback
You're welcome.