emulation

Android: Eclipse doesn't pushed new version of app to emulator

瘦欲@ 提交于 2019-12-11 06:52:32
问题 When developing for Android in Eclipse, the emulator relaunches the old version of the app each time I run the project unless I go through the rather arduous procedure of Settings -> Applications -> Manage applications -> [my application] -> Uninstall -> Ok -> Ok in the emulator. I had this problem on some projects but not on others when following the tutorials on the Android Developers site, and my friend turns out to have the same problem. Although this has been asked before (here and to

Running x86-64 ASM on a x86-32 processor

狂风中的少年 提交于 2019-12-11 05:33:20
问题 I'm taking an assembly language course and it's taught targeting x86-64 platforms. My laptop is pretty antiquated and still running a 32 bit x86 processor, specifically an Intel Core Duo T2500. Is there a way to run a virtual machine that supports 64bit addressing on my machine? 回答1: QEMU should be able to emulate x86_64: Features 回答2: Bochs is another x86_64 emulator. But you should think of using an emulator since everything is emulated and it's too slow to run a full operating system.

Android emulator crash if click while processing

≯℡__Kan透↙ 提交于 2019-12-11 05:25:49
问题 I've been working on an android app and test it on the emulator. Parts of this app require some processing time, such as login, could take up to 10 seconds. If the app is processing the login, and I clicked anywhere on the emulator screen, it will cause the app to crash -> a force close/wait window will pop up and even I choose to wait, this login process will never complete. I wonder did anybody else encounter this situation? What could I do to avoid user clicking during processing and crash

Installing the same app on two emulators

帅比萌擦擦* 提交于 2019-12-11 05:25:38
问题 When I launch the android emulator through eclipse for the first time, its menu shows all the test apps that I have created. But when the launch a second instance of the same emulator, its menu does not shows any of my apps. How can I install my apps on the second emulator as well? I need to have an application installed on both the emulators to test it. 回答1: It happens because you can't run two emulators simultaneously. In fact you can but second emulator will not use emulator image files -

Casting behavior in C

眉间皱痕 提交于 2019-12-11 05:22:47
问题 I'm currently trying to avoid the pointer arithmetic workings in C to write an emulator. Usually, if you add 1 to a pointer in C, you add the size of the pointed to object instead. However, I am trying to work with bits and bytes, so this is undesired. I was wondering if I was using too many parentheses in this example: *(int16_t *)(((intptr_t)bc)+sp) And if not, then is it equivalent to this? : *(int16_t *)((intptr_t)bc+sp) sp is a page-aligned stack address for my emulator (obtained via.

Connecting two emulators to establish Socket connection between them

十年热恋 提交于 2019-12-11 04:28:17
问题 I want two connect two emulators and i wish to establish SOCKET connection between them. Problem i am facing is I have to use two different ip address for client and socket. Android emulator have static ip 10.0.2.15. Is it possible to change the ip address? If not then how can i establish Socket connection between 2 emulators. The program i have is working fine with two devices,but how to do it for two emulators 回答1: Take a look at this thread, this thread, and the docs on port forwarding.

Am I running on an Emulator or a Device

孤街浪徒 提交于 2019-12-11 04:05:22
问题 Is there a way (using managed code hopefully) to find out if I am running on an Emulator or an actual physical device? I am looking for something like this: public class BarcodeScannerFactory { public override BarcodeScanner GetBarcodeScanner() { if (IsARealDevice()) <---------------------------+ return new SymbolBarcodeScanner(); | else | return new FakeBarcodeScanner(); | } | } | | // This is the method I need to make ----------------+ (NOTE: It occurs to me that Windows Phone 7 has been

Cordova builds iOS app and opens emulator but doesn't install

断了今生、忘了曾经 提交于 2019-12-11 02:58:44
问题 I'm making an iOS app in Cordova on MacOS. When I run cordova emulate ios the app builds and it opens the emulator for iPhone X iOS 11.4 but it never install the app in the emulator. It just shows the emulator home screen. It just stops there. Why is it getting here and not going any further? UPDATE: Now after trying to start the emulation again a second time, it gives the following error: An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2): Failed to install

How to allow the emulator to access internet in android?

怎甘沉沦 提交于 2019-12-11 02:38:52
问题 How to allow the android emulator to access internet ? 回答1: You don't need to set any setting to access internet on emulator unless you are behind a proxy, in case you are behind a proxy start your emulator from command prompt with following command: C:/emulator -avd avdname -http-proxy http://your.proxy.ip:8080 来源: https://stackoverflow.com/questions/8818856/how-to-allow-the-emulator-to-access-internet-in-android

Emulate User Activity

萝らか妹 提交于 2019-12-11 02:30:46
问题 I want to emulate user activity in Windows machine like left mouse click and further more I would like to perform a pre-defined steps repeatability. Is there any tool available for that? Please suggest me an easy and nice way to do it? 回答1: I have used AutoIT v3 for a long time and highly recommend it: http://www.autoitscript.com/autoit3/index.shtml Recently I've been using Sikuli, and it seems to be a bit faster than AutoIT and is also definitely worth a try: http://groups.csail.mit.edu/uid