android-emulator

android emulator black screen

女生的网名这么多〃 提交于 2019-12-18 13:27:32
问题 I have recently installed android studio and all its update using sdks manager. When i try to start the emulator i can see this: emulator -netdelay none -netspeed full -avd Nexus_5_API_21_x86 HAX is working and emulator runs in fast virt mode It seems good. The emulator start but only thing i can see is a black screen. I use the default AVD created by the app. It has google api's x86 system image, 1gb ram, 64mb vm heap and 200mb intel storage. I tried to uncheck "Use Host GPU" but it did not

Reading Activity names from apk file in Android

*爱你&永不变心* 提交于 2019-12-18 13:17:11
问题 I want to extract all the activities names from an android apk file. Any idea how possibly it can be done? Thanx Kaps 回答1: You can use the PackageManager method getPackageArchiveInfo to retrieve the information from an APK file. Assuming your APK lives in the root of your SD card, you can use this code: String apkPath = Environment.getExternalStorageDirectory().getAbsolutePath() + "/MyApp.apk"; PackageManager pm = getPackageManager(); PackageInfo info = pm.getPackageArchiveInfo(apkPath,

Android SDK Connect to Web Server on Host

穿精又带淫゛_ 提交于 2019-12-18 12:38:56
问题 I am building a web service, and an android app to utilize it. I am doing both through Eclipse. When I'm running the web server locally, I can connect from my host machine's web browser at http://localhost:8888/. How can I connect to that from my android app running on the emulator on the same machine? 回答1: How can I connect to that from my android app running on the emulator on the same machine? If you are referring your localhost on your system from the Android emulator then you have to use

OpenCV Android - color issue using CameraBridgeViewBase

笑着哭i 提交于 2019-12-18 12:37:43
问题 I'm encountering a strange problem using Android emulators & OpenCV CameraBridgeViewBase . Using onCameraFrame I get a picture that looks like it wasn't decoded properly. public Mat onCameraFrame(CvCameraViewFrame inputFrame) { return inputFrame.rgba(); } Using 'inputFrame.gray()' I get what's expected - black and white image without artifacts or any other issues. That's what I get: One more picture (a bigger one) What I've tried so far: Different API levels (from 15 up to 21). Different

Failed to install due to Timeout in Emulator

萝らか妹 提交于 2019-12-18 12:14:43
问题 When attempting to install an .apk from Eclipse, whether to an android emulator or to a physical device (via USB), I get a "Failed to install *.apk on device '*': timeout" error. The .apk is not found on the emulator nor physcial device (Samsung Galaxy S2, rooted). If I avoid eclipse, and just use the command line, I'm also unable to install an .apk. Why a new post on this? There are several other stackoverflow posts that reference the "Failed to install..." error. I've created a new post for

How do you compile an Android project into an .apk file in Eclipse without launching the emulator?

旧街凉风 提交于 2019-12-18 12:12:57
问题 I'm just wondering because I have my own seperate method of getting it on my phone via my web server and the emulator is getting annoying popping up every time. 回答1: I had a problem that it would not build an APK for me (without Running) after I installed the latest SDK and latest Eclipse (Indigo 371). Try this: Go to Windows -> Preferences -> Android -> Build and uncheck "Skip packaging and dexing until export or launch" then restart Eclipse. Now when you do Build Project you should get an

Ringing myself using android emulator

若如初见. 提交于 2019-12-18 11:47:45
问题 I am developing a small application on Google's android emulator. I am trying to figure out how I can simulate a phone call from one instance of an emulator to another (both running on my computer). Does anyone know how this can be done? Thank you very much. 回答1: Launch the dialer application on the first emulator. As the number to dial, enter the console port number of the second emulator you'd like to simulate a call on. You can see the port number of the instance in the windows title of

android webview displaying blank page

♀尐吖头ヾ 提交于 2019-12-18 11:45:04
问题 I have an android application that I am developing using the emulator running on android 2.3.3 with an embedded WebView in a framelayout nested in a linearlayout (vertical). No matter what code I use it never actually does anything. I have Permissions on the android application set to INTERNET. Even when trying to load just the HTML code. I get a blank white page, no errors no nothing. Nothing in logcat as well. WebView wview = (WebView)findViewById(R.id.webView1); wview.getSettings()

How to update Google Play Services on the emulator in Android Studio

被刻印的时光 ゝ 提交于 2019-12-18 11:33:23
问题 Hi I am trying to run an Android Program I have created that can connect to Firebase with Authentication using email and password but it seems that I cannot even authenticate due to the fact of them saying my Google Play Service is not up to date. I am stump here as I have the latest google play services according to my SDK manager and I don't think it is my code's problem as when I use my friend's phone for debugging it works but not when I am using the emulator. How can I update my google

console.log browser in android emulator

时间秒杀一切 提交于 2019-12-18 10:52:08
问题 How to see console.log messages of a website using android emulator? 回答1: From Rich Chetwynd's short article "Javascript debugging on Android browser". You can log javascript errors and console messages from your Android device or emulator. To do this you first need to install the Android SDK and USB drivers and enable USB debugging on the actual device. To check if the device is connected correctly you can run the following cmd from your Android SDK tools directory and you should see a