emulation

What is the difference between two Credential use options “VPN and apps” vs “Wifi” when installing a custom certificate on an Android emulator?

落花浮王杯 提交于 2019-12-04 15:02:03
问题 I'm trying to install a Charles Certificate on an Android emulator and I noticed that there are two Credential use options: "VPN and apps" and "Wi-Fi". I've tried looking around for explanations regarding to the two options, but the one I've found simply say "pick one that fits your use case." What is the difference between the two options? Which one should a developer pick? 回答1: The WiFi option is for authentication WiFi networks, while VPN and apps is for authenticating certificates for SSL

Android Emulator Orientation Change Through Emulator Console or ADB

China☆狼群 提交于 2019-12-04 14:31:30
问题 I am trying to build an automated test framework for checking basic things that an app should respond to, without crashing. One of those is checking if an app responds to configuration change properly. Now, since it is automated, I have to switch the emulator's orientation between landscape and portrait and observe if it crashes, PROGRAMMATICALLY. [caps cuz there are many questions relating to ctrl+F12 or num pad 7] I am trying to figure out an adb or emulator console command to get this done

GWT Java Emulation

限于喜欢 提交于 2019-12-04 14:07:15
问题 I have some code which uses java.awt.Color. I want to translate my Java Code to GWT. So I will emulate java.awt.Color in my GWT Project. One approach is to write a module called java.AWT.gwt.xml whose source path is awt and a class called java.awt.Color. The other approach is to create a folder com.google.gwt.emul.java.awt and create java.awt.Color class inside that path. Eclipse will show errors. But compiler will work. Which one is appropriate way to add java.awt.Color for GWT? 回答1: You'd

Android emulator sdcard permissions

懵懂的女人 提交于 2019-12-04 13:49:11
I'm using eclipse and trying to get the android emulator to let me write to the sdcard. when I install the app on my phone it prompts to accept the permission required... and the program works. When I try using the emulator to test the app I don't get prompted and using the program results in permission denied. I've tried recreating my avd... and have the sdcard size set to 4Gb. Obviously I have the uses permission line in the AndroidManifest.xml... and here it is: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="j**.B********

Android Scan Local Subnet

独自空忆成欢 提交于 2019-12-04 11:53:06
I'm currently writing a small test Android app, and have run across a small (large) problem with the emulator. The code that goes out and scans the local subnet for computers running my server piece of the software does not return anything! This code functions perfectly on the desktop portion, so I know something is wrong inside of my emulator. I had to hardcode the IP scan first because I cannot determine the IP address within the emulator, so I know I'm at least scanning the right range. Summary: How can I connect to servers via sockets from inside my emulator on the local subnet? Thanks all

Run Sparc binaries without Sparc hardware

天大地大妈咪最大 提交于 2019-12-04 11:05:51
问题 I've been curious in the past few months in trying my hand at doing some assembly for the SPARC processor (either V8 or V9). My question is this, I have no access to a SPARC machine, is there a way I can run SPARC binaries on my x86 machine? I've looked at QEMU but I am not too sure how to set it up. 回答1: SimICS emulates a Sparc platform. Academic and personal licenses are free. Edit: I didn't do SimICS justice in my initial response, it is a very useful tool for Sparc-based development. You

Android Studio Emulator not loading Windows 10

最后都变了- 提交于 2019-12-04 10:45:56
问题 I have a fresh install of android studio on Windows 10, with all the packages for android api 22. When I run the emulator I get the following message C:\Users\admin\AppData\Local\Android\sdk\tools\emulator.exe -avd foo -netspeed full -netdelay none emulator: device fd:928 HAX is working and emulator runs in fast virt mode I can see the emulator in the task manager, but it doesn't actually load. I've been looking for answers to why it doesn't load and I've made sure all the ram settings are

How can I view my Android Apps database information?

荒凉一梦 提交于 2019-12-04 10:11:59
I've tried to view the db file from the File Explorer in Eclipse but I can't open the file or copy it to another location to open. I don't have a rooted phone so I was trying to view the db from the app on my emulator. If someone could help it would be greatly appreciated as I find it hard to find much info on this subject for some reason. Thanks! Tushar Tarkas what do you want to see? Is it your application's data stored in database? If that is the case then you can see the data from android's shell. Follow commands mentioned below. adb shell sqlite3 sample-database.db Check these links for

PowerPC emulation: Qemu, PearPC, or… ?

♀尐吖头ヾ 提交于 2019-12-04 09:32:31
问题 I'm currently trying to build a configuration to test some code on Big-Endian systems. Through chats and research, i've been convinced that a good target for these tests would be the PowerPC architecture. Since i don't own one, and don't expect to get direct access to one anytime soon, i'm looking for some kind of emulation software to test my code. Problem is, i've found no "easy to use" solution in this area. It seems there are at least 2 possibles solutions, one using QEMU, and the other

How to deal with branch prediction when using a switch case in CPU emulation

佐手、 提交于 2019-12-04 08:20:37
问题 I recently read the question here Why is it faster to process a sorted array than an unsorted array? and found the answer to be absolutely fascinating and it has completely changed my outlook on programming when dealing with branches that are based on Data. I currently have a fairly basic, but fully functioning interpreted Intel 8080 Emulator written in C, the heart of the operation is a 256 long switch-case table for handling each opcode. My initial thought was this would obviously be the