android-emulator

“Hello, WebView” tutorial opens the requested address in Android browser and not in my webview

故事扮演 提交于 2019-12-17 19:38:34
问题 I am using Android emulator with AVD of Android 2.1 and I have the following problem: Trying to load a URL in a WebView using webView.loadUrl causes it to open in the browser instead. Note: I am talking about the initial opening, not the issue in which links from the WebView open in a browser, though, perhaps it is somehow connected. I've tried several things: I've removed <uses-permission android:name="android.permission.INTERNET" /> from the manifest. That actually made it work correctly, i

How to save LogCat contents to file?

霸气de小男生 提交于 2019-12-17 18:33:16
问题 I've added debug strings (using Log.d()) and want to see them in context from the contents of logCat. The "save" icon for LogCat has a "Save selected items" hint, but there's got to be a quick way to just save the entire contents, or select the entire contents, but I don't see how to do it. 回答1: You are not getting the answer you are looking for, are you. Two ways to do what you want: Right-click in the logcat messages window, choose select all. Then your save will be all logcat messages in

how to import files into the sdcard on emulator in android?

断了今生、忘了曾经 提交于 2019-12-17 18:29:29
问题 i want to load some photos into my sd card image in the emulator. how to do this by command prompt.how to do that? 回答1: I've found it to be incredibly clumsy and not work very well, but the command to use is: adb push yourfile.xxx /sdcard/yourfile.xxx . For this to work you've got to have the file in the same directory as adb.exe, which is in the tools folder of your SDK directory, or have set up adb as a system-wide recognisable command. (I don't remember how to do that, but I know it can be

Callback in Android?

笑着哭i 提交于 2019-12-17 18:23:38
问题 In Android application development, I frequently go through the word CallBack in many places. I want to know what it means to tell us technically - and how I can manage to use the callback in applications. I need a guide to understand it and use it. 回答1: i want to know what it means, tell us technically http://en.wikipedia.org/wiki/Callback_%28computer_science%29 "In object-oriented programming languages without function-valued arguments, such as Java, [callbacks] can be simulated by passing

Error Message: emulator-arm.exe has stopped working

女生的网名这么多〃 提交于 2019-12-17 18:04:56
问题 I have been having issues running my first android app. Yesterday, i came close to running it but my happiness was dashed when i encountered this error: emulator-arm.exe has stopped working What do i do? I want to run this 'Hello World' My Console Display: [2011-07-28 10:46:52 - HelloAndroid] Android Launch! [2011-07-28 10:46:52 - HelloAndroid] adb is running normally. [2011-07-28 10:46:52 - HelloAndroid] Performing com.bestvalue.hello.HelloAndroid activity launch [2011-07-28 10:46:52 -

Android emulator - Don't save state by default

半世苍凉 提交于 2019-12-17 17:53:37
问题 In the latest update for Android studio, the emulator has started saving snapshots of the current state of the device by default and going back to that snapshot when reopened, which is not the behavior that I want. How can I disable that and go back to the previous behavior, where it just closes and resets the emulator? UI after hitting the X button to close Android Studio 3.0.1 , with Emulator version 27.0.2 and HAXM 6.2.1 回答1: disable that and go back to the previous behavior Unselect quick

no ABI error , when creating an Android virtual device

左心房为你撑大大i 提交于 2019-12-17 17:39:28
问题 I am getting a No ABI error when creating a virtual device. My setup includes Android SDK ADT plugin Eclipse when I run android list targets it gives me Name: Android 4.0.3 Type: Platform API level: 15 Revision: 2 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800 ABIs : no ABIs. and when I try to run android create avd -n myandroid -t 1 it gives This platform has more than one ABI. Please specify one using --abi. how do I specify ABI and hence create

Cannot run emulator in Android Studio

痴心易碎 提交于 2019-12-17 17:38:08
问题 I just got done installing Android studio and trying to take it for a test run. When I try to run my app I get the following error message emulator: ERROR: This AVD's configuration is missing a kernel file!! emulator: ERROR: ANDROID_SDK_ROOT is undefined Does anybody know how to fix this???? 回答1: It is possible that you really have no system images. Double-check that $ANDROID_HOME/system-images/android-<YOUR DESIRED API>/armeabi-v7a exists and is not empty. If they really are missing -

How to run .APK file on emulator [duplicate]

Deadly 提交于 2019-12-17 17:23:51
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: How do you install an APK file in the Android emulator? I download an APK file and I want to run it on an Android emulator but I don't know how. Please help me. Thanks! 回答1: Steps (These apply for Linux. For other OS, visit here) - Copy the apk file to platform-tools in android-sdk linux folder. Open Terminal and navigate to platform-tools folder in android-sdk . Then Execute this command - ./adb install

Is there any way to test multi-touch on the Android Emulator?

烈酒焚心 提交于 2019-12-17 16:42:09
问题 Can multi-touch events be tested on the Android Emulator? Or is there any way to test this without an actual device? I am using the 2.0 sdk and want to test zoom-in/zoom-out with two fingers. 回答1: UPDATE: Yes, now there is (not for the 2.x Android, but the latest ones). In case people still searching with this function, if you are using default emulator from android studio, for mac user you can hold command button , and for windows/linux i believe it is alt button while left clicking with