How to access external image in drawable animation?

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

How to access external image in drawable animation?

Postby sathya5321 » Tue Dec 22, 2009 9:50 am

Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3.         <!-- Animation frames for earth -->
  4.  
  5.         <!--  android:id="@+id/earth_animation" -->
  6.  
  7. <animation-list xmlns:android="http://schemas.android.com/apk/res/android"
  8.  
  9.         android:oneshot="false" android:visible="true">
  10.  
  11.  
  12.  
  13.         <item android:drawable="@drawable/earth1" android:duration="150" />
  14.  
  15.         <item android:drawable="HERE I WOULD LIKE TO ACCESS EXTERNAL FILE STORED IN PHONE" android:duration="150" />
Parsed in 0.002 seconds, using GeSHi 1.0.8.4


Hi guys I am facing a problem in accessing external file which is stored in /data/data/my Package/files/earth1.png.

Can anyone tell how to access in animation.
sathya5321
Freshman
Freshman
 
Posts: 3
Joined: Tue Dec 22, 2009 9:41 am

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 5 guests