android-emulator

Emulated Android device does not re-sync time/date after restoring snapshot

喜夏-厌秋 提交于 2019-12-04 08:18:06
问题 If I do a fresh boot on the emulated device, it gets the correct current time from the host OS; however, if I reload the device from a snapshot, it gets the time/date from the moment the snapshot was created (e.g. When I shut down the emulator). The time/date does not re-sync after any amount of time. The only way around it that I've found is to manually update the time after restoring from a snapshot. The Android Virtual Device has default properties: Target = Android 4.0.3 - API Level 15

not able to pinch zoom on emulator

霸气de小男生 提交于 2019-12-04 07:51:36
问题 I have an application in which I need to implement image editing, which also includes pinch zooming. I am done with pinch zooming but I can test this only on device, not on emulator. Is there any way for testing pinch zooming in android emulator, any shortcut key or any other way? 回答1: Since ADT 17, it is possible to use a physical Android 4.0 device to send multitouch gestures to the emulator.See Android's instructions here. Multi-Touch The emulator supports multi-touch input, as an

could one emulator send a SMS to itself

对着背影说爱祢 提交于 2019-12-04 07:49:50
I've been trying to send message on Android 4.0 emulator via Broadcasting and fetch that message via Broadcast receiver. I'm able to do so with two emulators, say, from 5554 to 5556. However, I can't get the sent message from 5554 to itself. Here's the way I send a message: SmsManager sms = SmsManager.getDefault(); sms.sendTextMessage(number, null, message, sentPI, deliveredPI); the number here is emulator's port number You can easily demonstrate that using tellnet command : in windows os if tellnet is off then you can turn on using following steps Start Control Panel Programs And Features

Android Emulator crashes with SIGSEGV on Ubuntu 18.04

不问归期 提交于 2019-12-04 07:47:29
Android Studio version: Android Studio 3.1.2 Build #AI-173.4720617, built on April 14, 2018 It's installed from Ubuntu's snap store. I installed the kvm using 1. Setting Up Android Studio on Ubuntu · uw-it-aca/spacescout-android Wiki . I tried what Solve Android Studio AVD issue with Ubuntu distros - cialu.net suggested, but now the lib64 folder doesn't contain libstdc++ . The closest I could find is libc++.so.1 , and I tried to install it using sudo apt install libc++1 and link it similarly, but it just got my pc stuck. I also looked at the threads linked by Android emulator segmentation

debug javascript in android emulator with phonegap

穿精又带淫゛_ 提交于 2019-12-04 07:33:54
问题 I am new to phonegap and android development. May I know how can I debug javascript error on the emulator? I have heard about ADB may I know how can I use and install it on windows 7 system? I have an ajax called with jsonp but no response on emulator. However, I can call that ajax with browser on windows. May I know what went wrong? 回答1: You could at least log debug stuff to the adb console by calling console.log() in JavaScript. Maybe that would suffice? To view log output using adb,

phonegap doesn't work

我怕爱的太早我们不能终老 提交于 2019-12-04 07:24:08
i have downloaded the phonegap example from its website.but it doesn't run.i can't find the reason.help me to get the solution please.when i run it shows "The Web page at file:///andriod_asset/www/index.html could not be loaded as: The requested file was not found.www/index.html" I tried with three "///" instead of four, it worked for me. Give a try super.loadUrl("file:///android_asset/www/index.html"); You've spelt android wrong here: HERE!!! file://>>>>>>andriod<<<<<<_asset/www/index.html could not be loaded as: The requested file was not found.www/index.html" Try out: file:///android_asset

Need help correctly emulating the Samsung Galaxy Nexus with AVD

孤街浪徒 提交于 2019-12-04 07:14:09
I'm working to ensure my app is getting tested on ICS properly using the popular Galaxy Nexus as a basis. I'd like to emulate it as faithfully as possible. I've created an AVD with the following parameters (from config.ini). This was mostly created using the GUI (disk.dataPartition.size is a hand-edited param based on other articles I've read). The memory values may be on the low side but that's not causing a problem for me at the moment. Since the device had no external sdcard I've said "no" for hw.sdCard, but I'm clearly not seeing anything in the /mnt/scdcard (same as /sdcard) and cannot

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

与世无争的帅哥 提交于 2019-12-04 07:08:01
问题 When I run API 27 emulator, I get: ERROR :detected a hanging thread 'Qt event loop' I have an Image that shows the error: 回答1: 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

Google-map work on emulator but doesn't on real device

久未见 提交于 2019-12-04 06:54:30
问题 I applied the exact steps as mentioned in the google developer doc to create an example google map project and everything went fine on the emulator, but when I generated the project apk file and launched it on real device Samsung Galaxy S4 google map doesn't show up it shows only a blank background with just colored Google logo appearing on the left lower screen corner !! What could be the problem? Plz Help. 回答1: It is working on emulator on debug mode because you are using the Google Map Api

Possible to run WebGL content from an android emulator?

谁都会走 提交于 2019-12-04 06:32:12
问题 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. 回答1: 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