android-emulator

Cannot run adb shell “date `date +%m%d%H%M%Y.%S`”

落花浮王杯 提交于 2019-12-09 07:49:53
问题 I have a warning when running React Native on an Android device: Debugger and device times had drifted by more than 60s. Please correct this by running adb shell "date `date +%m%d%H%M%Y.%S`" on your debugger machine But when I run the command as suggested above, I get and operation not permitted error: date: cannot set date: Operation not permitted I already tried with sudo, still got same result: sudo adb shell "date `date +%m%d%H%M%Y.%S`" 回答1: Inside the emulator goto Settings > Date & Time

Unable to use keyboard in Android emulator

两盒软妹~` 提交于 2019-12-09 07:36:12
问题 I just set up of Android development environment in Ubuntu 12.04. I made an AVD for Android version 2.3.3 and ran my app on it. But I am not able to use my computer's keyboard or keyboard given on the right side of it. What is the reason for this? My ADT version is 20.0. I was earlier developing on Windows and it was working fine. 回答1: Got the answer from here. Apparently they have removed default keyboard support after ADT 20.0, so we need to add keyboard support manually by editing the AVD.

How can I speed up deployment to the android emulator?

让人想犯罪 __ 提交于 2019-12-09 07:11:44
问题 It takes several minutes each time I try to deploy an app for debugging on the emulator. I have installed HAX and that made the start of each instance and the execution much faster. I haven't optimized my computer for running the emulator in any other way. And deployment is still painfully slow. Is there any measures I should take to speed it up? Current OS are Win8 and Ubuntu 13.4 And I wan't to stress that the question is about speeding up deployment on an allready running instance of the

Copying database in assets to Android's internal databases fails at first attempt in the emulator

99封情书 提交于 2019-12-09 07:11:18
问题 I have a database (1.69 MB) in assets to need copy to internal databases folder. My problem is that for the first try db is copied but not with exact tables. It becomes 3072 (3kB) size in the emulator file explorer. When I look in that db with sqlite explorer I can't see my tables. The only table exists in db is android_metadata table with one column of my locale info. But if I clear that db from databases and re-run the application, it seems working for this time. Why does it fail for the

How to change the Android emulator temporary directory

那年仲夏 提交于 2019-12-09 06:09:42
问题 I want to know how to change it on WINDOWS ? Because my C:/ drive don't have enought space to support all TMP file generated ! By default, here are the temp directory on WINDOWS: (%temp%) -> C:\Documents and Settings\MyPC\Local Settings\Temp\ and extract the file on (AndroidEmulator) folder ... On Linux here the method: http://stuf.ro/how-to-change-the-android-emulator-temporary-directory But i am looking for way to do it on windows :( Thank you in advance for your help. 回答1: I found on linux

Genymotion Still waiting at “Booting”

旧城冷巷雨未停 提交于 2019-12-09 05:25:05
问题 I use Genymotion for Android Studio but genymotion still booting does not On status I searched for a solution and followed Uninstall and Re-install Clear Cache Remove device and new install Fix Host-Only Ethernet to default And another thing to try But I can't fix it Genymotion v3.0.1 VM VirtualBox v6.0.4 Please help me find a solution. Help me. Sorry for my english 回答1: Tried to reset cache, re-create the device, toggle network mode, upgrade Genymotion to 3.0.1, and NONE of them worked. A

How to debug an Dalvik executable on Android with GDB?

我们两清 提交于 2019-12-09 05:04:26
问题 I want to debug an android application using GDB, I do not have the source code and I am used to GDB. Would anyone know how to do that? It seems I would need to attach to the process of the application and use gdbserver but I have not really found a good tutorial on how to do that... Thanks! 回答1: There might not be step-by-step tutorials, but people have been using a gdbserver to debug JNI apps. Check the following links: http://honeypod.blogspot.com/2008/01/debug-native-application-for

Unable to run systrace tool on android emulator

别等时光非礼了梦想. 提交于 2019-12-09 03:54:26
问题 Systrace tool which is used for performnce analysis of android devices are not getting executed on android emulator in ubuntu I have tried below ways for the same but i end up with same problem 1.First of all I tried to mount /sys/kernel/debug then its readonly file system message comes .So I am not able to create the same 2.Tried to create new kernel image kernel-qmeu image with latest goldfish source code and replaced at system images place of sdk,but the emulator fails to boot. 3.Editing

Location of SQLite database in eclipse for android using phonegap

让人想犯罪 __ 提交于 2019-12-09 03:43:31
问题 I am using phonegap and developing html pages for android but I dont know how to view the tables and its corresponding database in I am using Eclipse Juno. I Know it is somewhere in DDMS can anyone tell me the path where my tables and database is located in SQLite. 回答1: follow this path DDMS -> data -> again click data -> your package name (com.example.app)-> databases ->there you have your database After finding your db file click this 来源: https://stackoverflow.com/questions/12708705

Folder for temporary files creation in android, Why does /data/local/tmp doesn't work for me?

巧了我就是萌 提交于 2019-12-09 02:02:10
问题 I am trying to create a temporary file in /data/local/tmp directory. The path is correct and I have added permission WRITE_EXTERNAL_PERMISSION also. But still I get an error from native code saying that file can't be created. The code is as below. File *file = fopen("mytxt.txt", "/data/local/tmp/"); The return value file always contains a null value and no file is created. Is there anything else needed to do? Is there any other temporary folder that i can use for this purpose in android?