android-emulator

Bad Request when trying to connect to ISS 7 Express from android emulator

最后都变了- 提交于 2019-12-11 06:29:56
问题 In my IIS i have created Web Api and it's Project Url is http://localhost:54444. I am albe to connect to this Url from my browser in Windows8, however I am not able to do so in my android emulator browser via http://10.0.2.2:54444 . My android browser is able to connect to google.com. I am also trying to make an client in Eclipse using http://loopj.com/android-async-http/ library: Log.v("bopzy_debug", "Testing HTTP Connectivity"); System.out.println("123"); AsyncHttpClient client = new

deviation in gps coördinates android emulator

亡梦爱人 提交于 2019-12-11 06:29:01
问题 I was wondering if there is any deviation or bug in de android 1.6 emulator on GPS coordinates. when I search by Google maps on the GPS coordinates 51.501563,-0.12534 then I get "Canon Row" in London, but when i put this coordinates in the emulator( geo fix -0.12534 51.501563 ) the the emulator shows in Google maps(on the emulator) a different location(A301 bridge). 回答1: The geo fix command of the emulator isn't accurate enough for precise locations. 来源: https://stackoverflow.com/questions

How can I create layout for both 320dp and 360dp?

守給你的承諾、 提交于 2019-12-11 06:28:09
问题 I'm very disappointed. I just finished my project based on 360dp for "normal screens", but when I tried to run in Motorola Atrix I had a surprise. Motorola Atrix is 360dp instead 320dp, because his width is 540px. Now I'm breaking my head to find out that problem to be resolved. How can I create a layout for 360dp? I tried all of these: res/values-sw360dp res/layout-sw360dp main.xml <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res

Android emulator is not listening to port while starting

情到浓时终转凉″ 提交于 2019-12-11 06:27:57
问题 Jenkins cannot run an android emulator. [android] Using Android SDK: /opt/android-sdk-linux [android] Creating Android AVD: /var/lib/jenkins/.android/avd/hudson_en-US_240_WVGA_android-23_google_apis-x86_64.avd [android] /opt/android-sdk-linux/tools/android create avd -f -a -s WVGA800 -n hudson_en-US_240_WVGA_android-23_google_apis-x86_64 -t android-23 --abi google_apis/x86_64 $ /opt/android-sdk-linux/platform-tools/adb start-server * daemon not running. starting it now at tcp:5837 * * daemon

Android emulator crash linux with error?

我只是一个虾纸丫 提交于 2019-12-11 06:24:50
问题 Basically, I've been using Ubuntu with Android Studio, I have a very simple App which I am attempting to run on an emulator. Now, the app actually starts inside the emulator just fine but the issue arises when the on-screen keyboard shows up. Once it has shown up, and you click a key, the emulator crashes with this error: emulator64-arm: ../../sdk/emulator/opengl//host/libs/Translator/include/GLcommon/GLutils.h:48: unsigned int SafeUIntFromPointer(const void*): Assertion `(uintptr_t)(ptr) ==

Finishing an activity from BroadcastReceiver - Android [duplicate]

。_饼干妹妹 提交于 2019-12-11 06:21:34
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Finishing an Activity from a Broadcast Receiver Please observe the scenario I have: Class A extends Activity Class B extends BroadcastReceiver How can I finish Activity A from Class B's onReceive method? Any help is much appreciated. 回答1: The best way to deal with this is to register a broadcast receiver in code inside your activity and listen for that particular broadcast message for which you want to finish

Why are my SharedPreferences entries not being cleared upon reinstalling?

若如初见. 提交于 2019-12-11 06:17:31
问题 Upon reinstalling my app the code within my if statement is being accessed despite my SharedPreferences entry not yet having been created. I'm using an emulator with eclipse, does the data need to be cleared some other way than reinstalling? Thanks prefs = getSharedPreferences("appData", 0); Gson gson = new Gson(); String gsonStr = prefs.getString("playerString", null); if(gsonStr != null) { //This code is being accessed on the apps first onCreate() call prior to being reinstalled Player[]

Android Galaxy S4 Emulator Not Opening

北战南征 提交于 2019-12-11 06:16:36
问题 I've created simulator for S4 as described in https://stackoverflow.com/a/16646536/206809. My PC configuration is Core i5 2.5 GHz and 8GB RAM 64Bit Windows 8 still I'm unable to load the emulator. Are you able to run the same ? Please suggest if I'll require higher config. Attached my Emulator Config for reference When I'm running same it stuck in this screen for a long and then time out. 回答1: tick "Use Host GPU" and try. Some times it may work. Not sure. 回答2: Try this one: I have opened

Android App Won't Display in Emulator

强颜欢笑 提交于 2019-12-11 06:15:55
问题 Firstly, I want to state that I'm a novice when it comes to Android (or Java, for that matter) so there is certainly a strong possibility I'm doing something wrong at a very basic level - please keep this in mind. I will include basically the whole source as I have no idea where the problem is based (and before anyone suggests I try using Google, I've already spent the last couple of days doing that). The problem occurs when I try to run or debug the app where I receive the following error

How to Download/Downgrade Android emulator manually

依然范特西╮ 提交于 2019-12-11 06:09:21
问题 I updated Android Studio with its components last week. But I keep facing troubles with emulator. Before updating everything was fine. Now i just want to get my old emulator back. After searching I came across this answer here . The link to manually download is like http://dl.google.com/android/repository/emulator-windows-4266726.zip Answer says Basically, just put the # (the one in major.minor.patch-#) along with darwin/windows/linux if you'd like to download any previous build. I just don't