android-emulator

Android Emulator “Chain Validation Failed” connecting developers machine with self-signed cert

和自甴很熟 提交于 2019-12-04 15:15:00
问题 I have an Android Studio project that calls a web based API service. When the service code is in dev, qa, prod etc. There are NO certificate issues but when trying to hit the web api developers box to test a new feature / bug fix / etc. I get: No reply because of error: javax.net.ssl.SSLHandshakeException: Chain validation failed at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:361) I had the self signed certificate exported from the service developers

Emulator's clock doesn't match the host system clock

≡放荡痞女 提交于 2019-12-04 15:09:17
问题 Why doesn't the Android emulator's clock match the host system clock? It's not a time zone difference --it's always off by several minutes. Is there a way to synchronize them besides manually setting the emulator's time? 回答1: I believe there is no way to synchronize the time. The default image of the emulator sets to UTC/GMT (+00:00). However you can change it to your own. Here is an image on how to do so: First un-check the "Automatic Time Zone" (red arrow) then click on the "Selected Time

How can I fix frequent Out Of Memory Errors on Android emulators?

◇◆丶佛笑我妖孽 提交于 2019-12-04 15:08:18
I test a mobile app and have been struggling with constant crashes of the app when I use an Android emulator. I have no problem on physical Android devices, but emulators crash several times per day. The app will crash quite consistently once I find a crash-prone part of the app's "workflow". But exactly where in the app will trigger a crash seems to vary from version to version. Here is the crash report : Android: 2.3.7 Model: Full Android on x86 Emulator java.lang.OutOfMemoryError: bitmap size exceeds VM budget at android.graphics.BitmapFactory.nativeDecodeStream(Native Method) at android

android:Page curl animation effect

淺唱寂寞╮ 提交于 2019-12-04 14:50:17
问题 If anybody have a Page Curl Effect example Demo so please give me link for this Thanks 回答1: Hardik ,there are already tons of questions out there see this http://www.google.co.in/search?hl=en&client=ubuntu&hs=FOq&channel=cs&q=page+curl+android+stackoverflow&aq=f&aqi=&aql=&oq= or refer this project android-page-curl 来源: https://stackoverflow.com/questions/5727276/androidpage-curl-animation-effect

Android Facebook Integration Invalid Key hash error on Android device but working fine on Emulator

删除回忆录丶 提交于 2019-12-04 14:35:33
When I run my Android app in my android device it was working fine when I clicked first time on Continues with Facebook button.When i try to login again after logged out it is showing an error "Invalid Key has" The key has does not match any stored key hash. I have already regenerated key hash and replaced new key on facebook. bUt still did not get result. First time I had easily logged-in, But after logged out again I'm trying to Continues with Facebook but it is showing an error message "Invalid Key has": But the same application is running perfectly fine on Emulator. why it is not working

SipManager.newInstance not working for android Gingerbread

偶尔善良 提交于 2019-12-04 14:33:08
问题 I am trying to run a simple SIP program using android 2.3 emulator. When i am trying to create an instance of SipManager i get a return value as null(which means the SIP API isn't supported). Pls suggest how i can test SIP in emulator. 回答1: I got this working for me thanks to the Issues list link below : http://code.google.com/p/android/issues/detail?id=13037 and the thing which worked for me is in sub link in this thread. How to enable SIP in Android 2.3 emulator. Make the system partition

Run apk on android emulator

自闭症网瘾萝莉.ら 提交于 2019-12-04 14:15:19
I want to run APK on android emulator and I followed next steps: Copied apk to platform-tools directory Run cmd.exe as administrator Navigated to the platform-tools directory Run emulator from AVD manager In command line entered adb devices (it showed my emulator in list) I entered adb insall name.apk in command line after this I got message as below: I found this link how to run APK on emulator. And other tutorial also show how it works. In case when we entered adb install after few seconds command line shows Success message but in my case command line shows this log. Assuming you already

Android - Error Test GPS on Emulator

我怕爱的太早我们不能终老 提交于 2019-12-04 13:44:19
i wanna test GPS on my android emulator but i find my apps has Error "Stopped Unexpectedly" when i try to run its on emulator. here some sort of my codes AndroidManifest.xml <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> and main.java public void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); setContentView(R.layout.main); LocationManager locationManager; String context = Context.LOCATION_SERVICE;

Android Studio stuck starting the emulator

孤街醉人 提交于 2019-12-04 13:21:04
I am new to Android development. I am stuck while writing an Hello World program. Android Studio got stuck at the time of opening emulator. OS - MacBook Pro It stuck after showing below statements, Waiting for device. /Users/hiteshj/Downloads/android-sdk-macosx/tools/emulator -avd Nexus_5_API_19 -netspeed full -netdelay none and, then it shows, /Users/hiteshj/Downloads/android-sdk-macosx/tools/emulator -avd Nexus_5_API_19 -netspeed full -netdelay none PANIC: Missing emulator engine program for 'x86' CPUS. Some logs(emulator verbose in debug mode) related to above problem, log 1 :- 0c4de9c3b43a

Gradle JUnit Espresso on Emulator connectedAndroidTest java.lang.IncompatibleClassChangeError

折月煮酒 提交于 2019-12-04 13:17:14
I have a simple unit test for a static method and running them on Emulator. (Goal is to run on cloud CI so I am testing on emulator.) Gradle 2.2.1 Emulator Android 5.0 I use these steps on console. android create avd --force -n test -t "android-21" emulator -avd test -no-skin -no-audio -no-window & adb wait-for-device adb shell input keyevent 82 & gradle clean installDebug gradle connectedAndroidTest build.gradle dependencies { ... androidTestCompile('com.jakewharton.espresso:espresso:1.1-r3') { exclude group: 'com.squareup.dagger' exclude group: 'com.squareup.dagger:dagger:1.2.1' } } android