android-sdk-2.3

Android Bluetooth accept() / connect() with already paired devices

白昼怎懂夜的黑 提交于 2019-12-31 16:39:14
问题 I am having trouble connecting two Android devices via Bluetooth, which happens only when they have been paired before. I am running one as the server and the other as the client. Here is the sequence of things on the server side: Check various Bluetooth statuses (adapter available, is enabled, etc). call listenUsingRfcommWithServiceRecord() with a pre-defined UUID that I chose. request to make device discoverable since being discoverable happens asynchronously, I call accept() and wait for

why does the gingerbread emulator orientation get stuck in apps?

痞子三分冷 提交于 2019-12-29 05:46:11
问题 At first I thought this was a problem with my app, but it seems to be happening in any app (though interestingly, not the home screen) in the gingerbread emulator. To replicate my issue, open eclipse and fire up the android emulator for gingerbread (I'm using the "Google APIs - API Level 9" as my target) So the procedure to duplicate once the emulator loads is press LCtrl-F11 to shift orientation to landscape, then again to switch to portrait Result: In the homescreen: The view rotates to

My app all of a sudden has 0 supported devices

↘锁芯ラ 提交于 2019-12-25 16:51:32
问题 This is my app: https://play.google.com/store/apps/details?id=com.elgami.customizer I've been wracking my head trying to figure this out. Can't find out what the problem is. I'm pretty sure one of the permissions is either spelled or implemented incorrectly. The camera features and permissions were the latest things I've added. Basically, it can't be downloaded by anybody and I didn't notice this until I published it. What could be going wrong? This is my Manifest: <?xml version="1.0"

Error while do ` ionic cordova build android` fro ionic 3

限于喜欢 提交于 2019-12-25 09:43:26
问题 I am getting this error when i do build for android dont know what to do. I tried remove platform and add it again. But still getting same error. Should i need to remove my android sdk and install it again in my mac ? my error : ✖ Running command - failed! [ERROR] Cordova encountered an error. You may get more insight by running the Cordova command above directly. [ERROR] An error occurred while running cordova build android (exit code 1): ANDROID_HOME=/Users/apple/Library/Android/sdk JAVA

App doesn't work on 4.0.3 but it works on 2.3.3

自作多情 提交于 2019-12-24 20:40:21
问题 I write an app and it works properly on android 2.3.3 , but it doesn't work on android 4.0.3. I specify minsdk="10" and targetsdk="15" in my AndroidManifest file. I am using .net web service in my app and I'm getting error on this page. myspinner = (Spinner) findViewById(R.id.ihtiyacsec); ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,android.R.layout.simple_spinner_item, SektorList); adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); myspinner

Native Activity vs SDK Activity in terms of U.I

核能气质少年 提交于 2019-12-24 12:15:47
问题 I've been doing a fair amount of research, and have even experimented some with the NDK for Android (not so much the SDK). What I haven't been able to really find though is a clear and concise definition for what the NDK cannot do (besides lack of exception handling and rtti). I've been mapping out some code for a game and a game engine for Android (Written entirely in the NDK) but it seems to not be as supported as many would like it to be. Not only that, but I'd like to be able to give my

How do I download Rev. 9 Third-Party add-ons?

帅比萌擦擦* 提交于 2019-12-23 12:15:31
问题 The Rev 9 add-ons site URL in SDK Manager is no longer valid. The only way out (that I found so far) is to accept the forced upgrade to Rev 15 SDK Tools. But, for various reasons, I do not wish to upgrade to Rev 15 SDK. I want to stay with Rev 9 (for now). Is there a way to download Rev 9 only add-ons? A URL to add or replace the existing one? Specifically, I am interested in downloading In-app Billing Sample Application into %ANDROID_HOME%\extras\google\market_billing\ . How do I do this?

Android: CyanogenMod 7 (Android 2.3) + BouncyCastle encryption libraries: IllegalAccessError

丶灬走出姿态 提交于 2019-12-23 04:46:02
问题 I'm getting a strange error when using bouncycastle libraries: ERROR/AndroidRuntime(1226): FATAL EXCEPTION: Thread-10 ERROR/AndroidRuntime(1226): java.lang.IllegalAccessError: tried to access class org.bouncycastle.crypto.engines.RSACoreEngine from class org.bouncycastle.crypto.engines.RSAEngine ERROR/AndroidRuntime(1226): at org.bouncycastle.crypto.engines.RSAEngine.init(Unknown Source) ERROR/AndroidRuntime(1226): at org.bouncycastle.crypto.encodings.PKCS1Encoding.init(PKCS1Encoding.java:90)

Retrieving the selected items from a multi-select ListView

微笑、不失礼 提交于 2019-12-22 01:36:21
问题 I am currently implementing a multi-select ListView for my android app. My aim is to retrieve the selected items from the ArrayAdapter associated with the ListView when clicking the search button. I am currently stumped on how to do this, I have found stuff online such as trying to set a MultiChoiceModeListener , but this does not seem to come up as an option in Eclipse . I am using Google API s(level 10), Android 2.3.3 equivalent. Here is the code I have so far: public class FindPlace

Android SDK Installation Folder on OS X

牧云@^-^@ 提交于 2019-12-21 07:24:13
问题 Any best practices/recommendations on the installation folder for the Android SDK? Following http://developer.android.com/sdk/installing.html on OS X and Step 2. "...unpack it to a safe location on your machine..." makes no sense at all for me coming from Windows. 回答1: /Applications is the most natural place. Maybe /usr/local for the old Unix folks. 回答2: I install it using Android Studio and i found it here: /Users/username/Library/Android/sdk 回答3: Check here too /usr/local/Cellar/android-sdk