android-sdk-2.3

getBluetoothService() called with no BluetoothManagerCallback

人走茶凉 提交于 2019-12-01 19:40:11
I am new to android development. I am writing an app which receives string from the bluetooth terminal of laptop. while opening a connection i am getting an error Connection Refused when the below line gets executed. socket.connect(); I tried to check what happens in connect method. Here I found Android Studio giving me issues like. Cannot access android.bluetooth.BluetoothSocket.SocketState. Cannot resolve method createSocketChannel. Cannot resolve Symbol IBluetooth. Does my development environment have a problem? below is the exception. 02-15 23:19:54.112 18794-18794/poc.tusharimaging.com

Requesting single location update, AVD crashes

杀马特。学长 韩版系。学妹 提交于 2019-12-01 19:29:29
I'm trying to request a single location update using the new LocationManager.requestSingleUpdate() method, but once the device gets an update from the GPS the OS crashes and seems to try to reboot. At least I get the usual Android boot screen, but it never finishes booting. I've tried running the code on a 2.3, 2.3.1, 2.3.3 and 2.2 AVD, with the same result on all. ***** Update ***** I tried an old location based app that I have made, and that is running just fine on a few hundred units, and this also crashes the AVD when sending it a location update. I guess this is turning out be more a case

Which versions of Android SDK support coding in which versions of Java?

為{幸葍}努か 提交于 2019-12-01 15:32:29
I was writing an Android app for Android SDK 2.3.3 but then I was asked to test it on a device running Android 2.2.1. So I set my target to 8 instead of 10. But then java.util.concurrent.TimeUnit only had the Java 1.5 feature set instead of the Java 1.6/1.7 feature set of java.util.concurrent.TimeUnit. So I put the openjdk 6 implementation of TimeUnit into my package for my Android app and everything works fine. Does anyone know where I can get some documentation that gives me a chart that tells me, for example, that when using the official SDK, Android 2.2 has to be coded using Java 1.5

Unity says API level is too low

时间秒杀一切 提交于 2019-12-01 15:24:53
问题 The exact error: Minimum API Level Not Supported on Requested VR Device Cardboard Requires a Minimum API Level of 19 Though in the Android SDK Manager, it says I have revisions 25.2.5, 25.0.5, and 25.0.3 installed. 回答1: You have to change this Minimun API Level from the Editor. Go to Edit --> Project Settings --> Player --> Other Settings --> Identification --> Minimium API Level --> Android 4.4 'Kit Kat' (API Level 19) or anything above. Also change Target API Level to Automatic (highest

Google ARCore Domain Model by Example

拈花ヽ惹草 提交于 2019-11-30 17:34:02
问题 I'm trying to read and make sense of Google ARCore's domain model, particularly the Android SDK packages. Currently this SDK is in " preview " mode and so there are no tutorials, blogs, articles, etc. available on understanding how to use this API. Even Google itself suggests just reading the source code, source code comments and Javadocs to understand how to use the API. Problem is: if you're not already a computer vision expert, the domain model will feel a little alien & unfamiliar to you.

Android 2.3 emulator orientation changes

China☆狼群 提交于 2019-11-30 17:00:21
问题 I ran into a bit of a problem, which I think is related to the emulator itself. I have put this code right at the top of my onCreate method in one of my activities: Log.d(Const.TAG, "onCreate orientation: " + getRequestedOrientation()); Everytime I switch orientation in the emulator (via Ctrl+F11 and/or Num 7), it prints -1 (which corresponds to SCREEN_ORIENTATION_UNSPECIFIED), and it gets stuck in landscape (doesn't switch back to portrait unless I relaunch the app). Am I doing something

Unity3D build error

◇◆丶佛笑我妖孽 提交于 2019-11-30 15:14:14
问题 Error building Player: Win32Exception: ApplicationName='E:/adt-bundle-windows-x86_64-20131030/sdk\tools\zipalign.exe', CommandLine='4 "C:\Users\Owner\Desktop\Folders\Unity exe\bbt - Copy\Temp/StagingArea/Package_unaligned.apk" "C:\Users\Owner\Desktop\Folders\Unity exe\bbt - Copy\Temp/StagingArea/Package.apk"', CurrentDirectory='Temp/StagingArea' Why am I getting this error? Everything was fine. Suddenly got this error while building. 回答1: It happens when a file can not be found in the correct

Tips to shift from App Inventor to Eclipse

淺唱寂寞╮ 提交于 2019-11-30 14:08:49
问题 I am very good with AppInventor to build Android apps. I have good knowledge of C++ and little knowledge of Java and GUI building in Java. Suggest me how should I shift from App Inventor to Eclipse to build Android apps? Which path should I follow? Is building in Eclipse similar to building in AppInventor like defining different components and then handling their events? Or is it much more than that? Please guide me. 回答1: There is also the AppInventor to Java Bridge project at java

Unity3D build error

大兔子大兔子 提交于 2019-11-30 13:18:20
Error building Player: Win32Exception: ApplicationName='E:/adt-bundle-windows-x86_64-20131030/sdk\tools\zipalign.exe', CommandLine='4 "C:\Users\Owner\Desktop\Folders\Unity exe\bbt - Copy\Temp/StagingArea/Package_unaligned.apk" "C:\Users\Owner\Desktop\Folders\Unity exe\bbt - Copy\Temp/StagingArea/Package.apk"', CurrentDirectory='Temp/StagingArea' Why am I getting this error? Everything was fine. Suddenly got this error while building. It happens when a file can not be found in the correct folder ...sdk\tools\zipalign.exe. In the yesterday published version of the SDK Tools the file "zipalign"

Tips to shift from App Inventor to Eclipse

人盡茶涼 提交于 2019-11-30 09:39:49
I am very good with AppInventor to build Android apps. I have good knowledge of C++ and little knowledge of Java and GUI building in Java. Suggest me how should I shift from App Inventor to Eclipse to build Android apps? Which path should I follow? Is building in Eclipse similar to building in AppInventor like defining different components and then handling their events? Or is it much more than that? Please guide me. There is also the AppInventor to Java Bridge project at java.appinventor.org , details see below About: The AppInventor to Java Bridge project is an addition to AppInventor that