android-emulator

Get Android device/emulator root directory

China☆狼群 提交于 2019-12-11 04:45:27
问题 I am developing an Android application using Eclipse/Ubuntu. As usual, I am doing the first shot on an AVD emulator. I would like to put in place a unique folder structure that I can use on both the current emulator and on the final physical device (the SD memory card). What would be the Android environment variable to pick up the root directory by program (Java of course) for both type of virtual and physical devices, so that I can have my starting reference? Thanks PS: I have the DDMS File

No emulator installed - Android Studio

左心房为你撑大大i 提交于 2019-12-11 04:37:03
问题 my android studio was working fine, a bit slow but it was working fine. but when I started it some days ago and tried to run, it started showing me Error that "no emulator installed". please help me. couldn't find any proper solution for it. 回答1: No worries, just open SDK Manager (In Android Studio, go to Tools > Android > SDK Manager) and download an emulator. 回答2: You need to install an emulator ( Tools > Android > SDK Manager ) or you can connect your phone to the pc (make sure on your

Installation error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED code included

旧城冷巷雨未停 提交于 2019-12-11 04:19:48
问题 Okay, so I have been searching and searching and have not found any help. When I launch the AVD, it says: No Launcher activity found! The launch will only sync the application package on the device! Once the emulator opens, this comes up. Installation error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED I'm pretty sure that my AndroidManifest is correct: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.mshaw.avanos" android

Android certificate (can not install app by using apk file)

走远了吗. 提交于 2019-12-11 04:19:36
问题 I developed an Android app. I then transferred the bin/myapp.apk to my android phone, and try to install it. But my phone says it can not be installed. Someone told me it is probably because of the Android certificate in my app is wrong. But I do not understand what is Android certificate ? Is it something defined in AndroidManifest.xml ? 回答1: The very first thing I would check is that you allow Unknown Sources. Settings -> Applications -> Unknown Sources, be sure this box is checked before

Android Studio: Error: module not specified but can't select a module to choose

笑着哭i 提交于 2019-12-11 04:09:17
问题 I'm running Android Studio 3.2.1, 32-bit on Windows Vista with JRE 1.8.0 x86 and JetBrains s.r.o OpenJDK. My default app seems to build fine although Gradle takes some time, but when I run it, it prompts me with an "Edit Configurations..." dialog and then says "Click the + button to create a new configuration based on default settings." from which I select "Android App" on the left, but then where the "Module:" field is I can only select "" so I cannot run my app. The error I get at the

onLocationChanged never gets called Emulator

风流意气都作罢 提交于 2019-12-11 04:06:42
问题 package com.ecsmon.android.core; import static com.ecsmon.android.constants.Constants.log; import java.io.IOException; import java.util.List; import android.annotation.SuppressLint; import android.content.Context; import android.location.Address; import android.location.Criteria; import android.location.Geocoder; import android.location.Location; import android.location.LocationListener; import android.location.LocationManager; import android.os.Bundle; @SuppressLint("NewApi") public class

PhoneStateListener doesn't call

一笑奈何 提交于 2019-12-11 04:06:33
问题 Here is My Whole Code....... BroadcastExample.java package com.example.broadcast; > import android.app.Activity; import > android.content.Context; import > android.os.Bundle; import > android.telephony.*; import > android.util.Log; import > android.widget.TextView; public class BroadcastExaple extends Activity { TextView textOut; TelephonyManager telephonyManager; PhoneStateListener listener; /** Called when the activity is first created. */ @Override public void onCreate(Bundle

No Images Found in Gallery

≯℡__Kan透↙ 提交于 2019-12-11 03:55:18
问题 I need to test a function that needs to picks some images from the gallery of Android JellyBean Emulator. So I have downloaded from internet using the own browser of the emulator (that is slow as the hell) some images. The images appears in the downloaded files but not in the Gallery of Emulator. In the GingerBread emulator when I download an images from the browser these appear automatically in the gallery. How could I force the emulator to find the images? 回答1: In the old emulator the media

How to run YouTube Video in Android Emulator

て烟熏妆下的殇ゞ 提交于 2019-12-11 03:47:28
问题 I have made a program in which i am fetching list of youtube videos in listview and i have implemented onClick also source:- I have followed a tutorial on how to use the youtube gdata. Populating a listview with videos from youtube and a onclick. The source code is available on: http://blog.blundell-apps.com/click-item-in-a-listview-to-show-youtube-video/ Problem: Whenever i click on any of the youtube video item row, getting specific video in next activity but whenever i click on video to

Create virtual hardware, kernel, qemu for Android Emulator in order to produce OpenGL graphics

别等时光非礼了梦想. 提交于 2019-12-11 03:44:56
问题 I am new to android and wish to play around with the emulator. What I want to do is to create my own piece of virtual hardware that can collect OpenGL commands and produce OpenGL graphics. I have been told that in order to do this I will need to write a linux kernal driver to enable communication with the hardware. Additionally, I will need to write an Android user space library to call the kernal driver. To start with I plan on making a very simple piece of hardware that only does, say 1 or