FORUMS
Remove All Ads from XDA
Google Home

Updated [Jan-10]: [App] [G-Sensor] [Brand New] The XSense v1.2 Final

619 posts
Thanks Meter: 140
 
By shirreer, Senior Member on 22nd October 2009, 08:07 PM
Post Reply Email Thread
Credits:
Foremost, let us all acknowledge Koushik for his brilliant "Sensors" library upon which most if not all non-HTC apps that use the G-Sensor, Light-Sensor, and Navi-Sensor are built, simply ingenious. Moreover, I would like to recognize No2chem for the NeuLed2 library which is an equally exquisite peace of code that allows access to the Diamond/Pro Leds. Without those two guys, accessing these advance interfaces on the diamond/pro would be inapproachable at best.

Reason: HTC gave these phones lots of sensors, lets give them.."Sense".

......... EXTRA-Sense ...........


* Hopefully, an innovaton & integration of RANDOM but needful features...


Features:

1. Courtesy Settings:

- Select Volume Profiles to activate on Face-Down & Face-UP events. Choose from: None, Silent, Normal, and Vibrate. You can also choose to suspend the Phone when its facing down (duh!).

2. Notifications-Sense:

- IF there is/are any outstanding notification(s), the device will vibrate whenever you move it at customizable intervals: Missed Call(s), Voice Mail, and SMS only.

3. Stylus-Sense:- When the Stylus is in/out: Will play faint sound + Blink the Back button's light +/Vibrate. Moreover, the device will vibrate whenever you move it at customizable intervals.

- When the Stylus is out and the device is moved: Device will vibrate twice on every posture change + blink the Back button's light to REMIND you that the Stylus has not been placed back in. This goes ON until the Stylus is placed where it should be.

* Uses "in.wav" & "out.wav" files in the \XSense\ Dir; you can use whatever wave files for this. OR, use the UI to select whichever wave files you want!

4. General Settings:
- Polling Interval: From 200 to 3000 Miliseconds. This determines the rate at which the G-Sensor is polled. Lower values give higher response times and fluid operation at the cost of battery life & CPU utilization.

- Flash Navi Lights: Will blink button lights to notify you of Profile changes and Stylus In/Out.

- Vibrate on Events: Will induce very subtle vibrations to notify you of Notifications and Profile changes.

- Suspend when UP-Side-Down: Your phone will suspend if you hold it up-side-down (duh!)

- Light Navi Button When Suspended: Will do just that. This is an independent setting that turns ON the Navi button's light at suspend time, and OFF at Resume time (this is Event Driven, so no polling is involved). This feature really helps if, like me, you want to see where the damn thing is in the dark - before you launch it against the floor.

6. Installs to "\Program Files\XSense", and Creates 2 shortcuts:
"Start Menu\Programs\XSense" and "Startup\XSenseSvc".
Program Settings are saved to the Registry at "HKCU\Software\XSense\".

Use of System Resources:

1. Diskspace: 162 KB RAM footprint: 374-535 KB Battery: NOT observed.
2. CPU Usage: %0.29 Average. Spikes for 2 seconds to %2.7 - %8.5.

* Indicated CPU usage occurs ONLY when there is an EVENT (posture changed, stylus in/out Sounds playing,
etc)

- Vibration: The way I like it is in waves of 200 miliseconds length! I generally hate vibrations, so if you want it at 201 ms. you're welcome to make your own program and enjoy the merits of your personal taste.

- This prgram Registers Event Handlers for: "G-Sensor", "Incoming Call", "Phone Call in Progress", "Stylus in/out", and Power Manager events. DO NOT move it to Internal Storage, you have been warned.

Requirements:
.NET 3.5 + Diamond or Raphael (for all features to work), else, any HTC device with GSensor & Light Sensor.

Bugs/Limitations:
Knock yourself out...

Disclaimer:
This program is provided strictly on "as is" basis. It is intended only as a proof-of-concept. Although fully functional, it must NOT be considered for daily use. This software is very likely to compromise the integrity of your data as well as invariabley cause your device to malfunction in any way, shape, or form. Therefore, the developer shall be absolved of all responsibility towards testers and/or their computers & devices. While using this software you agree to be solely liable for all and any damages you do to yourself, your device, or any damn thing you possess and care for!

Release Notes:
- This is the LAST revision/release/app I make; programming too much work
- Download & Install the CAB
- Run the XSense from your Start Menu\Programs, customize to taste, and enjoy!

Change Log:

- Brand New UI: VERY touch friendly - this is especially useful if you have
an WVGA Device - HD/Rhodium/Topaz/HD2 etc...
- Revised entire code for existing & potential bugs, and Performance
tweaked to death.
- Removed various functions (auto speakerphone, car-kit options, etc...). Use "Touch InCall Screen Tweak" for these,
its handles Phone/Speaker brilliantly!
- Shortcut added to Startup for automatic launch after reboot.
- Shortcut with a nice icon added to Start Menu (Credit to VetVito).
- General Tab:
- Navi Button will only light up if the device is in a dark place, i.e. You will
always see where your phone is (before you trash it against the wall).
- Stylus Tab:
- UI elements to select & set sounds for Stylus-in/out events.

Download: XSense 1.2 - Final
http://forum.xda-developers.com/atta...7&d=1263112521
 
 
22nd October 2009, 10:03 PM |#2  
Senior Member
Thanks Meter: 1
 
More
Nice integrated use of the sensors, well done!
22nd October 2009, 10:16 PM |#3  
Senior Member
Thanks Meter: 28
 
More
Very nice idea. I wish it would work on a TP2.
23rd October 2009, 01:42 AM |#4  
12aon's Avatar
Retired Senior Moderator
Thanks Meter: 462
 
Donate to Me
More
Very nice how you integrated the led and vibrations into it, current;y flashing but will try it for sure,

12
23rd October 2009, 02:40 AM |#5  
shirreer's Avatar
OP Senior Member
Thanks Meter: 140
 
More
Quote:
Originally Posted by Mandragore

Nice integrated use of the sensors, well done!

Thank you, I appreciate the compliment mate any extra ideas?
23rd October 2009, 02:43 AM |#6  
shirreer's Avatar
OP Senior Member
Thanks Meter: 140
 
More
Quote:
Originally Posted by lostcausenjtown

Very nice idea. I wish it would work on a TP2.

Actually, with very minor modifications (taking the led calls out) it should work just dandy. Or, better yet, does the TP2 have any leds? Do the buttons light up on events, like the diamond/raphael?
23rd October 2009, 02:47 AM |#7  
shirreer's Avatar
OP Senior Member
Thanks Meter: 140
 
More
Quote:
Originally Posted by 12aon

Very nice how you integrated the led and vibrations into it, current;y flashing but will try it for sure,

12

Mate, it would be much to my pleasure if you do, and please feel free to give me feedback on operation, logic, extra ideas...

Cheers
23rd October 2009, 10:02 PM |#8  
macaraballojr's Avatar
Senior Member
Flag New York
Thanks Meter: 1
 
More
Seems like a great program... for some reason I dont think its working. I have and htc fuze. currently running chrome_23420.1 wwe. Might be a rom issue... I am about to flash the latest enrgy rom later today and will report back...
23rd October 2009, 11:12 PM |#9  
shirreer's Avatar
OP Senior Member
Thanks Meter: 140
 
More
Quote:
Originally Posted by macaraballojr

Seems like a great program... for some reason I dont think its working. I have and htc fuze. currently running chrome_23420.1 wwe. Might be a rom issue... I am about to flash the latest enrgy rom later today and will report back...

Best of luck flahing, mate. Tell me how it goes afterwards

Cheers
24th October 2009, 09:51 AM |#10  
Kamill's Avatar
Senior Member
Thanks Meter: 5
 
More
Great idea with the app! I especially like the 3rd point I'll test it for sure.
24th October 2009, 06:21 PM |#11  
shirreer's Avatar
OP Senior Member
Thanks Meter: 140
 
More
Quote:
Originally Posted by Kamill

Great idea with the app! I especially like the 3rd point I'll test it for sure.

Thank you mate, fortunately I like it all any bright ideas?

Cheers
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes