htc-hero

javascript geolocation on android doesn't work

若如初见. 提交于 2019-12-29 06:16:29
问题 I am developing a website that relies on pulling the geolocation data of a mobile user. I am doing it the typical way via: function initialize() { if(window.google && google.gears) { var geo = google.gears.factory.create('beta.geolocation'); geo.getCurrentPosition(useLocation, errorOnLocate); } else if(navigator.geolocation) { navigator.geolocation.getCurrentPosition(useLocation, errorOnLocate); } else { alert("no geo found"); } } function errorOnLocate(message) { alert(message); zoomTo(-34

android.settings.INPUT_METHOD_SETTINGS doesn't work with HTC hero

╄→гoц情女王★ 提交于 2019-12-08 10:17:31
问题 My application has a button that sends the user to the locale setting. I do this with this code: startActivity(new Intent(android.provider.Settings.ACTION_INPUT_METHOD_SETTINGS)); This works fine with some devices, but with the HTC Hero I get: 02-03 13:59:27.501: INFO/ActivityManager(69): Starting activity: Intent { action=android.settings.INPUT_METHOD_SETTINGS flags=0x10000000 } 02-03 13:59:27.531: DEBUG/AndroidRuntime(1916): Shutting down VM 02-03 13:59:27.531: WARN/dalvikvm(1916): threadid

javascript geolocation on android doesn't work

橙三吉。 提交于 2019-11-29 04:07:35
I am developing a website that relies on pulling the geolocation data of a mobile user. I am doing it the typical way via: function initialize() { if(window.google && google.gears) { var geo = google.gears.factory.create('beta.geolocation'); geo.getCurrentPosition(useLocation, errorOnLocate); } else if(navigator.geolocation) { navigator.geolocation.getCurrentPosition(useLocation, errorOnLocate); } else { alert("no geo found"); } } function errorOnLocate(message) { alert(message); zoomTo(-34.397, 150.644); } This always fails with [object PositionError] in to the errorOnLocate function, even if

Android: Intent.ACTION_SEND with EXTRA_STREAM doesn't attach any image when choosing Gmail app on htc Hero

做~自己de王妃 提交于 2019-11-26 17:44:08
问题 On the Emulator with a default mail-app all works fine. But I have no attach when I'am receiving a mail which I've sent from my Hero using a Gmail app. The default Mail app on the hero works fine. How can I make this code works with Gmail app on Hero? You can see the code below. private void startSendIntent() { Bitmap bitmap = Bitmap.createBitmap(editableImageView.getWidth(), editableImageView.getHeight(), Bitmap.Config.RGB_565); editableImageView.draw(new Canvas(bitmap)); File png =