emulation

starting a microcontroller simulator/emulator

醉酒当歌 提交于 2019-11-30 15:51:48
I would like to create/start a simulator for the following microcontroller board: http://www.sparkfun.com/commerce/product_info.php?products_id=707# The firmware is written in assembly so I'm looking for some pointers on how one would go about simulating the inputs that the hardware would receive and then the simulator would respond to the outputs from the firmware. (which would also require running the firmware in the simulated environment). Any pointers on how to start? Thanks Chris Alex Fort Writing a whole emulator is going to be a real challenge. I've attempted to write an ARM emulator

Android Studio 64-bit ERROR: 32-bit Linux Android emulator binaries are DEPRECATED

前提是你 提交于 2019-11-30 15:50:37
I recently upgraded my ubuntu 13.10 64-bit to 14.04 64-bit. Android Studio always worked well on 13.10. On 14.04 I had a problem with gradle ( this one ), which was a problem with missing libz.so.1. Following this link , I had to install the 32-bit version of this package, and it fixed my problem. Now (I thought it was related), when trying to launch a device emulator, I have this message : ERROR: 32-bit Linux Android emulator binaries are DEPRECATED, to use them you will have to do at least one of the following: - Use the '-force-32bit' option when invoking 'emulator'. - Set ANDROID_EMULATOR

Android emulators with phone numbers?

青春壹個敷衍的年華 提交于 2019-11-30 14:21:37
问题 I'm working on a client-server Android application and trying to figure out how to identify different phones/users to the server unambiguously. My first attempt would be to use the phone number on the SIM card. Although now that I think about it, how common is it these days that your phone number changes when you e.g. change carrier? I guess it depends from country to country etc. Anyway, I've been trying to figure out, since I don't have actual Android phones, how to change the phone number

Android webcam enable in emulator

限于喜欢 提交于 2019-11-30 13:47:14
问题 Hai I am new to the Android. I am using Android4 sdk. I can't enable webcam in Android emulator. Can anyone tell how enable it. Thanks. 回答1: There is a way to get this working use the Android Virtual Device Manager. You need to edit your AVD so that in the hardware section either "Configures camera facing front" or "Configures camera facing back" are available. One, but not both, of the values for these properties should be set to "webcam0" (or whatever is available). Then start your virtual

Emulator Not Running on Android Studio

允我心安 提交于 2019-11-30 13:47:05
问题 I am trying to run an emulator over Android Studio, but it's not starting. I have Android studio (version 23 marshmallow), configured with minSdkVersion 21 targetSdkVersion 23 When I run my app in emulation (nexus 5x api 23 android 6.0), I get the following error: Error while waiting for device: The emulator process for AVD Nexus_5X_API_23 was killed. Can anybody help me on this, please? 回答1: If you take a look at the 4: Run log, it says: emulator: ERROR: Unfortunately, there's an

TargetApi not taken into account

青春壹個敷衍的年華 提交于 2019-11-30 13:11:55
问题 In one of our methods, we use smoothScrolling in a list view. As this method is not available before API Level 8 (FROYO), we used the TargetApi annotation to prevent the method from being called in previous SDK versions. As you can see, we do use TargetApi annotation both in class definition and in statements that use the objects of the class. This is more than needed. Our problem is that the TargetApi annotation is not taken into account and make our emulator crash in version ECLAIR (SDK 7).

the android emulator does not start, avd

自闭症网瘾萝莉.ら 提交于 2019-11-30 12:38:01
this is my situation: I have a XPS under Ubuntu 10.04 LTS 64-bit I downloaded the latest Android SDK with eclipse. The SDK works fine, but when I create a new AVD and I run. My AVD loads but not displayed. I do not understand, do you have an idea about my problem ? Thank's I start my avd from command line : romain@XPS-Dak:~/.android$ emulator -verbose -avd Test emulator: found SDK root at /home/romain/android-sdk-linux emulator: Android virtual device file at: /home/romain/.android/avd/Test.ini emulator: virtual device content at /home/romain/.android/avd/Test.avd emulator: virtual device

Emulating density of 320 dpi on android emulator

旧时模样 提交于 2019-11-30 11:45:40
We're trying to emulate devices with the new density of 320 dpi in Android 2.3 - such as Archos 101, and we can't seem to be able to define an emulator with such density, even after downloading the latest 2.3 sdk. I would really appreciate some ideas on this one :) Many thanks! That is quite simple. Modify the attribute hw.lcd.density=320 at avd config file: /Users/yourUserName/.android/avd/CustomDevice_API_19.avd/config.ini , and reboot your virtual device. I'm already test it, and it works to me! Warnning: Make sure you set the correct density, otherwise you will receive an error: qemu:

Android: Redirect outgoing calls

自闭症网瘾萝莉.ら 提交于 2019-11-30 11:38:52
问题 I'm trying to redirect outgoing calls to a different phone number on an Android device. So, I use a BroadcastReceiver "listening" for the NEW_OUTGOING_CALL intent, on his onReceive() method I use the setResultData() method to change the phone number. Like this: public void onReceive(Context arg0, Intent arg1) { setResultData("351978923221"); } In the emulator all goes well, but on my real device (a crappy ZTE X850 with Android 2.1 I believe) it doesn't if the calling Intent originates in an

Detect when Android emulator is fully booted

守給你的承諾、 提交于 2019-11-30 11:20:03
问题 I want to create a script where I start an emulator and after the system is fully booted, I want to install an .apk. How can I know when the emulator is fully booted so I can run the install command? Here http://developer.android.com/guide/developing/tools/adb.html it is said that adb wait-for-device install <app>.apk is not correct. So how can I achieve this? Is it possible? Is my only option to sleep for a few minutes until I can be sure that the emulator is started? 回答1: adb shell getprop