emulation

how to install android api demo app into my phone

心不动则不痛 提交于 2019-12-18 16:47:31
问题 I'm learning android development.There is an apidemo app installed in the android emulator. I'd like have it installed in my real android phone so that I can use it without starting the emulator . How to do that ? 回答1: Api Demo is part of the SDK Go to where your SDK is installed samples/android-X/ApiDemo (X being the version of the sdk) then install that project on your phone 回答2: In Eclipse Android plugin (ADT) there is a wizard for creating the sample projects. In eclipse Go to: File ->

Android: Android 4.1 Emulator Invoking onDateSet Twice from DatePicker Dialog

最后都变了- 提交于 2019-12-18 14:14:38
问题 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,

unlock android emulator from cmd line

被刻印的时光 ゝ 提交于 2019-12-18 13:36:29
问题 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? 回答1: On emulator try adb shell input keyevent 82 . This keyevent execute KEYCODE_MENU and unlock a screen. 回答2: 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

Android Emulator Reports 600x1024 MDPI as XLarge?

☆樱花仙子☆ 提交于 2019-12-18 12:29:45
问题 I am currently trying to test an existing application for compatibility with the soon to be released Amazon Kindle Fire tablet. They say to set the emulator at 600x1024 and LCD Density to 169 (https://developer.amazon.com/help/faq.html?ref_=pe_132830_21362890#KindleFire although in email they said 160 instead of 169) and that it should report out as being "large" and not "xlarge" (this I have from a back and forth email exchange with their support team where I'm complaining it does not work).

How do I take a snapshot of the Android emulator's state?

北慕城南 提交于 2019-12-18 12:08:05
问题 When I launch the Android emulator from the Android SDK and AVD Manager I can check the boxes Launch from snapshot and Save to snapshot so that the emulator's state is saved when I close it and restored again when I launch it. This is great because I don't have to wait for Android to boot each time the emulator is launched. However, I also want to take snapshots of the emulator's state during a session and later during the session revert back to the snapshot, for example to re-run my tests.

Importing gmail contacts on android emulator

女生的网名这么多〃 提交于 2019-12-18 11:53:59
问题 I want to import contacts from my gmail account on android emulator in the same way you can do it on T-Mobile G1 phone . Is it possible? [I have this question too: pentium10] I am wondering if there is a way to do all this? 回答1: I don't know about setting up a permanent sync, but you can do a one-time import of your contacts relatively simply. Go to your gmail account using a web browser, click 'contacts' on the left sidebar. Select all the contacts you want on your phone, and choose to

Android emulator system partition no space from start

两盒软妹~` 提交于 2019-12-18 11:17:07
问题 I have a weird problem with the Android emulator. I have created a virtual device through Android AVD manager (newly created emulator with platform 2.1 and API level 7). I have tried with standard settings and with added hardware parameter for larger (256 MB) device RAM size but nothing changed. I need to come files to the system partition to test a project (called haggle), but for some reason the system partition has no space from start. aa a@aaa /home/haggle-0.2-android $ adb -s emulator

What's the purpose of instructions for loading a register to itself?

天涯浪子 提交于 2019-12-18 07:35:28
问题 While looking through the Gameboy's instruction set, I came across instructions such as: LD A, A LD B, B LD C, C LD D, D ... Each of these instructions has it's own opcode in this table, which makes me think they are of some importance due to the restrictions on the number of possible opcodes. I first thought that it might be dereferencing a pointer in that register and storing the value at that pointer (like in this question), but in an emulator, LD A, A is implemented as: Z80._r.a = Z80._r

Facebook android native application not working on actual device

点点圈 提交于 2019-12-18 06:59:53
问题 I developed an application which uses we can login to facebook and the logged user details can be stored. it is working fine when we run the application on emulator , but when we run the same application on android device it does not run .It only show the loading again and again but not showing the login window. I used the appID which facebook provided me. I used the hashkey as directed in facebook development section. Overall application (i.e. facebook login window, returning the info of

Android emulator no internet connectivity

雨燕双飞 提交于 2019-12-18 05:22:43
问题 I'm running under windows xp sp3 and i have no firewall, no proxy, my internet connection works perfectly but android emulator have no connection (browser and app), i've tried some solutions like this one but infortunately not work. For information, my emulator used to work and this problem occurs suddenly.. Please help with this. Thanks 回答1: Start your from command prompt prompt like your_path_of_android_sdk\tools\emulator -avd <AVD Name> -dns-server 8.8.8.8 I think this will help you out as