Hi,
I am trying my 1st audio/video coding, and i am stuck at the gate: 3
part question...


Ref:  from the Android Developers page on Audio/Video

("When a MediaPlayer object is just created using new")

Me:

(New?)   e.g;  New file, folder, project, .....??


 Pt.II

 MediaPlayer mp = MediaPlayer.create(context, R.raw.sound_file_1);
   mp.start();


Where exactly is this code placed in my "java directory. for the same
project,  In relation to the code I have already written, for other
buttons  in the main.xml  (unrelated to the is question)

Pt. III
When I switch over to the "main.xml"  window, in the same project...
Should i import a "Video View" box from the"views/layouts" menu(s)

as compliment'  to the code directly below; and then reference the
"VideoView" box, from the main.xml  window (same project) using the
(Id) for the "VideoView  in the java window, underneath the code
below, eg.


   MediaPlayer mp = MediaPlayer.create(context, R.raw.sound_file_1);

   mp.start();

VideoView videoEMS;
int program =0;

/** called when the activity is first created. */

@override
public void onCreate (Bundle savedInstanceState) }
super.onCreate (savedInstanceState);
setConteentView (R.layout.main);
Log.d(TAG,"onCreate started");

// I now have all my UI in the java memory

VideoEMS = (VideoView) findViewById(R.id.VideoEMS);



-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to