android-emulator

How to get Login Activity only once when i runned for first time and next time differnt activities should come

拈花ヽ惹草 提交于 2019-12-12 09:13:46
问题 When i run application,Login Activity should come only once for first time and next time ,when i open two different Activities should come based on button click in Login Activity. In login activity i kept two radio buttons if i enable first radio button next time when i opened it should show main2 layout and if i enabled second radio button it should show main3 layout. public class Demo1 extends Activity { Button b1,b2; int count=0; public void onCreate(Bundle savedInstanceState) { super

How to register this tablet to Ubuntu udev list?

依然范特西╮ 提交于 2019-12-12 08:32:59
问题 I've got a cheap android tablet and I need to use it to test apps on it. I am using Ubuntu so I first have to add the device to udev list. I connected the tablet, but adb does not see it $ adb devices List of devices attached $ The I tried using lsusb , but the device is not identified to the Ubuntu (USB debugging is checked! in tablet's properties) $ lsusb Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003

Android AVD Manager: Can't create new device definition (java.lang.NullPointerException)

帅比萌擦擦* 提交于 2019-12-12 07:57:53
问题 I'm running the newest version of Android SDK on Mac OS X 10.9.3. I haven't had the Android SDK or any other Java development environment installed on this machine before, so this could be considered a fresh install. Nothing happens when attempting to create a new device definition using the AVD Manager, except for the following terminal output: java.lang.NullPointerException at com.android.sdkuilib.internal.widgets.DeviceCreationDialog.okPressed(DeviceCreationDialog.java:916) at org.eclipse

Debugging an Android app to the phone

泄露秘密 提交于 2019-12-12 07:48:38
问题 I've gone through the page Using Hardware Devices . My manifest has <application android:icon="@drawable/icon" android:label="@string/app_name" android:debuggable="true"> My phone has Menu -> Settings -> Applications -> Development -> USB Debugging checked. I have gone to the control panel on my Windows XP 64 bit installation and installed the USB drivers given to me by the SDK installer in android-sdk_r05-windows\android-sdk-windows\usb_driver . So my computer does recognize the Android

How can I install adobe flash on the android emulator

假如想象 提交于 2019-12-12 07:45:57
问题 I want to use Adobe Flash in the development of Android applications. But how do I install flash on the emulator so that I can test my software with flash? 回答1: To install the AIR runtime on the emulator: adb -e install -r Runtime_Emulator_Froyo_20100930.apk from this site: http://flashsimulations.com/2010/10/19/developing-android-applications-with-adobe-air/ 回答2: download the adodeflash player file(.apk) and install using the command adb install filename /sdcard/ 回答3: I tried this using

Android Emulator cannot connect to webcam with “unrecognized pixel format error”

感情迁移 提交于 2019-12-12 07:36:41
问题 After upgrading my macbook to Yosemite, I have been getting the following error whenever I launch an android emulator. I've tried all combinations of settings, but all report the same error. Any attempt to launch the built in camera app, or use the camera in my own app produces a crash. Below is the error I get when the emulator launches. Running the emulator with additional debug flags did not produce any additional useful info. emulator: ERROR: Unrecognized pixel format 'v024' emulator:

Is it possible to discover and run third-party Android Instant Apps on an emulated device?

旧街凉风 提交于 2019-12-12 07:30:42
问题 I'm currently trying to learn about Android instant apps. Since I don't own any real devices that support them, I'm using the emulator (from Android Studio 3.0 Canary 9). I can successfully run "toy" instant apps (like this) on my emulated Nexus 5x (with Play Store), so I believe that my development environment is configured correctly. However, I was curious to learn about the discovery process for third-party apps, and find out what the user experience is like. Lacking a suitable device of

OpenGL ES 2.0 Support for Android?

一个人想着一个人 提交于 2019-12-12 07:14:16
问题 I've seen multiple takes on this topic and its starting to confuse me. I really hope someone can give me a definitive answer! :) I guess to be blunt: does the Android emulator support OpenGL ES 2.0? I've seen some people say "Yes, but you have to change a few settings." and I've also seen "No, it doesn't support it, period." Here's what I've done to try and correct the problem, including some error messages that I got. First, I modified the AndroidManifest.xml to contain the following code:

EGL_emulation failed to establish connection to host - android

我的未来我决定 提交于 2019-12-12 07:08:47
问题 I am trying to run a simple OpenGL program in Android. I am running this in an Android 4.1 emulator. I switched on its GPU emulation and it worked fine yesterday. When I ran that today, initially it was hanging saying, OpenGL taking time to render - Wait or Close dialog box . After few runs again it was crashing saying E/EGL_emulation(2637): Failed to establish connection with the host followed by 11-30 11:48:10.787: E/AndroidRuntime(2637): FATAL EXCEPTION: main 11-30 11:48:10.787: E

App running in Android Emulator fails to perform an HTTP Post to localhost

拥有回忆 提交于 2019-12-12 06:56:32
问题 I'm unable to perform an HTTP Post with an app running in an Android Emulator . {StatusCode: 400, ReasonPhrase: 'Bad Request', Version: 1.1, Content: System.Net.Http.HttpConnection+HttpConnectionResponseContent, Headers: { Server: Microsoft-HTTPAPI/2.0 Date: Wed, 23 Oct 2019 00:58:01 GMT Connection: close Forwarded: host=XXX.XXX.X.XX:XXXXX; proto=https Content-Type: text/html; charset=us-ascii Content-Length: 374 }} Setup: I'm using an IP address generated by Conveyor by Keyoti I installed a