android-emulator

ACTION_SCREEN_ON and ACTION_SCREEN_OFF not working?

走远了吗. 提交于 2019-12-18 02:58:21
问题 I'm trying to turn WiFi off when the screen is OFF (locked), and turn it on again when screen is ON (unlocked). I made a BroadcastReceiver ; put in manifest this code: <receiver android:name="MyIntentReceiver"> <intent-filter> <action android:name="android.intent.action.BOOT_COMPLETED" /> <action android:name="android.intent.action.SCREEN_OFF" /> <action android:name="android.intent.action.SCREEN_ON" /> <action android:name="android.intent.action.USER_PRESENT" /> <category android:name=

setContentView is using non-SDK interface

微笑、不失礼 提交于 2019-12-18 02:18:25
问题 When I run my application in an emulator with the API 28, the console gives me the following warning: W/oaristachimene: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (light greylist, reflection) W/oaristachimene: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (light greylist, reflection) I have been debugging it and I found out that it comes from the call: setContentView(R.layout

Libgdx setup UI gives 2 unexpected errors in new GWT project

廉价感情. 提交于 2019-12-18 01:33:31
问题 I have run the setup ui, however, I get two different errors in the -html project than what is described in the tutorial: libgdx tutorial The tutorial error stated is as follows (which is an error I do not see): To fix the error of the HTML5/GWT project, go to the "Problems" view, right click the error message "The GWT SDK JAR gwt-servlet.jar is missing in the WEB-INF/lib directory" and select "Quick Fix". Click "Finish". The errors I have are: The project was not built since its build path

Android Emulator do not scale to 100% for Mac Book Pro with Retina Display

心已入冬 提交于 2019-12-17 23:26:43
问题 Not much help on SO or Google about this. On a Macbook Pro Retina, my Emulator is 1/4 of the real size and clicks are not working properly. Please help to setup my emulator for retina display. For clarification, the image of the emulator is scaled down to 1/4th of the available emulator window, but the clicks register across the entire window. So to unlock the device, for example, you need to guess where the unlock button is in the part of the window that is blank and then click and drag from

Android Studio cannot find the Visual Studio emulator

烂漫一生 提交于 2019-12-17 23:25:38
问题 After following the blog post on using the Visual Studio Emulator for Android from Android Studio, and starting the emulator, when I am prompted to choose a running emulator, nothing shows up on the list. I'm running Windows 10 x64. 回答1: Open an admin command prompt and enter the following; then restart the emulator. reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Android SDK Tools" /v Path /d %localappdata%\Android\sdk Or update the registry manually: In regedit, navigate to HKEY_LOCAL

emulator: WARNING: Could not initialize OpenglES emulation, using software renderer

人走茶凉 提交于 2019-12-17 22:44:53
问题 What do these error messages mean from the Android emulator? Starting emulator for AVD 'AVD' Failed to create Context 0x3005 could not get wglGetExtensionsStringARB emulator: WARNING: Could not initialize OpenglES emulation, using software renderer. could not get wglGetExtensionsStringARB could not get wglGetExtensionsStringARB could not get wglGetExtensionsStringARB could not get wglGetExtensionsStringARB could not get wglGetExtensionsStringARB could not get wglGetExtensionsStringARB could

Android Emulator starts but Eclipse doesn't recognize it

流过昼夜 提交于 2019-12-17 22:36:52
问题 As a general rule, everything works fine, but then sometimes either Eclipse or my Android emulator decides to be a jerk and refuses to work. I open the AVD Manager in Eclipse. I choose which AVD I want and click Start. The emulator starts up and it goes through the loooong process of booting. It finally finishes booting and then for some reason, it immediately reboots and goes through the looong process of booting again. Once it boots the second time, Eclipse loses track of it. It is no

Error: device offline

谁说我不能喝 提交于 2019-12-17 22:35:48
问题 The emulator is running. But when I write adb shell in my shell I get: error:device offline What is the reason for this? How do I get rid of it? 回答1: If "adb devices" lists your device but as "offline" chances are your path leads to an old version of adb (eg 1.0.29) which has problems with latest Android 4 devices. Make sure "adb version" returns 1.0.31 or greater. Starting with Android 4.2.2, you must confirm on your device that it is being attached to a trusted computer. It will work with

Android 4.0.3 emulator: install fails with “permission revoke”

此生再无相见时 提交于 2019-12-17 21:06:32
问题 Running my app on the 4.0.3 emulator typically works fine, but once in a blue moon it abruptly fails, and from then on, keeps failing. The console doesn't give any especially useful information: [2012-03-02 12:05:31 - MyApp] Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE [2012-03-02 12:05:31 - MyApp] Please check logcat output for more details. [2012-03-02 12:05:31 - MyApp] Launch canceled! But unfortunately, neither does Logcat: W/ActivityManager(1589): No content provider found for

I have problem in a emulator

…衆ロ難τιáo~ 提交于 2019-12-17 20:29:40
问题 I have problem in emulator. When I start my application it says: PANIC: Could not open: C:\Users\Administrator\.android/avd/MonoDroid.ini What I can do to solve this? 回答1: Create a environment variable called: ANDROID_SDK_HOME and set it to C:\Users\Administrator Open Eclipse > Window > Preferences and click in Run/Debug and String Substitution Add a new variable called: user.home and set it to C:\Users\Administrator Restart Eclipse. Create an AVD and run it. It should work now. 回答2: The path