android-2.2-froyo

flash.sensors.Accelerometer on Android within web browser

早过忘川 提交于 2019-12-10 23:32:31
问题 The Accelerometer UPDATE event never fires, tho isSupported returns true, when the flash app is running inside the android web browser. How can I make it work? this.accelerometer = new Accelerometer(); accelerometer.addEventListener(AccelerometerEvent.UPDATE, onAccelerometerUpdate); Ref: http://blogs.adobe.com/cantrell/archives/2010/04/simple_accelerometer_example.html Ref: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/sensors/Accelerometer.html#isSupported My

Android app doesn't launch in simulator or hardware

和自甴很熟 提交于 2019-12-10 17:54:25
问题 My app used to run, but lately I've been getting this odd error: # guarantee(_name_index != 0 && _signature_index != 0) failed: bad constant pool index for fieldDescriptor How can I get my app to run in the simulator or on my phone again? 回答1: I was accidentally running it as a Java app instead of an Android app. My bad. Don't make my mistake young grasshoppers. 来源: https://stackoverflow.com/questions/5837897/android-app-doesnt-launch-in-simulator-or-hardware

Update Android ADT Tool to 21.1.0 from 21.0.1

烂漫一生 提交于 2019-12-10 12:39:43
问题 i have updated SDK to 21.1 and how to update ADT 21.1 in old version. and when i opened my SDK it displays This Android SDK requires Android Developer Toolkit version 21.1.0 or above. Current version is 21.0.1.2012-12-6-2-58. Please update ADT to the latest version. any solution, Thanks in advance 回答1: Faced the same problem and success with following steps Download the ADT Plugin zip file ADT-21.1.0.zip from http://dl.google.com/android/ADT-21.1.0.zip (do not unpack it): Start Eclipse, then

Usable VideoView source code for Android 2.2

我的梦境 提交于 2019-12-10 11:43:54
问题 I am building my own view for displaying videos, and I would like to base the custom view on the built-in Android VideoView. I'm therefore looking for the source code to VideoView. Most posts I've found on Stackoverflow and elsewhere point to grepcode. Unfortunately, the code on grepcode doesn't seem to be the code documented on developer.android.com and isn't very usable. For example, the VideoView.java on grepcode references an mContext object which is inherited from View, but not available

Trigger Android Calendar to sync after adding events programmatically

孤街醉人 提交于 2019-12-10 10:05:00
问题 I am using the "undocumented" API's to read and write calendar events, nothing too hard there. The problem though is after creating calendar events you have to wait for the polling period (I suppose) for the device to sync it's calendar, such as with gmail, for events to appear online. I have found that if you add an event to the calendar directly it will sync right away so something in the Calendar app is triggering an immediate synchronization. Is there something I can do in code to notify

navigator.geolocation.GetCurrentPosition throws “The last location provider was disabled” error

依然范特西╮ 提交于 2019-12-10 07:46:39
问题 I am trying to create a very basic HTML5 page that grabs the geolocation, but I'm getting an error. Here's what I have inside my 'script' tags: function GetGeo() { if (!navigator.geolocation) { alert("Could not find geolocation"); } else { navigator.geolocation.getCurrentPosition(showMap, function (error) { alert("error encountered: " + error.message ); }); } } function showMap(position) { window.alert(position.coords.latitude + ", " + position.coords.longitude); } The page just has a button

App cannot start at all in Android 2.2 (Froyo)

谁说胖子不能爱 提交于 2019-12-10 04:37:07
问题 My app has been running okay until the recent Froyo update. After installing the Android 2.2 SDK, I can compile my code without any errors. However, when I run it, it just force closes: Here's the log: 05-23 10:15:13.463: DEBUG/AndroidRuntime(423): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<< 05-23 10:15:13.463: DEBUG/AndroidRuntime(423): CheckJNI is ON 05-23 10:15:14.193: DEBUG/AndroidRuntime(423): --- registering native functions --- 05-23 10:15:15.293: DEBUG/AndroidRuntime(423):

After update the APK supports fewer devices than previously

无人久伴 提交于 2019-12-10 04:21:22
问题 I have a relative simple App that was already in the Play-Store of Google. Now I've made an Update of this App. One Point of this Update was that I include the ZBar-Scanner. The Rest of the changes were minimal and shouldn't have any influence on my problem. I just put the newest verison of my App in the Play-Store and I get following warning: "Warning: Active APKs support fewer devices than previously active APKs. Some users will not receive updates." I've downloaded ZBarAndroidSDK-0.2.zip

Does “Clear Data” also kill the app?

混江龙づ霸主 提交于 2019-12-10 01:42:47
问题 When (in Gingerbread, 2.3.x) I hit “Clear Data” button in Menu => Manage Apps => App, “Force Close” button also becomes disabled. Does it mean that “Clear Data” also kills the app? Also, I noticed that in Ice Cream Sandwich this doesn’t happen. So, the way “Clear Data” works is different between Gingerbread and Ice Cream Sandwich? Update : as MisterSquonk said, Froyo (2.2.x) behaves the same way as ICS (4.x), that is doesn’t disable Force Close after you clear data of the app. Anyone knows

Which Android API to use?

折月煮酒 提交于 2019-12-09 16:55:41
问题 I'm planning on developing Android Apps. I downloaded the SDK and AVD manager, and about to download the SDK platforms. My question is, I want to develop apps for 2.x platform. Do I need to download API 7-10? Which one to target? Also, if you have tips regarding this, please mention them. Thank you. 回答1: It is not necessary to download all the platforms, just download the latest SDK and make your application compatible with other SDK. For that you just need to define android:minSDKVersion and