Multi touch feature for zooming

Bug #579388 reported by Kieran Fleming
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenSatNav
Fix Committed
Medium
Murphy

Bug Description

Would be nice to support this if the user has a hacked Android image

Revision history for this message
Murphy (murphy2712+launchpad) wrote :

An official approach would be to use the new gestures in SDK 1.6:
http://android-developers.blogspot.com/2009/10/gestures-on-android-16.html

Revision history for this message
Murphy (murphy2712+launchpad) wrote :

Since 2.0 Android supports native multitouch, but there's also a simply way to support it with previous versions:
http://lukehutch.wordpress.com/2010/01/06/my-multi-touch-code-ported-to-eclair/

I'll look into that code soon.

Changed in opensatnav:
status: New → In Progress
assignee: nobody → Murphy (murphy2712+launchpad)
Revision history for this message
Paspartout (pv-ndsmail) wrote :
Revision history for this message
Murphy (murphy2712+launchpad) wrote :

Yes I know but I have no experience using reflection and don't want OSN to only work with Android 2.2 (and so far there's still no official release of 2.2!).

I'm using the new code from Luke Hutchison which hopefully will be compatible with Android 1.6 (and uses 2.2 APIs using reflection).
http://code.google.com/p/android-multitouch-controller/

From my last hours of coding, I managed to get it "working".
Now I need to finish it (the zoom buttons are not yet synchronized with MT), clean it, test it with different devices (hopefully where I work there's a lot of Android devices!), merge it in local with the last branch (I'm still using the SVN version), and then you'll have a test version :)

Revision history for this message
Murphy (murphy2712+launchpad) wrote :

Hi, here's a testing version of OpenSatNav using MultiTouch!
It works very well on my Nexus One (Android 2.2).
MT doesn't work as expected with my Archos 5 IT (Android 1.6) because the screen is resistive and doesn't support MT. Normal zoom still works!
I must wait until next week to test it on few other phones.

Please test it and tell me if it works on your phone.
Don't forget to write the phone model, Android version, screen type (resistive or capacitive) you use.
Remember that devices using a resistive screen can't work with MT, but I need to be sure that it doesn't bug on them and classic zoom works.

Happy MultiTouch :)

Revision history for this message
Murphy (murphy2712+launchpad) wrote :

Tested on Motorola Droid/Milestone, Android 2.1, capacitive screen: MT works :)
Tested on Sony Xperia X10, Android 1.6, capacitive screen but no MT.
I think MT needs Android 2+.
Hopefully OSN still works using classic zoom with not supported phones.
Here's a new version:
- removed some unneeded logs for MT,
- corrected a bug where the zoom was wrong when changing orientation.

Revision history for this message
Colin Marquardt (ubuntu-marquardt-home) wrote :

I can confirm that v2 works with MultiTouch on a Nexus One, Android 2.1 (capacitive screen), great. Now it would be cool if it used shrunk/grown old tiles until it has loaded the right ones for the new zoom, though this is outside of the scope of your work I suppose.

Revision history for this message
Murphy (murphy2712+launchpad) wrote :

You're right, it's another feature, already reported as #579473.

Revision history for this message
Kieran Fleming (kieran-fleming) wrote :

Works on my G1 running Android 2.1.
If you put up a branch for this I'll make sure it gets in the 1.0 release.

Changed in opensatnav:
milestone: 1.1 → 1.0
Revision history for this message
Kieran Fleming (kieran-fleming) wrote :

Hey Murphy, can you put up some code for this?

Revision history for this message
Murphy (murphy2712+launchpad) wrote :

Hi,
it seems that my last reply by email had not reached this ticket.
Sorry I was away, my laptop died and I was moving to a new country.
By the way I just checked and my data was safe so I merged my multitouch mod with the last revision and it still works :)
I just uploaded the code using my branch (my first time using bzr, I hope it's ok).

I already helped another (well known) project using this multitouch code: osmdroid
http://code.google.com/p/osmdroid/issues/detail?id=25
Next step is to integrate their new jar library in order to get all their updates easily!

Changed in opensatnav:
status: In Progress → Fix Committed
Revision history for this message
Kieran Fleming (kieran-fleming) wrote :

Thanks, I've merged the code into trunk so it'll get built shortly.

Revision history for this message
Kieran Fleming (kieran-fleming) wrote :

Murphy, there's a problem with the Multitouch code. Previously it was possible to long press on a point of the map to bring up a 'Navigation' option. It looks like the Multitouch code replaces the controller that would otherwise provide this event. Can you please have a look at this?

Revision history for this message
Murphy (murphy2712+launchpad) wrote :

Sorry I didn't knew that feature, I will correct that.

Changed in opensatnav:
status: Fix Committed → In Progress
Revision history for this message
Murphy (murphy2712+launchpad) wrote :

Ok, I fixed the long click issue in my new branch.

Changed in opensatnav:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.