Go Back   Android Forums > Android Discussion > Android Media

Android Media For Ringtones, Video, TV, Audio or anything else Multimedia related...



Reply
 
LinkBack Thread Tools
Old 02-08-2010, 04:37 AM   #1 (permalink)
Hello, my name is .......
 
Join Date: Jan 2010
Posts: 6
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default play gif in media player

I am having the following code, any good example playing gif image in media player loading from resources?

public void onCreate(Bundle icicle) {
super.onCreate(icicle);
setContentView(R.layout.videoview);
MediaPlayer mMediaPlayer = MediaPlayer.create(this, R.drawable.animation15);
mMediaPlayer.start();
}

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
androidrientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<SurfaceView android:id="@+id/surface"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center">
</SurfaceView>
</LinearLayout>

faisalloe is offline  
Reply With Quote
Sponsors
test
Reply

Bookmarks


Go Back   Android Forums > Android Discussion > Android Media
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 06:44 PM.
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
Custom vBulletin Skins by: Relivo