android-emulator

Google Maps showing on emulator, but not on a device

被刻印的时光 ゝ 提交于 2019-12-22 10:48:29
问题 I wrote a basic map application, the one that an be easily instantiated with AndroidStudio. The only difference the fragment is loaded inside another custom layout. package com.wayl.activities; import android.os.Bundle; import android.support.v4.app.FragmentManager; import android.support.v7.app.AppCompatActivity; import com.google.android.gms.maps.CameraUpdateFactory; import com.google.android.gms.maps.GoogleMap; import com.google.android.gms.maps.SupportMapFragment; import com.google

how to load activity layout in android while the video is playing in background

落爺英雄遲暮 提交于 2019-12-22 10:48:24
问题 how to load activity layout in android while the video is playing in background in android emulator??? the video demo you can see here sample video till now i have only animated the layout but i am unable to do like the one in video and when i am trying to play only video in emulator it gives error saying "can't play video" actually i don't have an android device so i have to test my application in emulator. any help is highly appreciated. here is a code of animation : package com.example

ADB rejected shell command (ls -l ): closed

你。 提交于 2019-12-22 10:09:03
问题 I am getting an error when i try to run my project ddms]ADB rejected shell command (ls -l ): closed I can not understand why this happens and how it'll be solved. This shows every time when run project. I tried : 1) Close emulator and start it again. 2) Restart eclipse. but this not solve my prob. please help. 回答1: I think what happens is that the adb's connection with the emulator breaks or becomes faulty, so android launches a new emulator although you have already an existing emulator for

XML Error in Eclipse while viewing Graphical Layout of Xml

一世执手 提交于 2019-12-22 10:07:14
问题 This is the error I'm getting in my layout XML files: Exception raised during rendering: 0 Exception details are logged in Window > Show View > Error Log The following classes could not be found: - View (Change to android.view.View, Fix Build Path, Edit XML) My Xml File is : <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/list_view_main_lin_layout" android:layout_width="match_parent" android:layout_height="match

Segmentation Fault trying to set battery level in android emulator

谁说胖子不能爱 提交于 2019-12-22 09:37:22
问题 I am using Android SDK tools on Ubuntu. I have created a Nexus One Virtual Device that uses API-17. I run this emulator which attaches to port 5554. After this, I connect to this port using telnet, and try to set power level: power capacity 40 But, when I do this, I get segmentation and emulator gets killed. Also, when I goto Settings > Battery in emulator, it shows "Battery Status Not Available" and battery is 0%. All other commands work, except the power related ones. What should I do? 回答1:

No network connection - Android-x86 on VMWare Fusion

喜欢而已 提交于 2019-12-22 09:13:26
问题 I'm trying to come up with some kind of Android environment to use for development on Mac OSX. It's proving quite difficult ( Android emulator laggy on Mac ). On my macbook the Android emulator is so slow that it is unusable. Note, I'm trying to build a tablet app, which seems to make things worse. So far the best performance I've found is just running the x86 port of Android via VMWare fusion. The only problem is the darn thing keeps giving a "No network connection" message. I don't know

Simultaneous Running HAXM AVD Emulator Limit

☆樱花仙子☆ 提交于 2019-12-22 08:59:45
问题 To elaborate on the title, I'm running many simultaneous AVD's for my automated build/test processes (think concurrent builds for a project, or multiple projects building at once). Most problems that people have with running multiple HAXM accelerated AVD's at once is memory related. THIS IS NOT MY PROBLEM (I think). I have a pretty beefy i7 machine with 32gb of ram. When installing HAXM, I allocated 28gb (sorry, I can't post more pictures without more rep). Here is my AVD configuration(s).

Unable to simulate location data in Android emulator

余生颓废 提交于 2019-12-22 08:13:23
问题 I'm trying to test my app, which uses geolocation using the emulator. Several methods are described here. I'm going to Window->Open Perspective->DDMS , then entering lat. and long. one in Location Controls and then I hit "Send". But it doesn't work. Instead I see the following error: Unable to send command to the emulator. Why is this happening!? I don't think my app is the problem because I tested with the emulator's default browser and it also cannot access location info. Details: OSX 10.9

How can I attach a virtual device/emulator to Visual Studio Xamarin Android project?

喜欢而已 提交于 2019-12-22 06:59:15
问题 I created an Android app for Ice Cream Sandwich and added nothing to the default code (except changing the text of the "Hello World" message - I couldn't - or wouldn't - help myself). I mashed F5. Nada - no device attached. The dropdown list says "No Devices Attached." So, I set one up via the "Open Android Emulator Manager" button that the Xamarin install added: I mashed F5 again; same problem. It said to pick a device from the dropdown list (I had forgotten to explicitly choose the one I

Android: “Bad Request-Invalid Hostname” When accessing localhost from emulators

戏子无情 提交于 2019-12-22 06:49:31
问题 I am not able to use localhost with xamarin.android application. I have executed Web project & Service project(not mobile app) on Chrome Browser. The displayed port number I tried browsing in Android Studio emulators & Genymotion emulators by appending 10.0.2.2: & 10.0.3.2: respectively, I got result Bad Request-Invalid Hostname . Even I have tried Service project port number , both not working. Web Project: ASP.NET project using Visual Studio 2017 & Having service project in the same