emulation

Android app working on emulator but not on real device

久未见 提交于 2019-12-17 17:07:01
问题 Just wrote this simple app for testing: one button that displays date and hour, and another button that selects a random color and shows it. It works fine on Emulator but the buttons do nothing (don't work) when i try to run the app on a real device. Can someone help me understand why? MainActivity.java: package yuvallevy.allyouneedapp; import android.graphics.Color; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget

List of devices support HCE?

ⅰ亾dé卋堺 提交于 2019-12-17 10:34:36
问题 As more and more devices have KitKat, I'm trying to compile a list of devices support HCE. Does anyone have the list? Feel free to add comments to contribute to this list. Below is what I have so far: Notes: Not all KitKat devices support HCE. To detect HCE support, use this code snippet: boolean isHceSupported = getPackageManager().hasSystemFeature("android.hardware.nfc.hce"); Some people reported that KitKat HCE phones has "Tap & Pay" in NFC Setting. I don't know if using "Tap & Pay" as HCE

Android emulator not rotating to landscape

♀尐吖头ヾ 提交于 2019-12-17 09:30:28
问题 When i try to switch the orientation of my emulator, the emulator window rotates and the orientation of the emulator screen stays as it were. Can anyone tell me what is the reason for this ?I have tried all the answers from StackOverflow and nothing seem to help 回答1: Some of the emulator targets like 4.4 (API level 19) and 2.3 have a bug. Change your emulator to target version 4.2 or 4.3 and try to change the orientation. See the history of this bug: https://code.google.com/p/android/issues

How to resize the AVD emulator (in Eclipse)?

杀马特。学长 韩版系。学妹 提交于 2019-12-17 05:31:25
问题 I'm writing my first Android app for a small business that has some Droid phones. I set up an AVD for the phone with the right resolution: 854 pixels high. I'm working on a MacBook Pro with a max screen resolution 900 pixels high, so when the emulator starts up, the bottom is cut off. Is there a way to scale the emulator display down to 75% or something so that it fits on my screen? Any other solution (other than running everything on the phone itself)? 回答1: From within Eclipse : Go to Window

GPU Emulator for CUDA programming without the hardware [closed]

三世轮回 提交于 2019-12-17 03:22:44
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 months ago . Question: Is there an emulator for a Geforce card that would allow me to program and test CUDA without having the actual hardware? Info: I'm looking to speed up a few simulations of mine in CUDA, but my problem is that I'm not always around my desktop for doing this development. I would like to do some work on

Manually put files to Android emulator SD card

只谈情不闲聊 提交于 2019-12-17 02:58:11
问题 I'm just having trouble with getting my emulator SD card work... I created a new AVD device with a new SD card. So how to put data onto it? I found the "correct" file to be mounted on Daemon tools, but is corrupt or simply not readable... It would be great if you have any idea :) 回答1: If you are using Eclipse you can move files to and from the SD Card through the Android Perspective (it is called DDMS in Eclipse). Just select the Emulator in the left part of the screen and then choose the

XCode 3.2 - make emulator to open in iPhone mode

空扰寡人 提交于 2019-12-14 04:07:36
问题 I've installed XCode 3.2 on top of Snow Leopard 10.6.2. When trying to "build and run" an application created from XCode template, the emulator is always opened in iPad mode. When choosing "iPhone" from the emulator menu, it changes its look but next time it is opened as iPad again. How to cause the emulator to run in iPhone mode ? 回答1: It seems that it was answered here Setting Xcode's target to iPhone NOT iPad 回答2: The XCode 3.2.3 comes with SDK 4.0, which is the only choice for building

Proxy and SSL connections in android emulator

久未见 提交于 2019-12-14 03:57:46
问题 Would anyone know how to configure the emulator to make ssl connections via a proxy ? I use the -http-proxy option when starting the emulator. I can access any website except those with https protocol. Any idea ? 回答1: I've experienced similar problems with Android during a web project lately. The site works fine using ordinary HTTP from Android but when using HTTPS it works now and then. Some requests just fail and we get "Web page not found"-errors. The connections are sometimes very slow.

NullPointerException In Ecclipse Android Sdk Unfortunately myapp has stopped

家住魔仙堡 提交于 2019-12-14 03:56:53
问题 I am a beginner. Stuck on this NullPointerException. This is a simple program of buttons. As soon as i run as android application, the project opens and immediately gets closed by displaying unfortunately my app has stopped. 04-15 17:40:05.656: D/AndroidRuntime(599): Shutting down VM 04-15 17:40:05.656: W/dalvikvm(599): threadid=1: thread exiting with uncaught exception (group=0xb2adcd58) 04-15 17:40:05.666: E/AndroidRuntime(599): FATAL EXCEPTION: main 04-15 17:40:05.666: E/AndroidRuntime(599

How to access the internet with an Emulator simulating Android Tablet without GSM

别说谁变了你拦得住时间么 提交于 2019-12-14 02:27:31
问题 I'm trying to test an application that has on the Manifest: <uses-feature android:name="android.hardware.telephony" android:required="false" /> <uses-permission android:name="android.permission.CALL_PHONE" /> This was done to support Tablets without GSM capabilities. The problem is... I don't have a physical device to test, and I need to access the internet from the app. Whenever I create a emulator without GSM support... I cannot access the internet. Does anybody have a clue on how to access