can i play gif?

by zeeshan » Fri, 25 Sep 2009 22:19:00 GMT


Sponsored Links
 Hi Dear,

i am trying to play a gif by

  is = context.getResources().openRawResource
(R.drawable.animated_gif);
  mMovie = Movie.decodeStream(is);

but mMovie remains null.

BitmapDecode.java example in apiDemo is not working either

i am using this code
 http://www.anddev.org/how_to_play_gif_file_in_android-t3492.html 
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. how write simple chat application on android

Hi. I'm very beginner in android programming and my english is very bad!. I
not realy understand explanation of this email :"simple chat application on
android".
I find the good cod of chatAndroid in this link  :
http://androidchat.googlecode.com/svn/trunk/androidchat/

But I want to learn how writing client_server in android. If it is
can,someOne send me a full of code of simple chat application on
android.....or send me a part of code that shown connection of server and
client. I hope you undrestand me!
PLZ help!
-- 
fatemeh nakhaie

--~--~---------~--~----~------------~-------~--~----~

2. getLastKnownLocation() always returns null. What am I doing wrong?

I'm having no luck getting getLastKnownLocation to
return a non-null value in the Android emulator running
in Eclipse. The following call always returns null:

        locationManager.getLastKnownLocation(bestProvider);

(bestprovider is "gps")

In the intent's onCreate method I spawn a thread that calls
requestFirstUpdate().
The onLocationChanged method fires so I presume the location was
updated (I use the
location section of the DDMS to push out a location first).

private void requestFirstUpdate(){

LocationListener myLocationListener = new LocationListener(){
        public void onLocationChanged(Location location){
                locationManager.removeUpdates(this);
        }

        public void onProviderDisabled(String provider){
                locationManager.removeUpdates(this);
        provisionProvider();
        }

        public void onStatusChanged(String provider, int status, Bundle
extras)
        {
                locationManager.removeUpdates(this);
                provisionProvider();
        }
        public void onProviderEnabled(String arg0) {
                locationManager.removeUpdates(this);
        }
           };
           locationManager.requestLocationUpdates(bestProvider, 0, 0,
myLocationListener);

        }

In my manifest I have these lines:

     <uses-permission android:name="android.permission.INTERNET"/>
     <uses-permission
android:name="android.permission.ACCESS_COARSE_LOCATION"/>
     <uses-permission
android:name="android.permission.ACCESS_FINE_LOCATION"/>

Any ideas? Am I using the emulator incorrectly?

Thanks!
--~--~---------~--~----~------------~-------~--~----~

3. xsd/dtd for AndroidManifest.xml

4. Docs on telephony and how to use log in Telephony

5. Load video from assets folder?

6. how to send MMS

7. Calling an Intent the implicit way