android-emulator

I can't run the Android Emulator

a 夏天 提交于 2019-12-11 08:38:35
问题 I'm completely new to Android and Android Studio. I was just coding. So I was running the previous version of Android Emulator and it worked perfectly fine. However, when I downloaded the latest Android Emulator 27.1.12, my Emulator couldn't run properly. Issue: The code is running fine, but the Emulator can't display my application. When I click on the Emulator screen, I can still hear the Audio of my app. So I think the problem would be with my computer's hardware. Because the Emulator

Android : Unfortunately google maps stopped

醉酒当歌 提交于 2019-12-11 08:20:02
问题 Main.xml & manifest.xml <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <com.google.android.maps.MapView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/map_view" android:layout_width="fill_parent" android:layout_height="fill_parent" android:clickable="true" android:state_enabled="true" android

Android : Getting RuntimeException on AsyncTask

↘锁芯ラ 提交于 2019-12-11 08:09:48
问题 In the code I try to read from a web service with an http client. Then I want to write the Responce Phrase of the http responce to a text view. The UI is accessed through onPostExecute() so I don't know why I get this exception. This is the code: public class CustomersScreen extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.customersscreen); } public void LoginClicked(View view) { new Get_data().execute(

Make incoming call in Android emulator without command code

二次信任 提交于 2019-12-11 07:52:32
问题 I'm trying to develop a small app that will be registered on PhoneStateListener and do some magic over incoming and outgoing calls monitor. For debugging purposes, I need to trigger onCallStateChanged(...) event from outside of phone, not perform real incoming voice call. Is it possible to do this somehow with sending phone number to debugged app without command line code? 回答1: create one more emulator on avd machine. You can find the emulator number from top of the emulator. Eg. 5554 this

How to use .db file on an android device?

╄→гoц情女王★ 提交于 2019-12-11 07:46:50
问题 In emulator db file is located inside the /data/data/com.example.app_name/databases/data.db. But in real device no such directory exists. Due to which application crashes. Application is running smoothly in emulator. In real device android/data folder exists but it does not contain my application named folder. Also, when I displayed the directory for application through this.getDatabasePath() inside the device via toast it displays //data/data/com.example.My_App but as soon as database

calendar events and alarmManager service in android

柔情痞子 提交于 2019-12-11 07:45:15
问题 I'm trying to create an application as follows: The user inserts an event time and sets some actions to be done in this time like turning the phone to vibration mode in this period or turning off the wifi, so I will let the user insert his event data, and I will store it on the android calendar. Then save the actions in database. What I need is a service that fires when a calendar event occurs so I can catch the event id and compare it with actions in my database and do the actions that the

How do I pause the command window when launching an app?

一笑奈何 提交于 2019-12-11 07:17:04
问题 When I launch an Android app via Ctrl+F11 on Eclipse, there are two black command windows (DOS-like) that appear briefly with some important messages in them. Obviously, I can't read what's in them in that brief moment. Is there a way to pause/freeze them? Update: @Mayra's answers below provided great tips but they did not solve the problem of pausing/freezing these windows. I know for sure that they contain information not in the Console and not in the logcat. So the question remains. 回答1: I

How do I uninstall an existing package from the Android emulator

穿精又带淫゛_ 提交于 2019-12-11 06:43:58
问题 c:\Android\android-sdk\platform-tools>adb install foo.apk (Platform 3.1) 137 KB/s (14948 bytes in 0.106s) pkg: /data/local/tmp/foo.apk Failure [INSTALL_FAILED_ALREADY_EXISTS] adb uninstall looks for a package name and am not sure what it is? How do I find this information so that I can uninstall. 回答1: ADB uninstall should work. To get a list of packages installed: adb shell pm list packages 回答2: Setting->Application->Manage Application-> 回答3: You can also use: adb install -r foo.apk -r will

connect to my wamp server with the android emulator with local. web address

岁酱吖の 提交于 2019-12-11 06:41:31
问题 I've read a bunch of articles on SO and around the web that all tell me that the android emulator connects to my machine with the ip address 10.0.2.2 when using localhost . Unfortunately I'm not using localhost , I've edited my hosts file so that I connect to local.blah.com when I want to view my webpage. I thought that if I write: 10.0.2.2 local.blah.com in my host file it would allow my to see the webpage I am developing in the android emulator. (Please correct me if this was not a good

Android Studio Emulator - Ubuntu 16.04 LTS

好久不见. 提交于 2019-12-11 06:33:26
问题 I am trying to start the emulator in Android Studio on Ubuntu, but it is not working. I am able to create a new device in the AVD-Manager, however nothing appears If I am trying to start it. I am running Android Studio 2.3.1 on a Linux machine (Ubuntu 16.04 LTS) and I followed this guide: https://github.com/uw-it-aca/spacescout-android/wiki/1.-Setting-Up-Android-Studio-on-Ubuntu#install-intels-kvm-for-better-avd-performance My hardware configuration : Maybe I must install my graphics driver