android-emulator

Can I emulate a compass on Android

杀马特。学长 韩版系。学妹 提交于 2019-12-30 05:05:47
问题 I want to test a compass app on the emulator. Is this possible or do I have to use a real device. Also I do not want to use gps. 回答1: It's possible to install sensorsimulator from openintents but you can only use this as an app on the emulator and send commands from the pc. The weird thing is once you quit the app on the emulator then it stops receiving sensor simulation data. So it's useless for testing your own app! Is it possible to simulate sensor commands on the emulator to actually send

Open NFC Simulator not working for Android emulator

别等时光非礼了梦想. 提交于 2019-12-30 04:45:09
问题 I'm trying to emulate NFC card reading in Android Emulator, using Open NFC v4.5.2 for that purpose. I have followed all steps indicated here: HOWTO use the NFC Simulator with the Open NFC add-on included in the delivery I have also tried with insturctions from other StackOverflow posts such this or this, with no success. When I start the emulator I'm not able to turn-on NFC in Settings->Wireless & networks->NFC , and NFC Controller Simulator doesn't show any activity: Following is the capture

ListView onClickListener() does not work after adding RadioButton

一世执手 提交于 2019-12-30 03:04:53
问题 I have a ListView ( my_list.xml ): <ListView android:id="@+id/my_list" android:layout_width="wrap_content" android:layout_height="wrap_content" android:choiceMode="singleChoice" /> The layout for each list item is ( list_item.xml ): <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:padding="10dp" > <ImageView android

Passing Activity to non-activity object properly

懵懂的女人 提交于 2019-12-30 02:19:30
问题 In my app ive got a non-activity object which it's role is being a manager class. many times i need to pass "source activity" to methods as parameter to that manager class in order to make some operations on that activity. for example let's assume we have MyActivity which gotta do some toast. so i have this manager class called MyManager, and i have this method in it raiseToast(Activity sourceActivity) { Toast.makeText(sourceActivity, demo, Toast.LENGTH_LONG).show(); } and from Myactivity

Passing Activity to non-activity object properly

孤街醉人 提交于 2019-12-30 02:19:10
问题 In my app ive got a non-activity object which it's role is being a manager class. many times i need to pass "source activity" to methods as parameter to that manager class in order to make some operations on that activity. for example let's assume we have MyActivity which gotta do some toast. so i have this manager class called MyManager, and i have this method in it raiseToast(Activity sourceActivity) { Toast.makeText(sourceActivity, demo, Toast.LENGTH_LONG).show(); } and from Myactivity

onclick button is not working in listview

不羁的心 提交于 2019-12-29 09:28:10
问题 My project contains listView(homelistView) that contains button(btnList) . When I click on button(btnList) it must go to another Activity. I tried a lot but I didn't find a good example. Please suggest me a good example regarding this. Below is my code: Here is my listview contains button. When on click of button it must go to other activity --------------------------------A-- text text button(btnList) B --------------------------------C--- text text BUTTON(btnList) D ------------------------

libgdx android failed on launch

主宰稳场 提交于 2019-12-29 08:57:47
问题 This is my first time using libgdx and I would like to try the default application provided after the setup gdx-setup-ui . It runs fine when I hit the run button on eclipse as it has shown [2014-05-01 21:40:14 - my-gdx-game-android] Uploading my-gdx-game-android.apk onto device 'emulator-5554' [2014-05-01 21:40:15 - my-gdx-game-android] Installing my-gdx-game-android.apk... [2014-05-01 21:40:16 - my-gdx-game-android] Success! [2014-05-01 21:40:16 - my-gdx-game-android] Starting activity com

Android emulator's GPS location gives wrong time

北城余情 提交于 2019-12-29 08:38:32
问题 I am testing an Android GPS tracking application in the Emulator and I am running into a problem when trying to figure out if the last known location is stale or not. Getting the system time gives me the correct time, but when I call location.getTime() for the last known location the time returned is off by a few hours. I did some more testing and found out that every time I send a GPS location from the Emulator control tab in Eclipse (similar to geo fix), the location's time is advanced by

Why genymotion emulator is a lot faster than android emulator? [closed]

╄→гoц情女王★ 提交于 2019-12-29 08:38:09
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 6 months ago . I've been using android emulator in Ubuntu 14.04, i5-2500k 3.2GHz, 8 GB RAM, but it was incredibly slow as I found genymotion emulator. So, what's the difference between them? Why genymotion is so fast booting? Thank you. 回答1: It is probably because Genymotion uses x86

64-bit Eclipse won't install .apk on Android emulator

给你一囗甜甜゛ 提交于 2019-12-29 08:08:25
问题 On Windows 7 64-bit, running Eclipse 3.6 64-bit, JDK (jdk1.6.0_23) 64-bit and Android 2.3 (bitness?), running a program via Eclipse's Run|Run (Ctrl+F11) invokes the android emulator, but won't install .apk on the emulator (and certainly won't run it). (update, answering @Computerish's question) All I am getting at Eclipse's Console is: [2010-12-16 10:23:33 - HelloAndroid] ------------------------------ [2010-12-16 10:23:33 - HelloAndroid] Android Launch! [2010-12-16 10:23:33 - HelloAndroid]