PPCGeeks Forums HTC Arrive HTC HD2 HTC Thunderbolt HTC Touch Pro 2 HTC Evo 4G HTC Evo 3D Samsung Galaxy S II Motorola Droid X Apple iPhone Blackberry
Go Back   PPCGeeks > Windows Mobile > WM HTC Devices > HTC Touch Pro 2
Register Community Search

Notices


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-06-2009, 03:00 PM
Gorby's Avatar
PPCGeeks Regular
Offline
Pocket PC: Samsung Epic 4G
Carrier: Sprint
 
Join Date: Nov 2007
Posts: 234
Reputation: 415
Gorby is becoming a PPCGeeks regularGorby is becoming a PPCGeeks regularGorby is becoming a PPCGeeks regularGorby is becoming a PPCGeeks regularGorby is becoming a PPCGeeks regular
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Question Questions to developers - accessing HTC sensors?

Any of the developers here can point me to some good material on accessing TP2 sensors such as proximity, light, G-sensor, etc? I'd like to try a couple of utilities but can't find any documentation on API or SDK for those.

Thnx
__________________
If I helped you, I am not asking you to press any buttons to thank me. Just return a favor by helping someone too.
Reply With Quote
  #2 (permalink)  
Old 11-06-2009, 03:17 PM
MrNybble's Avatar
N00b
Offline
Pocket PC: Epic 4G
Carrier: Sprint
Location: Missouri
 
Join Date: Oct 2009
Posts: 39
Reputation: 30
MrNybble is just getting started
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Questions to developers - accessing HTC sensors?

HTC is really closed when it comes to their API set. Other companies are much more forthcoming. There is no unified sensor SDK in the .NET CF framework. I know what you mean, it would be fun to mess with the proxmity sensor and light sensor. There are some cool apps you could write...hehe. If you ever find anything let us all know.

See: http://wmpoweruser.com/?p=3355

If I helped, Don't forget to hit Thanks
Reply With Quote
This post has been thanked 1 times.
  #3 (permalink)  
Old 11-06-2009, 03:27 PM
Gorby's Avatar
PPCGeeks Regular
Offline
Pocket PC: Samsung Epic 4G
Carrier: Sprint
Threadstarter
 
Join Date: Nov 2007
Posts: 234
Reputation: 415
Gorby is becoming a PPCGeeks regularGorby is becoming a PPCGeeks regularGorby is becoming a PPCGeeks regularGorby is becoming a PPCGeeks regularGorby is becoming a PPCGeeks regular
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Questions to developers - accessing HTC sensors?

Thanks for the input and interesting link. I did not know they are so shut. Seems kinda dumb I guess since developing good apps for any platform enhances the platform.

There has to be a way somehow though since I have seen some custom apps that use the sensors - PocketShield being one of them.
Reply With Quote
  #4 (permalink)  
Old 11-06-2009, 03:53 PM
gutrrob's Avatar
Regular 'Geeker
Offline
Pocket PC: Evo 3D
Carrier: Sprint
Location: Los Angeles, CA
 
Join Date: Mar 2008
Posts: 368
Reputation: 505
gutrrob knows their stuffgutrrob knows their stuffgutrrob knows their stuffgutrrob knows their stuffgutrrob knows their stuffgutrrob knows their stuff
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Questions to developers - accessing HTC sensors?

I would like a app that uses the light/prox. senser to know your phone is in a holster/pocket and keep the screen off no matter what. I hate when my phones in my holster and the screen turns on because of lost signal.
Reply With Quote
  #5 (permalink)  
Old 11-06-2009, 10:16 PM
MrNybble's Avatar
N00b
Offline
Pocket PC: Epic 4G
Carrier: Sprint
Location: Missouri
 
Join Date: Oct 2009
Posts: 39
Reputation: 30
MrNybble is just getting started
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Questions to developers - accessing HTC sensors?

There is nothing keeping us from using the API set in the OEM DLL's We just need to know the function names to create the object and/or use the callback. We'll have to see what we can find out. I'm sure someone has some of this info somewhere. If not maybe we can spy a bit.
Reply With Quote
  #6 (permalink)  
Old 11-07-2009, 11:43 AM
Gorby's Avatar
PPCGeeks Regular
Offline
Pocket PC: Samsung Epic 4G
Carrier: Sprint
Threadstarter
 
Join Date: Nov 2007
Posts: 234
Reputation: 415
Gorby is becoming a PPCGeeks regularGorby is becoming a PPCGeeks regularGorby is becoming a PPCGeeks regularGorby is becoming a PPCGeeks regularGorby is becoming a PPCGeeks regular
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Questions to developers - accessing HTC sensors?

Good news! Jim (creator of the fantastic PocketShield and Volumex applications) pointed me in the right direction. The reversed engineered APIs that are already wrapped and ready to use in Visual Studio with C# examples are publicly available here:

http://sensorapi.codeplex.com/

They even have sample code there. Just download the solution, compile in VS, drop the exes and dlls on the PT2 and the samples work great! The NavSensor does not work since it is designed for the round center button that TP1 had for example; but G-sensor, light sensor, and stilus out APIs work great. I don't think there is anything for the proximity sensor or at least I couldn't find anything else.

There are more samples/discussions on xda and on http://www.basic4ppc.com/forum/index.php sites.

Cheers.

EDIT: Oh, and as one example of using a G-sensor API - this lightsaber application is hilarious and runs great on TP2!

Last edited by Gorby; 11-07-2009 at 11:49 AM.
Reply With Quote
This post has been thanked 2 times.
Reply

  PPCGeeks > Windows Mobile > WM HTC Devices > HTC Touch Pro 2


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 09:20 AM.


Powered by vBulletin® ©2000 - 2024, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0
©2012 - PPCGeeks.com