Pages 1 of 1  
Forums  >> Samsung Instinct  >> HD Rotation event

KernelPanic
Rank :User
Posts:7
Overall Rating:1
Subject:
HD Rotation event
Date:
2009-10-28 at 08:40 AM CDT

is there any documentation or system event we can trap when a user rotates the phone from portrait to landscape and back?


jukim94
Rank :User
Posts:10
Overall Rating:3
Subject:
re: HD Rotation event
Date:
2009-11-01 at 07:30 PM CST

At first, get the initial state value by using getSystemState() method for rotate state and then get the callback value with systemeventlistener.


property : sprint.device.setting.viewing

Object getSystemState(String property);
- sprint.device.setting.viewing


Ryan_Wick_sprint *
Rank : Star Contributor *
Posts:242
Overall Rating:99
Subject:
re: HD Rotation event
Date:
2009-11-04 at 03:21 PM CST

To determine the orientation of the device you will need to use JSR256, which is the mobile sensor API. I'll see if we can get a sample for this on the site, but may be a few weeks before we can get it posted.

http://jcp.org/en/jsr/detail?id=256

Sprint ADP Team
Ryan Wick


KernelPanic
Rank :User
Posts:7
Overall Rating:1
Subject:
re: HD Rotation event
Date:
2009-11-04 at 04:59 PM CST

thanks you. I found javadocs for the jsr256. where can I get a jsr256.jar file for to use with netbeans? or do we need new updated WTK?


KernelPanic
Rank :User
Posts:7
Overall Rating:1
Subject:
re: HD Rotation event
Date:
2009-11-04 at 05:45 PM CST

for those looking, you find the ability to include jsr256 in the Sun WTK 3.0


Message will be posted within 2 minutes.
Pages 1 of 1