android-emulator

The logcat in android shows simply shutting down the VM?

元气小坏坏 提交于 2019-12-06 13:35:55
问题 Yesterday it worked perfectly, but today shows a message "unfortunately the app has stopped", and the logcat shows "shutting down the VM". Stack Trace of this app.. 11-27 13:24:17.035: W/Trace(806): Unexpected value from nativeGetEnabledTags: 0 11-27 13:24:17.455: W/Trace(806): Unexpected value from nativeGetEnabledTags: 0 11-27 13:24:17.485: W/Trace(806): Unexpected value from nativeGetEnabledTags: 0 11-27 13:24:17.485: D/AndroidRuntime(806): Shutting down VM 11-27 12:30:51.683: D

Run Phonegap application, that supports HTML5 and Javascript on Android Wear

陌路散爱 提交于 2019-12-06 12:29:16
问题 I had already executed Hello World apk on Android wear emulator, now I want to use HTML inside asset folder to execute it in wear emulator but I am not getting any success 回答1: Android wear supports only Java application not to render HTML document. Please refer to https://developer.android.com/training/building-wearables.html for Android were app in details. 回答2: It does not work like you are used to from normal Phonegap/Cordova yet. But as you can use a full Chrome Browser on the watch

Image capture in Android automatically

让人想犯罪 __ 提交于 2019-12-06 12:29:13
问题 Is there any way to use the following code to take pictures automatically i.e. no button clicks at all. Just after sometime image can be taken automatically and stored on the SD card. protected void startCameraActivity() { Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); intent.putExtra(MediaStore.EXTRA_OUTPUT,Uri.fromFile(new File(file_name))); startActivityForResult(intent, 1); finish(); } 回答1: No, once you start an Intent you really have no control over the Activity you start

Run a full android phone rom on the Android Emulator

房东的猫 提交于 2019-12-06 12:28:53
As the title says, it is possible to run a full android device rom inside the Android emulator? Yes you can, but getting it to work 100% might be hard. most of the roms include specific drivers for the hardware they are running on. I am not 100% on this working, but here are the steps to try: Create a Nandroid backup Create a new AVD for your ROM Copy system.img from the nandroid backup to c:/users/myusername/.android/avd/myrom.avd/ I think you can also take the userdata.img or the other images as well, but i would try just system.img first start up your emulator and see if it boots, but again

Calabash -Android: Can we simulate Home button on Android devices for Calabash-Android?

巧了我就是萌 提交于 2019-12-06 12:27:55
Can we simulate Home button on Android devices for Calabash-Android? I need to tap on Home button in our scripts to execute my Scripts using Calabash. Lasse I have not tried this yet myself. But looking around for a solution I did find this. Link http://krazyrobot.com/2014/02/calabash-android-enter-text-from-keyboard-using-adb/ by Balazs Balazs aka krazyrobot His solution is to use send keycodes, for the home button that is KEYCODE_HOME. Wrapping that into calabash would give you: system("adb shell input keyevent KEYCODE_HOME") Again I have not tried this, but it sounds like a solution.

Not Showing Any Sign of Menu Button when there is not any default menu button in devices

别等时光非礼了梦想. 提交于 2019-12-06 12:11:32
问题 I am Working on One Application which has Settings Screen which Opens When User Click on OptionMenu Shortcut which shows on Devices as Default Button or any other Sign. it Works fine when there is default menu button in device but not getting any Sign for Menu Option when there is not any default menu button in devices. My Code is as Below: @Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_setting, menu); return true; } @Override public boolean

camera activity does not return to the previous/caller activity

不打扰是莪最后的温柔 提交于 2019-12-06 11:52:39
I read an text input from the user, this input i use it as a name of a picture i'm taking by the camera. i store this name and the path of the image name into Sqlite Database. what I'm trying to do is, after clicking OK to accept the taken picture, i want the saved path to be displayed in a toast. the problem is, when I click OK to accept the picture, nothing is being displayed and i cant switch from the camera activity to the activity that called the camera activity"the previous activity" Note: I'm using the emulator not a real device. OnClickListener btn_TakePictureListener = new

“no such table” issue in android on some devices

时光怂恿深爱的人放手 提交于 2019-12-06 11:25:03
I am using an external database in android app and it is working fine on all emulators and on samsung real devices. But when I am checking on the Acer smart phone, my application going crash with following exception: android.database.sqlite.SQLiteException: no such table: It is strange to me. I have checked under the data folder in file explorer where my databases and all tables are present. I am not getting why it is happening. Please guide me. Thanks in advance Code of sql helper class is as following: public class MyDatabaseHelper extends SQLiteOpenHelper { // System path of application

How can I fix frequent Out Of Memory Errors on Android emulators?

旧街凉风 提交于 2019-12-06 11:20:09
问题 I test a mobile app and have been struggling with constant crashes of the app when I use an Android emulator. I have no problem on physical Android devices, but emulators crash several times per day. The app will crash quite consistently once I find a crash-prone part of the app's "workflow". But exactly where in the app will trigger a crash seems to vary from version to version. Here is the crash report : Android: 2.3.7 Model: Full Android on x86 Emulator java.lang.OutOfMemoryError: bitmap

How to show different Activities in Fragment implementation?

元气小坏坏 提交于 2019-12-06 11:13:35
It is my first time using android fragment. I am following this tutorial to implement a fragment. Everything is fine with this tutorial, I successfully get the result like below: In the tutorial, the DetailsFragment simply shows a TextView containing the text of the currently selected item. That's the right part shows just some texts. My question is how to show different activities on the right side instead of text views. What I mean is illustrated in the following image, for example, the area of " 1 " in the image is an activity. How to show different activities when a list item on the left