android-emulator

Cannot open my database on the android device, but can on the emulator

自古美人都是妖i 提交于 2019-12-25 06:56:04
问题 Can anyone explain what's the problem? I developed my application which uses my own database. All worked fine, but in one day I began to receive the error at long rowsCount = DatabaseUtils.queryNumEntries(myDataBase, table); The error is android.database.sqlite.SQLiteDatabaseCorruptException: database disk image is malformed: , while compiling: SELECT count(*) FROM words The strangest in that I receive the error only on my device (lg p500), and the program works fine on the emulator. My code

Using Android speech API in Windows

谁都会走 提交于 2019-12-25 06:26:43
问题 I am using Visual Studio 2010 to experiment with Monodroid in C#. I'm aware that Android applications can be run on Windows using the emulator. Is it possible to use the Android API in a Windows console application? I would like to use the Android speech recognizer without actually running it in an emulator on Windows. 回答1: No-- Android API is (partly) based on firmware designed to run on a particular hardware platform-- The emulator emulates the platform at the hardware level, which is why

Deploying a Worklight app onto the Android Emulator is giving an error

£可爱£侵袭症+ 提交于 2019-12-25 05:24:13
问题 I'm trying to deploy an application to Android by using Worklight. I've seen a similar error to this posted before, however there weren't any concrete answers given. The error is triggered when I launch the app on an Android emulator, this is it: 08-13 08:22:26.262: E/Web Console(347): TypeError: Result of expression 'cordova.exec' undefined is not a function. at file:///data/data/com.Test/files/www/default/wlclient/js/wlgap.android.js:697 Now, I believe this js file is injected at run time,

Testing app beetween real device and emulator via WiFi without router

会有一股神秘感。 提交于 2019-12-25 05:23:10
问题 I develop app which contains a client and a server side, so I need to test work between them. I have a real android device and I want android device to connects to emulator. I'm working at work sometimes(if I have free time of course) and at home. I have the WiFi router at home and I can connect to the real device by emulator(TCP listener running on the real device), but not vise versa(I don't know which exactly IP to use). But at work I have only hot-spot WiFi point without router. My

Android speech to text works in emulator but not on phone

喜夏-厌秋 提交于 2019-12-25 05:22:39
问题 I'm trying to write a speech to text app for android. Now the app doesn't crash on the emulator, but when I upload it to a samsung galaxy s 1900 I get following error messages in eclipse: 11-05 17:43:48.814: I/dalvikvm(3092): Could not find method com.example.speechtotext.MainActivity.getActionBar, referenced from method com.example.speechtotext.MainActivity.onCreate 11-05 17:43:48.818: W/dalvikvm(3092): VFY: unable to resolve virtual method 3036: Lcom/example/speechtotext/MainActivity;

does android emulator support OpenGl ES2.0.?

淺唱寂寞╮ 提交于 2019-12-25 05:03:29
问题 Does Android emulator support OpenGl ES2.0? I run the code but Eclipse gives me the following error: Unfortunately adb has stopped 回答1: Yes Android Emulator support OpenGL ES 2.0 as described in this link. You have to select the “GPU emulation” option from the hardware menu when creating a new AVD if you want to take advantage of this feature. 来源: https://stackoverflow.com/questions/11162221/does-android-emulator-support-opengl-es2-0

App crashes when I open another activity

陌路散爱 提交于 2019-12-25 04:46:13
问题 So I am creating an app with 5 activities that have 5 separate soundBoards in which are controlled by 5 separate soundPools. I am also using a navigational drawer on each activity. When I run the app it can open the first two activities but whenever I call the third to open the app stops working. On the memory monitor the memory usage peaks to 64MB and then it crashes. Is it just the emulator is limited to 64MB and that it will work fine on a phone or do I have a memory leak somewhere? Do I

GenyMotion 4.3 Image fails to launch application

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-25 04:34:07
问题 I have updated to Genymotion 2.0 and downloaded/deployed the new 4.3 images (Galaxy Nexus and 10.1 Tablet) upon installing the appropriate GApps package get a devastating error upon launching a development app with the following stack trace making the device restart. I/Process ( 3117): Sending signal. PID: 3117 SIG: 9 E/AndroidRuntime( 3117): *** FATAL EXCEPTION IN SYSTEM PROCESS: android.server.ServerThread E/AndroidRuntime( 3117): java.lang.IllegalArgumentException: provider doesn't exisit:

Unfortunately, AndroidFirst has stopped

六眼飞鱼酱① 提交于 2019-12-25 03:52:31
问题 I am a beginner in android application & just started building first "HelloWorld" app. i followed official tutorial and designed emulator. But when i run it, the emulator says "Unfortunately, AndroidFirst has stopped". I looked around on SO but different solutions didn't help. I am a very beginner for Android, hence can't find the bug or something like wrong/error. following is logCat: 08-29 05:16:58.629: W/dalvikvm(1934): VFY: unable to resolve static field 1864 (ActionBarWindow) in Landroid

Onscreen keyboard covers up EditText on QVGA800 skin(resolution) in android 1.5

こ雲淡風輕ζ 提交于 2019-12-25 03:14:34
问题 In android 1.5 sdk, with QVGA800 skin(resolution), I added 8 EditText in LinearLayout. When 8th EditText box is tapped, the onscreen appears. However, layout doesnt move up enough, I mean, it moves up however it still covers EditText box which is being typed. How to solve this ? Main Class : package com.i; import android.app.Activity; import android.os.Bundle; import android.widget.EditText; public class myClass extends Activity { /** Called when the activity is first created. */ @Override