Frame by Frame Animation

by Alowishus » Sun, 08 Mar 2009 12:26:30 GMT


Sponsored Links
 Hey Gang,

Has anyone noticed a threshold adding images to frame by frame
animation? I have 30 images, but when I add more than 24 is causes the
app to crash. Any ideas?
--~--~---------~--~----~------------~-------~--~----~



Frame by Frame Animation

by deepdr...@googlemail.com » Sun, 08 Mar 2009 18:11:27 GMT


 I just tested an AnimationDrawable with 42 add()ed frames.
This works on the emulator as well as on the phone.
Then again in my case the animation has only 2 alternating images,
forming the animation by being displayed with different timing.

--
 http://www.deepdroid.com 




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


Sponsored Links


Frame by Frame Animation

by Romain Guy » Sun, 08 Mar 2009 18:20:55 GMT


 What is the crash exactly?

On Sun, Mar 8, 2009 at 3:11 AM, deepdr...@googlemail.com






-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

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



Other Threads

1. Adapter.getView not getting called when placed in a different class??

Hi all,

I created a ListActivity and I used an ArrayAdapter class that I
extended to display the rows of my list (with an icon and text).
Everything there works great. I need a few of these lists on different
tabs, so I decided to create a base class called ListBase that extends
from ListActivity. I changed my class to extend my new ListBase
instead of ListActivity. Again everthing worked.

The last step for me is moving my private adapter class into the base
class. For some reason, when I move it into the base class, the

@Override
public View getView(int position, View convertView, ViewGroup parent)
{...}

never gets called. Remember that the above method is inside of the
private ArrayAdapter class which is inside my ListBase class. It works
fine when I put the private adapter class in the child class that
inherits from ListBase, but the override doesnt get called if I move
it into ListBase. I tried making the private class a public class and
that didnt work either.

Is there some rule in android/java about overrides and private
classes? How can I get it to work?

Here is what works:

public class LatestNewsView extends ListBase {
    ...
   private class StoryAdapter extends ArrayAdapter<Story> {
            ...
        @Override
        public View getView(int position, View convertView,
ViewGroup    parent)   {
                    // this code gets called properly
        }

   }


Here is what doesnt work:

public abstract class ListBase extends ListActivity {
   ...
   private class StoryAdapter extends ArrayAdapter<Story> {
      ...
      @Override
      public View getView(int position, View convertView, ViewGroup
parent) {
        //this never fires WHY???
      }

Any help would be great!!

Thanks,
-Savij

-- 

2. I need android developers guide in pdf

Hi all

 Where can i get the developers guide in pdf...

-- 

3. Audio file list

4. spinner question

5. Sound board App

6. Android Market Developer Console Bugs feature

7. Dynamically add an ImageView to a Widget