android-emulator

Android Emulator: qemu-system-i386.exe: goldfish_battery_read: Bad offset

夙愿已清 提交于 2019-12-02 17:50:10
So, whenever I try to launch my app on the android emulator the IDE gets bombarded with this error: Emulator: qemu-system-i386.exe: goldfish_battery_read: Bad offset....... This error also shows when the application is running every minute or so. I'm using Android Studio 3 Beta 6 API Level 26 Emulator 26.1.4 Android SDK Tools 26.1.1 Image x86 26 (oreo) ... I've tried to re-install all of the SDK tools and update everything to the latest but had no luck. I also re-installed the IDE and re-downloaded everything and it still shows this error. I'm wondering if anyone ran into this error as well? I

not able to pinch zoom on emulator

随声附和 提交于 2019-12-02 17:49:51
I have an application in which I need to implement image editing, which also includes pinch zooming. I am done with pinch zooming but I can test this only on device, not on emulator. Is there any way for testing pinch zooming in android emulator, any shortcut key or any other way? K_Anas Since ADT 17, it is possible to use a physical Android 4.0 device to send multitouch gestures to the emulator. See Android's instructions here . Multi-Touch The emulator supports multi-touch input, as an experimental feature in r17, using a tethered Android device running the SdkControllerMultitouch

Draw a 2D Image using OpenGL ES 2.0

人盡茶涼 提交于 2019-12-02 17:34:43
I've been struggling to draw a 2D image from jpg/png files using openGL ES 2.0 for Android. Everywhere I look the tutorials are for texturing 3D images so its been rough figuring out how to draw a regular 2D Sprite. I got a square to draw and rotate but once it came to texturing I must have messed up somewhere because I keep getting an error saying DrawElements isn't bound to any data but if I comment out any code to do with texturing it works fine. Any help would be greatly appreciated. Here is my Code for my Sprite class and Renderer Class: public class Sprite { //Reference to Activity

Genymotion unable to load VirtualBox engine on Windows 10

℡╲_俬逩灬. 提交于 2019-12-02 17:28:58
I recently upgraded to Windows 10 BUILD 10130 and for some reasons, Genymotion doesn't seem to be working. It says "Unable to load VirtualBox Engine." Now i did a bit of research and all the solutions suggested to Delete the Host-only network from Virtual Box settings. Well here's the thing i don't have any networks listed there. And the one which i found on the Network and Sharing center cannot be deleted. Even a clean install hasn't solved the issue Please help. Step 1: Run VirtualBox as administrator Step 2: Go to File -> Preferences -> Network -> Host Only Networks Step 3: Add a new one or

Android studio doesn't recognize the running emulator

℡╲_俬逩灬. 提交于 2019-12-02 17:11:57
When I run my app from AndroidStudio 0.4.3 using Run I see Choose Device which has two sections choose a running device or Launch Emulator . I don't have a running emulator at the moment so I click the ... to launch AVD manager and start an emulator. At this point I see that under choose a running device the emulator I just launched shows up but its listed as offline . In the past the offline status went away when the emulator was fully up and running. However, now I've noticed that when the emulator is launched fully, it no longer appears in choose a running device . I feel like I'm always

Genymotion Error: “Unable to load VirtualBox Engine” on Yosemite. VirtualBox installed

徘徊边缘 提交于 2019-12-02 17:08:51
I have a Macbook Pro 13 inch with OS X Yosemite [Memory 8 GB, Graphics Intel Iris Graphics 6100 1536 MB]. I am trying to setup Genymotion as Android Emulator. I installed Oracle VirtualBox first from https://www.virtualbox.org/wiki/Downloads [VirtualBox-5.0.0-101573-OSX.dmg], and then Genymotion for personal use from Genymotion [genymotion-2.5.0.dmg]. But I get the following error - I checked all the previous answers on StackOverflow and the Google search results, and I did the following, but none of them solved the problem. 1. (a) sudo /Library/Startupitems/VirtualBox/VirtualBox restart OR (b

Visual Studio Android Emulator network not working

一世执手 提交于 2019-12-02 16:38:01
问题 I started using xamarin in visual studio, and I installed visual studio android emulator. Emulator works flawlessly, but network on it doesn't. In settings it says it's connected, but browser can't open websites. I started windows phone emulator, and there network works without problem. When I started android emulator, it added two network adapters (see picture). In hyper-v virtual device settings for Android emulator, internal network adapter is set to windows phone adapter (see on picture),

UDP packets not received in emulator from localhost

旧街凉风 提交于 2019-12-02 15:57:34
问题 My app is unable to receive the UDP packets when running in the emulator. UDP packets are sent by below java program on "localhost" over the port 49999. DatagramSocket clientsocket; DatagramPacket dp; BufferedReader br; InetAddress ia; byte buf[] = new byte[1024]; int cport = 50000, sport = 49999; clientsocket = new DatagramSocket(cport); dp = new DatagramPacket(buf, buf.length); br = new BufferedReader(new InputStreamReader(System.in)); ia = InetAddress.getLocalHost(); while(true) { Random

Got exception: fragment already active

瘦欲@ 提交于 2019-12-02 15:22:42
I have a fragment ; MyFragment myFrag = new MyFragment(); I put bundle data to this fragment: Bundle bundle = new Bundle(); bundle.putString("TEST", "test"); myFrag.setArguments(bundle); Then, I replace old fragment with this one and put on backstack : //replace old fragment fragmentTransaction.replace(R.id.fragment_placeholder, myFrag, "MyTag"); //put on backstack fragmentTransaction.addToBackStack(null); //commit & get transaction ID int transId = fragmentTransaction.commit(); Later, I pop backstack with the above transaction ID( transId ): //pop the transaction from backstack

Logcat error description : Button launch crashes app

我怕爱的太早我们不能终老 提交于 2019-12-02 14:58:24
问题 There was some permission constraint in manifest file .... I removed it but the application still crashes on button click....Rest of the buttons are working great..... It started happening when i used the Notepad sample code in the SDK to impement a similar "save Notes" for my application These are the new logcat details 09-13 03:23:42.743: E/AudioTrack(776): Could not get audio output for stream type 3 09-13 03:23:42.743: E/SoundPool(776): Error creating AudioTrack 09-13 03:23:43.363: D