My issue is not with multi-touch, that seems to work fine. My issue is with click/onClick. After more testing/research I found out that the usual "onClick" events we associate with the map control in ArcGIS apps doesn't happen. Instead I see a "click" event on the parent of the map element in my app, in this example it is called "mainView".
In this code example I check if the browser is Android, and if the click is on the mainView/map element then I call the onclick event I have also connected in the onLoad function.
in my Init() function{
...
dojo.connect(map, "onLoad", function(evt) {
...
if (navigator.userAgent.indexOf('Android') != -1 ) {
dojo.connect(dojo.byId("mainView"), "click", function(evt) {
if (evt.target) targ = evt.target;
else if (evt.srcElement) targ = evt.srcElement;
if (targ.nodeType == 3)
targ = targ.parentNode; // apparently a Safari difference/fix
//alert(targ.id + " " + evt.type + " " + evt.screenX + "," + evt.screenY);
if(targ.id.indexOf("map") != -1 && targ.id.indexOf("layer") != -1) {
map.onClick(evt);
}
});
}
...