android-emulator

my avd in android studio never starts. Black screen

别说谁变了你拦得住时间么 提交于 2019-12-11 15:17:05
问题 I am using the latest version of android studio and every time I try to launch an emulator, it does not show the bootup logo or anything just a black screen. Does anyone know how to correct this? 回答1: This problem is probably you created your AVD with x86 but your PC is 64-bit . Try to create an emulator with x86_64 architecture. See below screenshot: 回答2: What solved my problem is using an emulator that uses little RAM. In my case is a Nexus. Previously I was trying to launch in a Pixel 2 XL

Getting zip expansion file causing NullPointerException. Zip is not placed in right directory of emulator?

徘徊边缘 提交于 2019-12-11 15:13:41
问题 I'm trying to run the app in the eclipse emulator. In the ddms perspective, file explorer, I've put my .obb file inside mnt/obb/mypackage.name.example/main.1.mypackage.name.example.obb. Now Im getting NullPointerException at this line: zip = APKExpansionSupport.getAPKExpansionZipFile(ctx,1, -1); What could be the problem? 回答1: The path needs to be Android/obb/com.example.android/ Its given here Just store the file in /mnt/sdcard/Android/obb/ EDIT This is a screenshot of an emulator running

Android : SyncException: Directory not empty?

落花浮王杯 提交于 2019-12-11 15:07:00
问题 I have an emulator that it's snapshot is enabled.My App has no error,but some times when I want to test my App on that emulator,installation failed and I see these in console : android com.android.ddmlib.SyncException: Directory not empty I try clean/build project,re open emulator,restart eclipse and even restart my PC.But it seems they can not solve this problem.Do you know what causes this problem and how I can solve it? 回答1: I restart emulator from snapshot then uninstall my App from it

Image Manipulation in Android app

微笑、不失礼 提交于 2019-12-11 15:04:54
问题 Can anyone help me on this one? I want to do image manipulation in my Android app like Brightness and Contrast. Any ideas ? 回答1: I previously posted an example of how to greyscale an image in android. This code could be used as a starting point for basic image manipulation. I also suggest you check out the ColorMatrix class 来源: https://stackoverflow.com/questions/5962032/image-manipulation-in-android-app

flutter http post fails connection blocked from android emulator on windows 10

十年热恋 提交于 2019-12-11 14:54:36
问题 my Flutter code looks like : var url = "http://localhost:49912/api/Account/Register"; http .post(url, headers: {"Content-Type": "application/json"}, body: js) .then((response) { print("Response status: ${response.statusCode}"); print("Response body: ${response.body}"); }); the http response is: [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: SocketException: OS Error: Connection refused, errno = 111, address = localhost, port = 37316 now I know that my server code works

sending an email in android …

强颜欢笑 提交于 2019-12-11 14:44:19
问题 I am trying to send an email from my app. the code goes lik this : Intent i = new Intent(Intent.ACTION_SEND); i.setType("text/plain"); i.putExtra(Intent.EXTRA_EMAIL , new String[]{"recipient@gmail.com"}); i.putExtra(Intent.EXTRA_SUBJECT, "subject of email"); i.putExtra(Intent.EXTRA_TEXT , "body of email"); startActivity(Intent.createChooser(i, "Send mail...")); in the emulator it shows the email client again i have to enter the recipient address, when i click send button it doesnt send . and

send image from one activity to another using listview item in android

丶灬走出姿态 提交于 2019-12-11 13:54:57
问题 I am fetching data from URL into listview and i want whenever user will click on listview item then selected item details will be shown to user along with image and i am to send text data to another activity but not able to send image, but in singleitem activity i am getting blank space instead of image in imageview, how can i resolve this problem.Some code for reference:- ListViewActivity Code:- public void onItemClick(AdapterView<?> parent, View view, int position, long id) { // getting

Can not use MediaRecorder on Android Emulator. Is the storage location wrong?

扶醉桌前 提交于 2019-12-11 13:54:52
问题 I'm trying to record sound using Android Emulator. I know that this question is popular over the internet, I checked many posts, it seems that only one person succeded: Can the Android emulator record and play back audio using pc hardware?. (it think he used File fTmFile; insteadof String fTmpFile; which i also tried). And following Philip's advice and the official site tutorial http://developer.android.com/guide/topics/media/audio-capture.html and also other resources, I'm still not able to

QEMU vs Android emulator: command line options

十年热恋 提交于 2019-12-11 13:54:08
问题 What are differences regarding command line options between stock QEMU and Android emulator? Is there an option that has the same syntax, but works differently between the two? Or similar gotchas.. 回答1: Android emulator is built atop qemu, so basically android emulator inherits all the features from qemu and gets more specific options for android. From the view of the command line, android emulator is more like a wrapper. It looks like: emulator <options-for-android> -qemu <options-for-qemu>

Android-Studio Emulator audio error

这一生的挚爱 提交于 2019-12-11 13:01:51
问题 Hello, I am trying to setup Android Studio 3.1.3 in a guest VM with windows 10 x64 pro. In the VirtualBox I have intel HD sound controller enabled. I have installed Android 6.0 in AVD for ARM EABI architecture on a Pixel. However, when I try to launch the emulator I get Emulator: audio: Failed to create voice `goldfish_audio_in' Emulator: qemu-system-armel.exe: warning: opening audio input failed and the emulator is just a black screen that does not respond to anything. I have everything