PDA

View Full Version : [APP][15/02/2009] iContact (supbro and truburt versions) with sensors


l3v5y
15th February 2009, 11:08 PM
Recently, I've been playing around with the Diamond sensor APIs seeing how things work, and thinking of ways to apply them to apps.

As you may well know, iContact has very long lists in it, which can be a tad tedious to scroll through if you have loads of contacts, so I've added support for both the touch "wheel", and the gsensor.

This is based on iContact 0.91

To use:
You can scroll with the wheel like iPods click wheels. Clockwise goes down the list, counterclockwise goes up the list.
You can scroll with the gsensor by tapping the centre button and then tilting the device up or down to scroll up or down the list. Releasing the centre button will stop the scrolling.

Currently, landscape (probably) won't work with the gsensor.

Thanks to supbro, truburt and larna for iContact, and Scott Seligman for how to use the sensors.

Since iContact is GPL, you can grab the source code as well as a cab below!

Changes:
iContact BE now supported as well! :)
0.91.1 - An updated scrolling mechanism to make a steeper tilt move faster.

l3v5y
16th February 2009, 12:44 PM
New version with better scrolling now available.

derfler
16th February 2009, 03:25 PM
how i install it ?

l3v5y
16th February 2009, 03:26 PM
how i install it ?

Download the 0.91.1 cab file, copy it to your device, and then run it from file explorer.

curious george
16th February 2009, 04:16 PM
would you be willing to consider it for truburt's edition?

l3v5y
16th February 2009, 04:18 PM
would you be willing to consider it for truburt's edition?
If I can get the source, it shouldn't be too hard.

Sergio PC
16th February 2009, 06:10 PM
Quick Q:
Can i just install the iContact.Sensors cab and keep my current iContact version but adding gsensor capability to it?

Thanks very much.

l3v5y
16th February 2009, 06:12 PM
Quick Q:
Can i just install the gsensor cab and keep my current iContact version but adding gsensor capability to it?

Thanks very much.

No. This uninstalls the previous one, and then installs the new one.

charly_mx
16th February 2009, 07:38 PM
I will test it right now :D

chbg
16th February 2009, 08:27 PM
Thank you, will test it right away!
Looks promising :D

watikjebrom
17th February 2009, 11:26 AM
I tried it, but it makes scrolling in iContacts imho very nervous. Re-installed original iContacts ....

l3v5y
17th February 2009, 04:08 PM
I tried it, but it makes scrolling in iContacts imho very nervous. Re-installed original iContacts ....

Is the normal scrolling (i.e. finger scrolling) affected? It shouldn't be as I haven't touched the code for that!

curious george
18th February 2009, 12:19 AM
If I understand the first post correctly I simply have to place my thumb on the center sensor(not depress) and tilt and the scrolling should begin?

If that is correct can you expand that capability into any windows application?

Maybe incorporating something along with Gcontroller here http://forum.xda-developers.com/showthread.php?t=429569

cg

l3v5y
18th February 2009, 12:23 AM
If I understand the first post correctly I simply have to place my thumb on the center sensor(not depress) and tilt and the scrolling should begin?

If that is correct can you expand that capability into any windows application?

Maybe incorporating something along with Gcontroller here http://forum.xda-developers.com/showthread.php?t=429569

cg

That is correct. I think creating a system wide service may prove more difficult, as in iContact, all it does is simulate a key down event with VK_DOWN or VK_UP. This may not be quite what's wanted depending on the application.

I've been looking at ways of expanding butler, and so far I've built in screen rotation, launching applications for every event and one or two other tricks, but system scrolling could be another one to add.

voyd
18th February 2009, 10:01 PM
hi,

if you want scroll in iContact do this:

Create a key and value, as below

HKLM/Software/HTC/SmartTouch/iContact
(String Value) ClassName = iContact
(DWORD Value) Mode = 4
(DWORD Value) WheelCount = 2

easy to create, work fine for me....


V.
have fun:)

naser amereh
19th February 2009, 11:52 AM
thankkkkkkkkkkkkkkkkkkkkkkkk:D

l3v5y
19th February 2009, 01:50 PM
hi,

if you want scroll in iContact do this:

Create a key and value, as below

HKLM/Software/HTC/SmartTouch/iContact
(String Value) ClassName = iContact
(DWORD Value) Mode = 4
(DWORD Value) WheelCount = 2

easy to create, work fine for me....


V.
have fun:)
That works with the scroll wheel, but not with the gsensor. And, since I needed some of the scroll wheel things to be able to have the gsensor working well, I decided I may as well integrate both functions.

voyd
19th February 2009, 02:50 PM
hi,

yes you're right, it work only with the wheel....

It's a ery simple solution to scroll with wheel in many soft, i use Burt icontact insted icontact 0.9 so your solution do not work for me, my solution is not perfect but for people whose just want wheel scroll it's perect and easy ;) and it works on every soft if you have the name of the soft's CLASS.

But your solution is cool for people who use iContact 0.9.

congratulation

V.

mugglesquop
19th February 2009, 04:37 PM
brilliant idea, like the way you have done it.

You have managed to improve a already great program!

thanks very much :)

xboxhaxorz
19th February 2009, 11:36 PM
Is it possible without the touching the center?

xboxhaxorz
19th February 2009, 11:37 PM
would you be willing to consider it for truburt's edition?

+2 for burts

l3v5y
19th February 2009, 11:50 PM
Is it possible without the touching the center?It's entirely possible. I'll do it tomorrow.

+2 for burts
I tried to get the sources of truburt, haven't got them yet, but I do have some slightly older source code now. Again, I'll do it tomorrow, 'cause it's 11pm now, and I have things to do tomorrow.

xboxhaxorz
20th February 2009, 03:00 AM
Ahh yes, i understand the source is not readily available. We will be patient.

supbro
20th February 2009, 10:19 AM
Thanks l3v5y, I'll def. be adding this to the next release as I find it quite handy!

l3v5y
20th February 2009, 12:54 PM
Ahh yes, i understand the source is not readily available. We will be patient.

Turns out the reason I hadn't got it earlier was that GMail was blocking the file!

I now have the source, so it shouldn't be long before I add the sensor support (I can just copy my code changes over :))

l3v5y
20th February 2009, 04:11 PM
iContact BE is now supported.

Based on the v7 source code, thanks to truburt for it.

xboxhaxorz
20th February 2009, 11:33 PM
I have just installed iContactBESensors.CAB, but it does not scroll when tilting. Yes i have a TP lol.

l3v5y
20th February 2009, 11:34 PM
I have just installed iContactBESensors.CAB, but it does not scroll when tilting. Yes i have a TP lol.

Lightly press and hold the centre button.

xboxhaxorz
21st February 2009, 12:28 AM
Still nothing. It does let me scroll by touching the center and sliding it a tad but not when tilting the device and touching.

NLS
21st February 2009, 01:15 AM
Same here with my TP.
(stock ROM)

l3v5y
21st February 2009, 03:35 PM
Still nothing. It does let me scroll by touching the center and sliding it a tad but not when tilting the device and touching.

Same here with my TP.
(stock ROM)

Press down with the DPad a couple of times and see if that works, then try and scroll using the sensor.

xboxhaxorz
21st February 2009, 03:54 PM
Yes the pad works, but not the sensor

NLS
22nd February 2009, 10:59 AM
Exactly same here.

Canaan
25th February 2009, 03:14 PM
Hi everyone! If iContact is cooked into a rom and mapped to the contacts soft key, is there any way to get back the original ms contacts?

Cheers guys.

Utilidades
25th February 2009, 04:26 PM
Hi people!

I don't understand yet, what for is de "icontactsensor" its suppose too work with the sensor?

I run the .cab, and run the icontact and don't do nothing with the sensor only the same thing of the original.

Please explain me that :)

Thanks...

rxyamaha
25th February 2009, 11:20 PM
I downloaded this application and installed on my TP. Everything works fine normally. But when I try using the dpad to use the gsensor capability, it goes into loop and keeps on scrolling itself and I get windows blue screen error, but it's white background in PPC :p.. Any idea why this is happening ? :confused: