android-emulator

Emulate Samsung Galaxy Tab

微笑、不失礼 提交于 2020-01-08 19:40:14
问题 I would like to test my application with new Samsung Galaxy Tab tablet. What parameter should I set in emulator to emulate this device? What resolution and density should I set? How can I indicate that this is large screen device? What hardware does this tablet support? What is max heap size? Which Android version? 回答1: UPDATED: Matt provided a great link on how to add emulators for all Samsung devices. OLD: To get the official Samsung Galaxy Tab emulator do the following: Open the Android

Copy a shell script to android out folder and execute it during boot

痴心易碎 提交于 2020-01-07 05:08:27
问题 I have a shell script which I need to copy to anywhere in out folder during Android build process so that it appears somewhere in Android RootFS. Now, once it is copied after Android build process and becomes part of Android RootFS, I want to execute the shell script during boot time. How can I do it? 回答1: Well, I created a root folder in AOSP or anywhere, then created Android.mk and copied the script to be copied to out folder. Added below comments in Android.mk $(shell cp -rf $(LOCAL_PATH)

android service using SystemClock.elapsedRealTime() instead of SystemClock.uptimeMillis() works in emulator but not in samsung captivate?

非 Y 不嫁゛ 提交于 2020-01-07 03:25:08
问题 First question here in stackoverflow :) I'm running a little android 2.2 app to log cpu frequency usage. It is set up as a service that will write the data every 10 seconds using a new thread. The code for that part is very basic (see below). It works fine, except that it would not keep track of time while the phone is asleep (which, I know, is the expected behavior). Thus, I changed the code to use SystemClock.elapsedRealTime() instead. Problem is, in emulator both commands are equivalent,

Android Wear notification not showing

倖福魔咒の 提交于 2020-01-06 21:36:25
问题 Hi I'm writing an Android Wear app that allows the user to control a music player from their watch. I'm trying to do it with a notification with two action buttons. Below is the code that creates/updates the notification when the currently playing song changes, it is from OnDataChanged() from the WearableListenerService . The data arrives on the emulator as expected and the notification builder is constructed correctly, as I can see it in the debugger. Also the final log line is executed and

Android Wear notification not showing

旧街凉风 提交于 2020-01-06 21:36:09
问题 Hi I'm writing an Android Wear app that allows the user to control a music player from their watch. I'm trying to do it with a notification with two action buttons. Below is the code that creates/updates the notification when the currently playing song changes, it is from OnDataChanged() from the WearableListenerService . The data arrives on the emulator as expected and the notification builder is constructed correctly, as I can see it in the debugger. Also the final log line is executed and

How to change color of multiple choice to show correct answer

早过忘川 提交于 2020-01-06 20:12:45
问题 Im doing a multiple choice apps with 4 choices. How to prompt the user of the correct answer if he pressed the incorrect answer (at the same time).Here is a sample of the code. //Question/Answer options listener optionOne.setOnClickListener(this); //On First Option selection optionTwo.setOnClickListener(this); //On Second Option selection optionThree.setOnClickListener(this); //On Third Option selection optionFour.setOnClickListener(this); //On Forth Option selection skip.setOnClickListener

Getting Force Close while running app on Emulator

廉价感情. 提交于 2020-01-06 15:29:10
问题 Sometimes getting Force Close message or sometimes, without showing any message my app will close, only showing white plan screen nothing else, but earlier i was getting each and every thing which i have made, but now getting force close problem, code is ok not showing any error, please suggest what step i need to take, and see what logcat report says:- 10-18 13:41:34.202: I/dalvikvm(709): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:500) 10-18 13:41:34.202: I/dalvikvm

How to sniff non-http traffic (sockets) on Genymotion/Android Emulator?

限于喜欢 提交于 2020-01-06 07:04:33
问题 I'm trying to reverse engineer one Android app's traffic and it's using sockets, xmpp or something else, but not http(s) on some features. I know this because Charles does not see some requests, but data is definitely coming from the server for sure (e.g. chat messages). Android allows to set http(s) proxy, not socks. ProxyDroid doesn't work on genymotion, because it's x86 and ProxyDroid doesn't support that. Tried Drony app on genymotion, which supposedly should allow socks proxy, but once I

Android studio Emulator: Process finished with exit code -1073740791 (0xC0000409)

♀尐吖头ヾ 提交于 2020-01-06 05:24:44
问题 I am trying to create a React Native app on Android emulator. However, I keep getting the error message below when trying to start up the emulator. It crashes with the following: 16:07 ADB rejected shell command (getprop): closed 16:07 Emulator: Process finished with exit code -1073740791 (0xC0000409) Is there a way to fix this issue? Sorry I am new to android studio 回答1: Try to restartthe adb server. Go to C/users/(username)/AppData/Local/Android/Sdk/platform-tools In the command prompt by

Android studio Emulator: Process finished with exit code -1073740791 (0xC0000409)

天涯浪子 提交于 2020-01-06 05:24:28
问题 I am trying to create a React Native app on Android emulator. However, I keep getting the error message below when trying to start up the emulator. It crashes with the following: 16:07 ADB rejected shell command (getprop): closed 16:07 Emulator: Process finished with exit code -1073740791 (0xC0000409) Is there a way to fix this issue? Sorry I am new to android studio 回答1: Try to restartthe adb server. Go to C/users/(username)/AppData/Local/Android/Sdk/platform-tools In the command prompt by