android-emulator

my gif images are shown in emulator but are missing in my smart phone

荒凉一梦 提交于 2019-12-05 02:07:38
问题 in my application i am displaying a few gif images which workd perfectly in emulator but when i install the apk file in my smartphone the application works as normal but gif images are not displayed , any explanation why ?? here is my code for the view for gif display import android.content.Context; import java.io.InputStream; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Movie; import android.os.SystemClock; import android.view.View; public class

qemu-system-i386 quit unexpectedly when starting AVD (Android Virtual Device) on a Mac (illegal instruction 4)

ⅰ亾dé卋堺 提交于 2019-12-05 02:06:33
问题 I installed Android Studio on my Mac (Macbook Pro, August 2017, OSX 10.12.4), then started up, created a hello world project and created an AVD (Android Virtual Device, Nexus 5) to run my project on it. The error shows when I try to run my project on the simulator (pressing the play button) or when I try to start up the emulator itself. Here's a screenshot of the error: Here's the beginning of the stack trace: Process: qemu-system-i386 [5779] Path: /Users/USER/Library/Android/*/qemu-system

How to set this Layout that fit to Any Screen height?

北战南征 提交于 2019-12-05 02:00:11
问题 I have Some layout Problem regarding my Application. This is My Application Layout: <?xml version="1.0" encoding="utf-8"?> <ImageView android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/tax_calculator_logo"/> <LinearLayout android:layout_height="fill_parent" android:layout_width="fill_parent" android:orientation="vertical" android:layout_marginLeft="20dp" android:layout_marginRight="20dp" android:layout_gravity="center" android:layout_marginTop="10dp

Visual Studio Android Emulator won't run application

夙愿已清 提交于 2019-12-05 01:53:36
I recently got into Xamarin development. I have a lot of experience in Xcode making iOS apps and the iOS side was very straight forward. Now I'm trying to implement Android. I downloaded a Hello World example to get my bearings. When I run it I have no problems getting the simulator to show up ( MonoForAndroid_API_10 and MonoForAndroid_API_12 ) but the actual application doesn't run, and does not show up anywhere on the simulator. Essentially whenever I use run or run with in Xamarin on Android, it pulls up a fully functioning, albeit empty simulator. How do I get my application to run on the

Android Emulator Skin Layouts - Are there tools and a specification?

ⅰ亾dé卋堺 提交于 2019-12-05 01:51:10
问题 Skins for Android emulators are defined in a directory among /platforms/android-xxx/skins Additional vendor-specific skins also in the folder /add-ons). Here parts of the skin like images for backgournd and buttons are stored and a file that organizes these parts into the skin which is called layout. The layout file contains a herarchical list of key-value pairs, defining parts and layouts. Here is a fragment as illustration: display { width 480 height 800 x 32 y 106 } background { image htc

popup menu expand/collapse from an icon in Action Bar

ε祈祈猫儿з 提交于 2019-12-05 01:47:46
问题 I am developing Android 2.1 API 7 app. I implement my Action Bar with ActionbarSherlock library. My action bar view: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent"> <ImageView android:id="@+id/my_option" android:layout_gravity="left" android:src="@drawable/ic_launcher" android:layout_width="wrap_content" android:layout_height=

Android emulator error:missing kernel file [duplicate]

纵然是瞬间 提交于 2019-12-05 01:44:39
This question already has answers here : Emulator error: This AVD's configuration is missing a kernel file (19 answers) Closed 6 years ago . emulator: ERROR: This AVD's configuration is missing a kernel file!! I have updated version of sdk and adt. I have also installed The " ARM EABI v7a System Image ". I just build the Android ActionBarSherlock and SlidingMenu library. I have also updated my eclipse. Any idea where is the problem? D'yer Mak'er Update your SDK. Do check again if the ARM EZBI v&a system Image is installed correctly. If it not installed. you will see it in the Android Sdk

Cannot add a google account to android emulator

柔情痞子 提交于 2019-12-05 01:42:40
I am having a problem connecting my android emulator to gmail . I cannot add my gmail account even though I can browse the web. I go to the Accounts and Sync/add account/google/sign in , and put in my gmail address and password and then get the following message after a long wait - "Can't establish a reliable data connection to the server" I am going through a company proxy so I suspect this may be the problem. This also happens if I try the create new option. Does anybody know what port needs to be open for this activity to occur, if indeed this is the problem? Or if anybody has any

How to use Android OS VirtualBox as device in Eclipse

梦想的初衷 提交于 2019-12-05 01:40:36
问题 I found this tutorial on how to run Android OS here: http://www.javacodegeeks.com/2010/06/install-android-os-on-pc-with.html Has anyone tried to use the set-up as a replacement for the emulator? If so, how did you do it? 回答1: I haven't used the guide you link to, but instead downloaded an eeepc image from the Android x86 Project. The steps I followed are: Install Android to a virtual PC - I used a 64bit virtual machine, enabled all the hardware virtualisation, and used the PCnet-FAST III

Failing to retrieve OAuth 2.0 access token on android emulator

可紊 提交于 2019-12-05 01:38:11
问题 I'm trying to login into my application using GoogleAccountCredential for the authentication: mGoogleAccountCredential = GoogleAccountCredential.usingOAuth2(context, Arrays.asList(Scopes.EMAIL, Scopes.PLUS_LOGIN)); mGoogleAccountCredential.setSelectedAccountName(accountName); String token = mGoogleAccountCredential.getToken(); It works just fine on real devices, but on the android emulator mGoogleAccountCredential.getToken() fails with the following exception: java.lang