I actually drag and drop SurfaceView into main layout. Then where should i go and change the sizes(height and width)? I have to change it in Properties? If yes, then i changed 'layout height' and 'layout width' to 320*480 in the Properties of SurfaceView, but it says error as 'Integer type not allowed'. I don't know what's up with this?
--- On Sat, 10/17/09, Mark Murphy <mmur...@commonsware.com> wrote: From: Mark Murphy <mmur...@commonsware.com> Subject: [android-beginners] Re: UrgentHelp:Play Video file when accelerometer is triggered code error: To: android-beginners@googlegroups.com Date: Saturday, October 17, 2009, 4:50 AM Prabakar wrote: > It is very very nice sample that you have provided in vidtry code. From > there i picked of some of the code for my use. > I am going to try SurfaceView and MediaPlayer combination. > For that i made a code like below., > > SurfaceView v = (SurfaceView) findViewById(R.id.SurfaceView01); > SurfaceHolder h = v.getHolder(); > MediaPlayer mp = MediaPlayer.create(this, R.raw.myvideo); > mp.setDisplay(h); > mp.start(); > > I created a surfaceview in main.xml resource layout. But when i created > a SurfaceView there, it is showing it in small rectangle. How to make it > to full screen? The same ways you make any widget take up the full screen. For example, make it be the only widget in the layout and set android:layout_width and android:layout_height each to be fill_parent. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training.html --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---