android-emulator

ConnectivityManager is crashing while getting network info

我怕爱的太早我们不能终老 提交于 2019-12-12 19:10:25
问题 I am new to Android and when I give the following snippet, my Android application is crashing. ConnectivityManager manager = (ConnectivityManager) this.getSystemService(Context.CONNECTIVITY_SERVICE); manager.getNetworkInfo(ConnectivityManager.TYPE_WIFI); // Application is crashing in this line. I also checked the AndroidManifest.xml where I gave the Internet permission to the application. Any help would be really useful for my further work. 回答1: I am not sure what you want to say but if you

PANIC: Missing emulator engine program for 'x86' CPUS

允我心安 提交于 2019-12-12 18:40:21
问题 I am trying to run my first Android "Hello World" program. But while doing that, Android studio gives an error. Below are all of the details. IDE - Android Studio. OS - OSX (Version - 10.9.5) Command - /Users/hiteshj/Library/Android/sdk/tools/emulator -avd Nexus_5_API_21_x86 -netspeed full -netdelay none Error - 0c4de9c3b43a:AndroidStudioProjects hiteshj$ /Users/hiteshj/Library/Android/sdk/tools/emulator -netdelay none -netspeed full -avd Nexus_5_API_21_x86 --verbose emulator:Found AVD name

communication between Android devices from different computer

白昼怎懂夜的黑 提交于 2019-12-12 18:28:05
问题 Is it possible t make two android emulator on eclipse communicate from two differents machines which are connected with a fast ethernet link ? Thanks for reply 回答1: Yes. The outgoing side just works, but the incoming side (whichever one is receiving the connection) is a bit more complicated. You would set up an emulator or adb port forward, but that only makes a port on the loopback interface ("localhost" ie 127.0.0.1) of the machine hosting that emulator ring through to the the emulator

AVD not working correctly in android studio

时光总嘲笑我的痴心妄想 提交于 2019-12-12 18:26:02
问题 I have been developing android apps in eclipse and since moving to android studio, i can't load apps to my already existing AVDs it just tries to create a new one. which is always damaged. after, it keep saying my already existing AVD is invalid 回答1: Im guessing you already had android-sdk with eclipse, android studio creates it's own. set your studio's sdk to the old one, click your project's settings and choose it from the SDK pane. Also if that fails you can try to create an AVD from the

Creating custom button class in Android

两盒软妹~` 提交于 2019-12-12 17:08:50
问题 I'm trying to create custom button class for my android app public class TicTacButton extends Button I've set all the constructors inside the TicTacButton and created custom methods and properties. In my main activity, I've tried to initialize the Buttons as TicTacButton btn = (TicTacButton) findViewById(R.id.button1); I'm getting a java.castClassException. android.widget.Button cannot be cast to com.example.tictactoetitan.TicTacButton I tried changing my xml file as <TicTacButton android:id=

AVD Manager, why can't I create an AVD?

ⅰ亾dé卋堺 提交于 2019-12-12 15:22:40
问题 For some reason, I cannot create an AVD. I went through AVD Manager - Cannot Create Android Virtual Device and attempted the solutions, and I also fiddled with the different settings in the manager, including changing the name to Device . I made sure that the system images are installed, and I followed the instructions for using the Intel Atom. Why is the OK greyed out? I even ran the AVD Manager from eclipse, from the exe, and from monitor.bat For reference, I did install the Atom's image:

getViewByID Returns null for the Listview

我们两清 提交于 2019-12-12 13:47:22
问题 I have got my main.xml as follows: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > <TextView android:text="TextView" android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content"></TextView> <ListView android:layout_height="wrap_content" android:id="@+id/listView1" android:layout_width=

Android application working in emulator but not in device

纵然是瞬间 提交于 2019-12-12 13:17:09
问题 I have created aa android application using android 1.6 (api 4) and the android:minSdkVersion is "3". I am using the emulator to run this application is 2.2. Its working fine in the emulator. Then I installed it in to htc hero (android 1.5) and it showing the force shut down error. Why is it so? Please anybody give me a reason or solution for this problem. Regards kris 回答1: You could take an emulator 1.5, like that you will see you're error with it. be carreful that some element of interface

Android Studio 3.0 Canary 4 Emulators Stuck in Reboot

99封情书 提交于 2019-12-12 13:05:13
问题 So yesterday I was using my TV, Mobile and Wear emulators (on Android Studio) just fine. Today in the morning an update came and I went and downloaded it. That's all I did. Since then my TV and Mobile emulator are stuck in rebooting, and I can't get them to do anything beyond that. My AVD are both on API 23. This is my error log: Emulator: coreaudio: Could not lock voice for audioInputDeviceIOProc Emulator: Reason: Invalid argument I can't find anything related to these error messages and the

Android emulator launch failed

爱⌒轻易说出口 提交于 2019-12-12 13:04:16
问题 This is the message I get on the console.I have tried to launch it a lot of times, same message. Thanks. [2014-02-07 15:44:08 - david] Performing t.t.Splash activity launch [2014-02-07 15:44:08 - david] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'slayer' [2014-02-07 15:44:18 - david] Uploading david.apk onto device 'emulator-5554' [2014-02-07 15:44:18 - david] Failed to install david.apk on device 'emulator-5554': Read-only file system [2014-02-07 15