Reputation: 4417
I have an application in PhoneGap
to Android
, I use Android 2.2 device and Phone Gap 2.2.0 version ..
I want to allow the user by the fingers to zoom map
(on devices with more advanced versions it works!)
Why on this version is not working?
Do I need to define something to make it work?
It's my link to Google Maps in HTML:
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=true"></script>
These are the permissions on the file Manifest.xml:
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.GET_ACCOUNTS"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
Upvotes: 3
Views: 1461
Reputation: 374
So you're emulator is running Android 2.2 (Froyo) correct? If so, first check to see what API installs you have in your environment. Sounds elementary but you want to check your packages and if you can Update each time you switch your API level. (e.g. Fryo is API level 8)
Fryo API Android 2.2 Also, have you tried manipulating your intent using object gestures specified for 2.2.
Hope this helps you!
Upvotes: 1
Reputation: 576
It may be a hardware issue. Many (older) android devices do not support multi-touch. You can't use pinch to zoom if your device doesn't support it.
Check android: how can I verify, that device support multitouch?
Upvotes: 2
Reputation: 437
if you set attribute user-scalable=yes unsuccessfull,You could try this in Activity extend from DroidGap.
super.appView.getSettings().setSupportZoom(true);
super.appView.getSettings().setBuiltInZoomControls(true);
Upvotes: 1