emulation

Android: Android 4.1 Emulator Invoking onDateSet Twice from DatePicker Dialog

喜你入骨 提交于 2019-11-30 11:12:34
My application was working perfectly on my Android 2.2 emulator. I then decided to test on an Android 4.1 emulator. The DatePickerDialog looks a little different and for some reason when I press on "Done", the onDateSet() listener gets called twice and causes problems in my application. I know this because the log shown below in the code is printed twice whenever I click on "Done" mDateSetListener = new DatePickerDialog.OnDateSetListener() { @Override public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) { Log.v("onDateSet", "ENTERED"); //rest of code... }}; Android

unlock android emulator from cmd line

♀尐吖头ヾ 提交于 2019-11-30 10:34:31
I would like to run android emulator from cmd line - unlock it and control it. Is this possible ? I know how to operate from eclipse? On emulator try adb shell input keyevent 82 . This keyevent execute KEYCODE_MENU and unlock a screen. You can interact with the emulator via its console interface. If you ever wondered why your emulator started with a number like 5554 - that's because that's the port the emulator listening on. You can find the port for running emulators with the adb devices command. It will have output like this: C:>adb devices List of devices attached emulator-5554 device So

How to reboot emulator to test ACTION_BOOT_COMPLETED?

帅比萌擦擦* 提交于 2019-11-30 10:29:47
问题 Well, I have searched a lot. People say that I need to close the window of emulator to close it. However, I need to reboot the emulator to catch ACTION_BOOT_COMPLETED by my BroadcastReceiver. How can I do that? 回答1: You can use the following command from adb: adb shell am activity/service/broadcast -a ACTION -c CATEGORY -n NAME for example: adb shell am broadcast -a android.intent.action.BOOT_COMPLETED -c android.intent.category.HOME -n package_name/class_name Note that class name and package

Intel X86 emulator accelerator (HAXM installer) VT/NX not enabled

时间秒杀一切 提交于 2019-11-30 10:25:40
问题 I`m asking how to enable my VT/NX for my MacBook, when I try to use X86 emulator, it appears to me that VT/NX NOT ENABLED, it had never seem this when I used 10.9 system, after I update my MacBook to Yosemite, it appears to me. When I try to start my x86 emulator, it tells me: Starting emulator for AVD 'X86' emulator: ERROR: x86 emulation currently requires hardware acceleration! Please ensure Intel HAXM is properly installed and usable. CPU acceleration status: HAX is not installed on this

OpenGL vs OpenGL ES 2.0 - Can an OpenGL Application Be Easily Ported?

微笑、不失礼 提交于 2019-11-30 10:25:38
问题 I am working on a gaming framework of sorts, and am a newcomer to OpenGL. Most books seem to not give a terribly clear answer to this question, and I want to develop on my desktop using OpenGL, but execute the code in an OpenGL ES 2.0 environment. My question is twofold then: If I target my framework for OpenGL on the desktop, will it just run without modification in an OpenGL ES 2.0 environment? If not, then is there a good emulator out there, PC or Mac; is there a script that I can run that

Is it possible to install APK file if more than one emulators/devices are connected [duplicate]

青春壹個敷衍的年華 提交于 2019-11-30 10:20:07
问题 This question already has answers here : How to use ADB Shell when Multiple Devices are connected? Fails with “error: more than one device and emulator” (12 answers) Closed 3 years ago . I know how to install the apk file in to the emulator by command prompt and all that. But i want to know is it possible to install same apk file in to multiple emulator by giving any specific name ? Actually i have to test one apk file in to many device. and for that i have started many device. I know how to

Android emulators with phone numbers?

瘦欲@ 提交于 2019-11-30 09:59:26
I'm working on a client-server Android application and trying to figure out how to identify different phones/users to the server unambiguously. My first attempt would be to use the phone number on the SIM card. Although now that I think about it, how common is it these days that your phone number changes when you e.g. change carrier? I guess it depends from country to country etc. Anyway, I've been trying to figure out, since I don't have actual Android phones, how to change the phone number of the emulator phone to simulate different users. Is it possible or should I just think about

Android - Server Socket

杀马特。学长 韩版系。学妹 提交于 2019-11-30 09:55:46
I have few question regarding Socket Communication in Android. 1)I have developed server socket app for android that listens to port 8888. a) When i host my server on the emulator I'm unable to communicate to it through Client application that I have on my PC since both (Emulator & Client) app are on my laptop & on the same network i think that they should be able to communicate with each other. b) When i deploy the same server app on my android mobile device and try to communicate it through the same Client Application that I have on my PC, the client application gives a timeout exception as

Android webcam enable in emulator

♀尐吖头ヾ 提交于 2019-11-30 08:32:06
Hai I am new to the Android. I am using Android4 sdk. I can't enable webcam in Android emulator. Can anyone tell how enable it. Thanks. There is a way to get this working use the Android Virtual Device Manager. You need to edit your AVD so that in the hardware section either "Configures camera facing front" or "Configures camera facing back" are available. One, but not both, of the values for these properties should be set to "webcam0" (or whatever is available). Then start your virtual device and use your webcam as an emulated camera. If you have both properties set to "webcam0" then you'll

Non-browser emulation of JavaScript - is it possible?

半世苍凉 提交于 2019-11-30 08:23:36
问题 I have a new project I am working on that involves fetching a webpage, (using PHP and cURL) parsing the HTML and javascript out of it and then handling the data in the results. Basically I hit a brick wall when the site uses javascript to fetch its data by AJAX. In this case, the initial data will not appear in the fetched page unless the javascript is run in a browser. Are there any PHP libraries for this? (I suspect not, but I could be wrong.) I would really rather build this as a server