Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Android™ Development

New Contributor
Posts: 4
Registered: ‎10-29-2013
My Device: Z10
My Carrier: 123

onWindowFocusChanged don't raise when rotate screen.

[ Edited ]

Hi everybody.

I have an Android Application and I'm converting to BB10. 

In Android device my app work normally, but In BB10.2 official release (Z10) sometimes event rotation screen don't raise in onWindowFocusChanged  of some Activity.

I tried to debug and saw that sometimes app can't raise an orientation event.

Is it a Android runtime application in BB 10.2?

If itsn't a android runtime bug, how I can detect rotation event ?

Please give me some advices?

Thai Bao


Posts: 264
Registered: ‎01-08-2013
My Device: BlackBerry 10 Dev Alpha B
My Carrier: Bell

Re: onWindowFocusChanged don't raise when rotate screen.

Hey doanthaibao,


Why don't you try Android's OrientationEventListener?



Justin Jasmann | Android Application Development Consultant
Developer Relations