emulation

Detecting Mock Location Not Working (Android)

孤人 提交于 2019-12-12 03:39:09
问题 I'm trying to set some protection against people using mock locations to manipulate my app. I realise that it's impossible to prevent 100%... I'm just trying to do what I can. The app uses Google location services (part of play services) in its main activity. The onLocationChanged() method is: public void onLocationChanged(Location location) { this.mCurrentLocation = location; if (Build.VERSION.SDK_INT > 17 && mCurrentLocation.isFromMockProvider()) { Log.i(TAG, "QQ Location is MOCK"); // TODO

Microcontroller and flash memory chip programming development and simulation

一个人想着一个人 提交于 2019-12-12 03:30:08
问题 I just started to learn micro-controller programming and I seem to have a lot of trouble getting started, particularly the simulation part. This is an application I need to program: I need to store a few wave files in a flash memory chip, and use a Cortex-M0 to read in the music from the flash memory, and play them in combination, or run some basic signal processing on them. I am looking for an IDE that supports the end-to-end simulation on this. I looked at CoIDE (because if I google free

Android 3.x emulator app launcher not working

≯℡__Kan透↙ 提交于 2019-12-12 02:46:34
问题 I'm trying to check how a web page is displayed in the Android emulator browser, but seems that I'm out of luck today. I just installed the new API 13 AVD, launched it with WXGA resolution and realised that it was unusable (it hanged). Then I edited the configuration and now it is only 640x480. The GUI has changed a little, but still it hangs when I try to open the applications launcher (to find the browser icon). Only the notifications slider works, but is really slow. How can I open the

Android Studio 2.3 emulator freezes / crashes

允我心安 提交于 2019-12-12 02:34:15
问题 I updated from studio 2.2 to 2.3 and here the emulator appears showing "Android is starting" and at various numbers of for example "Optimizing app 22 of 45." it freezes. Restarting is not possible as I can not terminate "qemu-system-i386.exe" (access denied). I already uninstalled the emulator version 26 (version 25 had the same problem) with SDK manager (even undeleted ...\AppData\Local\Android\sdk\emulator) and reinstalled it and did a lot of other things but nothing helps. Any ideas how I

Can I override the emulator and directly debug the app on my Windows Phone 8?

ぐ巨炮叔叔 提交于 2019-12-12 02:04:55
问题 I have my laptop that has a processor without Virtualization and Second Level Address Translation capabilities, that are required for running the new Windows Phone 8 SDK. I can however use the Windows Phone 8 sdk, but for testing my apps I will use a windows phone 8 device. Is it possible to not start the emulator and directly debug the app on my WP8 device? 回答1: In Visual Studio, on the drop down on the debug button (green play button) select "Device". If the debug button is not visible,

Simple Google maps in android

萝らか妹 提交于 2019-12-11 23:33:54
问题 I am trying to execute MAP-API program in emulator I am getting the log errors ! r there any logic errors How to resolve these errors MainActivity.java public class MainActivity extends FragmentActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } } manifest <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.learnmap"

Android Emulator not launching in Windows7, Android Studio 1.1, API22

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 23:17:07
问题 I have been able to successfully launch emulator in past. But lately I switched to Android Studio 1.1 and emulator does not launch at all, either with API21 or 22. In my "Run" Window I do get the message that "HAX is working and emulator runs in fast virt mode". but beyond that nothing appears on the screen. I am on Windows 7 , enterprise. Please help... Vikas 回答1: You are not the first person who haves problems with Android Emulators. They are slow, do not work in some situations and have

C# KEYEVENTF_KEYUP doesn't work in specific app

我的未来我决定 提交于 2019-12-11 19:43:40
问题 I need to emulate some keys, here the code: [DllImport("user32.dll")] private static extern void keybd_event(byte bVk, byte bScan, int dwFlags, int dwExtraInfo); private const int KEYEVENTF_EXTENDEDKEY = 1; private const int KEYEVENTF_KEYUP = 2; public static void KeyDown(Keys vKey) { keybd_event((byte)vKey, 0, KEYEVENTF_EXTENDEDKEY, 0); } public static void KeyUp(Keys vKey) { keybd_event((byte)vKey, 0, KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP, 0); } KeyboardSend.KeyDown(Keys.Z); KeyboardSend

Google maps works on phone NOT on emulator

て烟熏妆下的殇ゞ 提交于 2019-12-11 18:34:14
问题 Google mapview does not load the actual maps in the emulator, just the grid. My overlays are displayed ok. sdk version 2.2. It works fine in a real phone. I use a debug key and trippel checked the manifest. It has been working in earlier projects. I just cant figure it out.. Any ideas, what to check? 回答1: That's because your Google Maps API Key is bound to your retail key. In the Emulator you use debug-signed Apps, so you'll need a different Google Maps API key for the debug key you use to

Netbeans Clamshell emulator out of memory

走远了吗. 提交于 2019-12-11 18:28:47
问题 I have been working with the clamshell mobile phone emulator for netbeans. I recently have tested a simple bluetooth application and got an Out of Memory erorr. Is it possible to up the amount of memory the emulator can use? thanks! 回答1: I do not know Clamshell mobile phone emulator, though if it is Java program it may be possible that the maximum size of the heap is too small and hence the program is running out of memory. You can pass -Xmx512m as an extra option to Java to set the maximum