android-emulator

Emulator: ERROR :detected a hanging thread 'Qt event loop'

流过昼夜 提交于 2019-12-02 14:39:42
When I run API 27 emulator, I get: ERROR :detected a hanging thread 'Qt event loop' I have an Image that shows the error: As discussed in the comments, this was a bug in the Android Emulator that was fixed in release 27.1.10 . Check if your emulator is up to date by going to Tools > Android > SDK Manager and clicking the SDK Tools tab: The current latest version at the time of writing this answer is 27.1.12 . If there is an update available, the Status in the right-hand column will say "Update Available". Click the checkbox and OK, and your emulator will update. 来源: https://stackoverflow.com

How to check Android app is running in real device or virtual device? [duplicate]

烈酒焚心 提交于 2019-12-02 14:36:02
This question already has an answer here: How can I detect when an Android application is running in the emulator? 34 answers I would like check real device user or virtual device user (like AVD, Genymotion, bluestack something like that) My app is checked device id and rewarded. if abusing users are running app in virtual device, you now I'll be a beggar :( Thomas R. You can use checks like this: public boolean isGenymotionEmulator(String buildManufacturer) { return buildManufacturer != null && (buildManufacturer.contains("Genymotion") || buildManufacturer.equals("unknown")); } public boolean

Reading data from Sqlite Database in android application.

纵然是瞬间 提交于 2019-12-02 13:23:07
问题 I am trying to read data from a database. I imported the database in the sqlite manually and now just want the connection made in android application and want to read the rows and display them in the text fields, however the code I am using is either making the database new every time or is creating the table again in that database and I get a run time error. My code is : package com.example.dbexample; import java.util.ArrayList; import java.util.List; import android.content.ContentValues;

Visual Studio Android Emulator network not working

喜欢而已 提交于 2019-12-02 13:00:01
I started using xamarin in visual studio, and I installed visual studio android emulator. Emulator works flawlessly, but network on it doesn't. In settings it says it's connected, but browser can't open websites. I started windows phone emulator, and there network works without problem. When I started android emulator, it added two network adapters (see picture). In hyper-v virtual device settings for Android emulator, internal network adapter is set to windows phone adapter (see on picture), and external is set to Realtek bla bla bla. I tried deleting all virtual switches, deleting emulator

AVD for Samsung Galaxy S4(1080X1920) showing Black screen

余生颓废 提交于 2019-12-02 12:18:08
问题 After searching a lot, I found out this link : http://developer.sonymobile.com/knowledge-base/sdks/sony-add-on-sdk/install-the-sony-add-on-sdk/ Following the steps as per the instruction, I have created AVD for 1080x1920 screen resolution,i.e., Xperia Z. But still when I try to run this emulator, it display nothing but a blank screen, seems not working at all. Also checked the "Use Host GPU" option. But no result???? Can anyone please help me. Thanks in advance 回答1: I also had this problem,

How to use a PC webcam as the emulator's camera

狂风中的少年 提交于 2019-12-02 11:43:42
问题 I'm developing a qr code reader application. How can I use my webcam as a camera to scan the qr code in the emulator ? my SDK version is 4.3. I checked it out in developer.android site and they said that you have to select webcam0 as a back camera. I tried but it didn't work, and shows "unfortunately your app has been stopped". 回答1: Follow the below steps in Eclipse. Goto -> AVD Manager Create/Edit the AVD. Hardware > New: Configures camera facing back Click on the property value and choose =

Windows - getGLES2ExtensionString: Could not find GLES 2.x config; exit code -1073741819 (0xC0000005)

假装没事ソ 提交于 2019-12-02 11:06:52
I have the problem with new Android Emulator 27.0.2 . Emulator won't starts. First launch of emu is successful after emulator sdk reinstall, but every second launch is unsuccessful. Cold boot of virtual device not helps, Emulated performance: Graphics: Software - GLES 2.0 option change at virtual device configuration not helps. Video driver for Intel HD 4400 is latest, reinstall not helps. 9:02 Emulator: getGLES2ExtensionString: Could not find GLES 2.x config! 9:02 Emulator: Failed to obtain GLES 2.x extensions string! 9:02 Emulator: emulator: ERROR: Could not initialize OpenglES emulation,

Make Emulator of Asus google nexus 7

有些话、适合烂在心里 提交于 2019-12-02 10:43:22
问题 I have android sdk , updated to latest version(v21). Now what i want is : Make emulator of Asus google nexus 7, that contains 800 x 1280 resolution and 216 dpi. As i updated my sdk to latest version i can not edit my current dpi of emulator. Please help me to create this AVD. 回答1: Make emulator of Asus google nexus 7, that contains 800 x 1280 resolution and 216 dpi. To make emulator same as Google Asus Nexus 7 you will get this as default device while creating new AVD. As i updated my sdk to

How to run android app in emulator by rewriting old databases?

为君一笑 提交于 2019-12-02 10:25:39
When I always run app to test in emulator from Eclipse , by default it never uninstalls previous one. It will maintain previous copy of database and files of the same app and run a new compiled code. What if I want to remove all app related files, databases every time I compile and run it to test? Any settings for this in Eclipse ? I want to avoid the step of manually uninstalling it before every run. Thanks. You can have a command prompt window open, and before launching, execute: adb uninstall your.project.package when using adb install with the -r modifier, the app re-installs and its data

Possible to run WebGL content from an android emulator?

a 夏天 提交于 2019-12-02 09:46:08
Hello I have been trying to run WebGL content in a number of android emulators( BlueStacks, Andy, Duos, and VirtualBox ). When I try to access any WebGL content in a browser( chrome, firefox ) I get a message stating that WebGL is not supported by my video card. Of course WebGL works fine outside of the emulator. Thanks in advance for any advice. Based on this blog post: http://blog.tojicode.com/2013/11/the-state-of-webgl-on-chrome-aka-why.html It might be that all of the emulators don't support the OpenGL Extension GL_EXT_robustness 来源: https://stackoverflow.com/questions/32789443/possible-to