FAQ Database Discussion Community

Database is created for emulator but not for android device

I am making an android app in which database is created with sqlite open helper. when I installed my app in emulator it works fine but when I did the same thing to test in my phone I don't see any database created in DDMS file explorer view data/data. It...

HAXM installation fails claiming VT-X not present

I'm having difficulties trying to install HAXM for my emulator in Android Studio. I have an hp2000 notebook; I updated Windows 8.1 to Windows 8.1 Pro to activate the Hyper-V feature and I even went to system settings to enable virtualization, but am still getting "This computer does not support...

How does adb -e uninstall package detect emulators? In-depth emulator detection

I was told that running command "adb -e uninstall com.example.myapp" works specifically with emulators because of the "-e". How does ADB know that the device is an emulator? Is there any source code available for this? I am trying to find a more in depth way to detect emulators that...

Android ListView not showing on real device but on emulator does

I'm having a weird problem regarding the simple ListView. On my emulator everything is allright and the data is loaded correctly from JSON API, the data also loads on my device. The problem is that on my emulator, the listview is populated but on my real device, not, even if...

Sox - Piping output in windows

So I am emulating a RP2A03 chip using C++, using SoX to resample and output the audio. I can confirm that the APU itself and input pipe is working as a charm with the command following command: FILE* fp = popen(".\\sox\\sox.exe -t raw -c1 -e signed-integer -b 16 -r1789800 -...

Surface 3 + Android emulator?

I am thinking about getting a surface 3 as I cant afford a surface pro 3, and was just wondering if I could run the android emulator on it, from the android sdk, to support my app developments. I would be greatful for any thoughts....

android error only when running on actual phone (not emulator) - not sure what the cause is

Making my app in Android Studio, I've been mostly running/testing it on the emulator. Well I'm pretty much done with it(I think), and I ran it on my phone, which I've done before much earlier on. Now when I get to one of my activities, I'm supposed to select a...

Android Studio emulator is not working

i´ve searched about an awnser for this problem, tried many things, but still it doesn't Work. I'm using a win7 64-bit version. I've set the ANDROID_SDK_HOME variable and... nothing. With the path: C:\Users\Nuno\Favorites\.android\avd The error is this: Cannot launch AVD in emulator. Output: PANIC: HOME is defined but could not...

Android App, previously successfully loaded, has stopped working. Android Emulator

I had an app successfully deployed (using JDeveloper) onto the emulator and it would run. Now all of a sudden it will not. All i have changed was the emulators network settings, but reset them back to default after the app stopped loading, it still will not work tho. I...

Why my android application stopped when I run it in Emulator?

Unfortunately, app has stopped. I get this error when I'm running my application in the emulator. Why? My program doesn't contain any error, but it's not running. I use Eclipse with SDK. Here is my manifest file: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.jvstgs" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="3" android:targetSdkVersion="21"...

Tablet Application Development

I am going to start making a tablet application. What is the difference between the layout of a mobile application and a tablet application? If I am going to mimic a mobile application to a tablet application, how do I create the layout to suit the tablet layout? What are...

I can't get genymotion to run my app

I am using Android Studio, and I have the Genymotion plugin installed. When I click on the plugin, it opens the emulator without issue. However, when I attempt to run my app, the Genymotion emulator does not show up as an available option. I searched for this problem before and...

possible to test ASP.NET website for mobile device on LAN

We have a test server on the LAN on which we test web pages in ASP.NET before deploying them to the production webserver. Desktop PCs connected to the LAN are the workstations, running various browsers. But is it possible to test with actual mobile devices if the test server is...

Running Android application

When I run a program with Android Studio with emulator, Nexus_5_API__21_x86 runs and I don't see environment Android in emulator; my emulator stops in Android logo while booting. Please help me....

Android studio - the emulator is stacked outside of the screen

My android emulator won't show the minimize or close button, It's stuck to the left of my screen and I can't drag it to the right or anywhere.

Amazon Kindle Fire AVD

please, how to get Amazon Kindle Fire Emulator, Device definitions, and all necessary packages, etc, to emulate amazon device. Because I have tried to get it using Android SDK Manager - links were added, but in Extras I see only Amazon Fire Phone Build Tools, Kindle Fire USB Driver, Amazon...

Android Emulator is (very) distorted

I guess a picture explains more than 1000 words... This is the screen I get after booting - but the boot animation itself is already distorted. It's possible to interact with the emulator at the elements usual positions - in the screenshot, for example, if I'm clicking in the middle...

Different picture display in real device and emulator Android

Different picture display in real device and emulator Android, I do not understand what is the reason <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_parent" android:layout_height="fill_parent" tools:context=".MainActivity" android:orientation="vertical"> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/imageView" android:src="@drawable/music"...

Trouble with Eclipse's Android Emulator view

I'm on Eclipse and starting the Android Emulator, it just stays sticked at the top of my PC screen, being impossible for me to see the top of the emulator. I've tried all the methods found here, the -scale in Run configurations --> Target, the skin... whatever, and I just...

Android Emulator showing on left top corner

I have created emulator and launched it, first time is shows properly in center but after editing emulator size, It is showing on left top corner of monitor. Unable to change position of emulator. Before two days, My colleague also got same issue. We have same laptop which are HP...

When writing a CPU emulator, how do you choose between simulating a 16, 32, or 64 bit processor?

If I were to write a really simple CPU Emulator, how would you determine how many bits it is, i.e 16 bits or 32 bits?

How to disconnect Windows Phone 8.1 emulator from network?

I want to test my app when it is disconnected from network (Internet connection). How to simulate the scenario in which phone doesn't have an Internet connection?

Differences between: INT 10H , INT 16H, INT 21H

Could anyone please explain to me the differences between: INT 10H , INT 16H, INT 21H in assembly language? When should we use any of them and for what? For example: in this simple code for printing "Hello, World!" Why did we use int 10h in the fourth line? Why...

Web Android virtual machine or emulator?

I develop Android app's with a group of several professionals, often they come to my desk so I would install the latest compile version on their devices. I was wondering if there is any tool like a web Dalvik (Android Virtual Machine) to show my app, maybe some Android web...

Android 5.1 on emulator always offline

I build Android 5.1.51 and try run it on Emulator. But adb always shows that device offline and after 2 minutes list of devices becomes empty. build target is aosp_x86-eng Camera not work. Internet not work too. Gallery always crashes what am I doing wrong?...

J2ME - PNG created in PhotoShop not displaying in emulator

My midlet is showing some images fine, but not others. They are all 8-bit PNGs, but the ones that aren't displaying are the ones I have created myself in PhotoShop. So I am thinking maybe my PhotoShop (CS6) settings are wrong... PNG-8, Selective, Diffusion, Colors: 256, Dither: 100%, Matte: None,...