Thanks for your email. but I'm not focusing on apps level. I wanna modify the 
source code of frameworks, especially the WindowManagerService.java to 
implement an animation for screen rotation. I noticed that when I rotate the 
screen, the WindowOrientationListener will be callbacked, and the setRotation 
method will be invoked. Then I can set an animation for a WindowState. Then I 
wanna know how the animation will be displayed on the screen. does 
Surface.openTransaction and Surface.closeTransaction work for that? 

On 24/08/2010, at 9:24 PM, nation-x wrote:

> See http://code.google.com/p/floatingimage/ for an example of how to
> animate rotation... basically, this project overrides the rotation
> and, when you are looking at an image and rotate the phone, it
> constantly rotates... there is no rotation lifecycle in this app as
> far as I can tell.
> 
> Android Workz
> 
> On Aug 24, 3:28 am, xiao ling <[email protected]> wrote:
>> I'm researching the source code, and I wanna implement an animation for
>> default screen rotation. I just need some help.
>> 
>> On Tue, Aug 24, 2010 at 3:12 PM, Dianne Hackborn <[email protected]>wrote:
>> 
>> 
>> 
>>> What do you mean forbid?  The standard platform doesn't have one
>>> implemented.  This is not something that is accessible for apps, so not
>>> relevant for this group.
>> 
>>>   On Mon, Aug 23, 2010 at 8:12 PM, Xiao <[email protected]> wrote:
>> 
>>>>  I'm reading the android source code, and wanna make orientation
>>>> animation. I've found that when I rotate the screen, the code will be
>>>> executed to public boolean setRotationUncheckedLocked(int rotation,
>>>> int animFlags){}, in which there's a line
>>>> startFreezingDisplayLocked(). If this method works, there's no
>>>> animation when I rotate the screen. Thus, I wanna know whether Google
>>>> forbid orientation animation on purpose, and if I wanna make an
>>>> animation, whether just use stopFreezingDisplayLocked() instead?
>>>> Thanks a lot.
>> 
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Android Developers" group.
>>>> To post to this group, send email to [email protected]
>>>> To unsubscribe from this group, send email to
>>>> [email protected]<android-developers%[email protected]>
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/android-developers?hl=en
>> 
>>> --
>>> Dianne Hackborn
>>> Android framework engineer
>>> [email protected]
>> 
>>> Note: please don't send private questions to me, as I don't have time to
>>> provide private support, and so won't reply to such e-mails.  All such
>>> questions should be posted on public forums, where I and others can see and
>>> answer them.
>> 
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to [email protected]
>>> To unsubscribe from this group, send email to
>>> [email protected]<android-developers%[email protected]>
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>> 
>> --
>> Xiao Ling
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

Sincerely
Xiao Ling

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to