RotateAnimation - Stopping and starting again after every rotation

by Nithin » Mon, 29 Mar 2010 16:09:59 GMT

Sponsored Links

I am rotating a view using rotateAnimation with this code
new RotateAnimation(0, 360, w / 2, h / 2);
I want to rotate this view infinitely, so i put

But the problem is after every one complete rotation, its stopping and
starting again, means by default rotateAnimation have
AccelerateDecelerateInterpolator(). I feel because of this. So if i
put setInterpolator(null), its throwing null pointer exception. How to
solve this.

I want to rotate my view without any lag.



Other Threads

1. Subclass to save global state?

I want a handle to my sqlite database to be available to many activities.
I read about subclassing Application, and storing things there.  Then I
should be able to get them through getApplicationContext().  An article
explaining this says that I must "specify that class in the application
tag in your manifest".  What would that <application> tag attribute look

Also, in the docs for, this is said:

There is normally no need to subclass Application. In most situation, static singletons can provide the same functionality in a more 
modular way. If your singleton needs a global context (for example to register broadcast receivers), the function to retrieve it can 
be given a Context which internally uses Context.getApplicationContext() when first constructing the singleton.

I don't really understand this, although I know what a singleton is.

Also, if android reclaims my apps memory after a long period of disuse,
does the app actually have to start up again from scratch when it comes back?
Can there be no static state through that process?




2. Android WebView


I am developing an app in android using WebView.  My HTML page is coming
from the server.  The page contains a lot oh high resolution images, is
there a way to store and reference those images from the assets folder, or
reference local images.  That will help me increase the performance.  I
would want to keep the HTML on the server and not make it local.



3. Help me about publish fee

4. [WTI] komik 3D

5. "Failed to find provider info for" ContentProvider

6. NPAPI plugin support

7. Supporting in uncertain life to family member