android-emulator

Logcat errors when running android emulator

旧街凉风 提交于 2020-01-09 11:49:14
问题 I'm running an emulator targeting 2.3 (API Level 9). I've removed all downloaded apps (which includes any code that I've written) but I still get all of these logcat errors when I start up the emulator: [ollie@devdataload scripts]$ startlogcat.sh - waiting for device - E/Zygote ( 32): setreuid() failed. errno: 2 E/Zygote ( 32): setreuid() failed. errno: 17 E/BatteryService( 61): usbOnlinePath not found E/BatteryService( 61): batteryVoltagePath not found E/BatteryService( 61):

Why can't I run the android emulator?

房东的猫 提交于 2020-01-09 10:04:44
问题 I have installed everything like I was told to by the android website and all I keep getting after I create my avd is "Failed to start emulator: Cannot run program "/home/christopher/Desktop/android-sdk-linux_86//tools/emulator": java.io.IOException: error=2, No such file or directory". Anybody got any ideas??? I'm running linux if that helps. 回答1: If you're running a 64-bit system, you need to install ia32-libs: sudo apt-get install ia32-libs 回答2: If you are running Ubuntu 13.10 x64 or the

Why can't I run the android emulator?

你。 提交于 2020-01-09 10:04:25
问题 I have installed everything like I was told to by the android website and all I keep getting after I create my avd is "Failed to start emulator: Cannot run program "/home/christopher/Desktop/android-sdk-linux_86//tools/emulator": java.io.IOException: error=2, No such file or directory". Anybody got any ideas??? I'm running linux if that helps. 回答1: If you're running a 64-bit system, you need to install ia32-libs: sudo apt-get install ia32-libs 回答2: If you are running Ubuntu 13.10 x64 or the

R.styleable can not be resolved, why?

与世无争的帅哥 提交于 2020-01-09 07:42:26
问题 I have a resources.xml file located under direcotry values/ , That's /values/resources.xml <?xml version="1.0" encoding="utf-8"?> <resources> <declare-styleable name="TheMissingTabWidget"> <attr name="android:divider" /> </declare-styleable> </resources> In my java code, when I try to access this resource by R.styleable.TheMissingTabWidget , eclipse complain that styleable cannot be resolved or is not a field . Why? Why I can not access this resource? (I am using android 2.1-updated). 回答1:

How to get all apps installed on android phone

你离开我真会死。 提交于 2020-01-09 07:11:07
问题 This is the code that i have at the moment but i still can't get a list of all the apps on the phone. Does anyone see what i am doing wrong? public class GetAppList extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); try { List<PackageInfo> appListInfo1 = this.getPackageManager() .getInstalledPackages(0); JSONArray ja = new JSONArray(); try {

How to get all apps installed on android phone

落爺英雄遲暮 提交于 2020-01-09 07:10:08
问题 This is the code that i have at the moment but i still can't get a list of all the apps on the phone. Does anyone see what i am doing wrong? public class GetAppList extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); try { List<PackageInfo> appListInfo1 = this.getPackageManager() .getInstalledPackages(0); JSONArray ja = new JSONArray(); try {

Speed up Android emulator

瘦欲@ 提交于 2020-01-09 06:20:50
问题 I read on many other topics that the Android emulator starts really slow. Indeed, it takes +15 mins to start. However, on my machine is slow even after that. The 'phone' responds with a 3-4 seconds delay and everything has a huge lag. Is there any way to improve the performance of my laptop (Asus 1201N) is too rusty for the Android emulator? PS: Tried in different emulator resolutions and the result is the same Edit: My laptop has 2 cores with HyperThreading. And it shows as 4 CPU in Device

Speed up Android emulator

你说的曾经没有我的故事 提交于 2020-01-09 06:20:49
问题 I read on many other topics that the Android emulator starts really slow. Indeed, it takes +15 mins to start. However, on my machine is slow even after that. The 'phone' responds with a 3-4 seconds delay and everything has a huge lag. Is there any way to improve the performance of my laptop (Asus 1201N) is too rusty for the Android emulator? PS: Tried in different emulator resolutions and the result is the same Edit: My laptop has 2 cores with HyperThreading. And it shows as 4 CPU in Device

(How) Can an android virtual device use the local computer's internet?

早过忘川 提交于 2020-01-09 05:14:09
问题 I have a server running on the network my computer is on. Is there a way to allow the virtual device to use this same network and access the server? The virtual device won't let me toggle the wifi (probably because it doesn't have one). The only options I see that look right are: "Wireless & network settings" --> "Mobile networks" --> "Access point names". I'm not sure what to fill into all these fields though. If someone has an example of all the fields that are necessary to use the local

Disable multi finger touch in my app [duplicate]

谁说胖子不能爱 提交于 2020-01-09 04:22:05
问题 This question already has answers here : Disable or prevent multitouch in Activity (8 answers) Closed 5 years ago . My app uses one Activity to host several fragments. Each time one fragment is shown on the phone screen.The view of each fragment consists of several image icons. Currently, user is able to press on two icons simultaneously with two fingers (with each fingure press on one icon). I want to disable this multi-touch feature on my app to allow only one icon press take effect at a