- app: android mobile
- sdk 3.1.3.GA
- os: osx mavericks
- studio Titanium Studio, build: 3.1.3.201309132423
- output: Samsung Galaxy Tab (4.2.2)
Hi all,
I'm attempting to use ddms to debug my app on an android device. My specific issue is that, in my app, the geo permission checker defaults to "You have disallowed App from running geolocation services." without allowing the user to choose.
function checkGeoPermission() { if (Ti.Geolocation.locationServicesEnabled === false) { helper.showDialog({ title : 'Mapping Error', message : 'Your device has geo turned off - turn it on.' }); } else { if (OS_IOS) { var authorization = Ti.Geolocation.getLocationServicesAuthorization(); } if (authorization == Ti.Geolocation.AUTHORIZATION_DENIED) { helper.showDialog({ title : 'Mapping Error', message : 'You have disallowed App from running geolocation services.' }); } else if (authorization == Ti.Geolocation.AUTHORIZATION_RESTRICTED) { helper.showDialog({ title : 'Mapping Error', message : 'Your system has disallowed App from running geolocation services.' }); } } return; };This function works as intended in iOS.
I see the device, but there aren't any threads to which I can attach and do things like heap dumps, etc. Here is a screenshot of the device in ddms. My experience building and debugging android apps is minimal.
I tried using the Android Developer Guide but it didn't say what to do if there are no threads to connect to.
Hope that's enough info. If not, please ask. Regards.