android-emulator

Runing the emulator makes my whole computer crash

亡梦爱人 提交于 2019-12-11 18:01:00
问题 Android promted me to upgrade to 3.5 today so I have. Even since I've been having issues with the AVD and running my code on the emulator. I've posted about my previous issues here After those solutions still didn't allow me to run the app (different errors) I've decided to just uninstal and reinstall Android studio. Now, every time I try to run it my whole computer crashes. It starts with this screen popping (sorry for the terrible photo, had to be quick). It says emulator warning: crash

Android - Form based authentication

ぐ巨炮叔叔 提交于 2019-12-11 17:48:46
问题 I need to upload some data on a site, using a POST request. I know to use HTTP client to execute a POST request The problem is that in order to do this, you should authenticate first. The site is a simple page prompting for a username and a password. I assume it stores a cookie in the browser and checks subsequent requests to see if I'm already authenticated. But I don't have a concrete idea how to implement this on Android. The client just gave me this: URL to upload: http://xyz.com/?page

Android.view.InflateException

久未见 提交于 2019-12-11 16:55:41
问题 I am new in Android Programming. I am trying to simulate a program for temperature metric conversion. While executing the program i am getting runtime exception java.lang.RuntimeException: Unable to start activity ComponentInfo{btn.pkg/btn.pkg.contemp}: android.view.InflateException: Binary XML file line #2: Error inflating class <unknown> 06-14 17:46:26.132: ERROR/AndroidRuntime(360): Can you advise me here The complete thread dump is 06-14 17:46:26.132: ERROR/AndroidRuntime(360): FATAL

GeoLocation App not working on Android Emulator

删除回忆录丶 提交于 2019-12-11 16:53:20
问题 I am testing a Geo-location App using an Emulator created in Android Studio. I have passed the latitude and longitude using DDMS which seems to work. I confirmed it by going to Google and checking the location. The location changes based on any changes on the Lat/Long. However, the App under test is not getting any location information. The App displays that the location services is not turned on when in fact it is turned on and working fine. Is there a specific command that can target the

Unfortunately android app has stopped and works on android device [duplicate]

社会主义新天地 提交于 2019-12-11 16:49:43
问题 This question already has answers here : targetSdkVersion setting (5 answers) Closed 5 years ago . For some reason everytime I try to open my android app in an emulator it says it has stopped however it runs perfectly on my android device. I am not sure if it is the emulator or something in my manifest file. Here is my logcat: 07-12 22:37:34.900: E/AndroidRuntime(696): FATAL EXCEPTION: main 07-12 22:37:34.900: E/AndroidRuntime(696): Process: com.example.firstapp, PID: 696 07-12 22:37:34.900:

Android: my application won't run because I need to handle an unknownhostexception. when i do it crashes

夙愿已清 提交于 2019-12-11 16:11:23
问题 Im writing an Android application that needs to access data stored in a mongodb data base. In my on create method I keep on getting an "UnknownHostException" error. I have added the internet permission to my manifest file, restarted my developing machine, and applied a try/catch. Now, the application crashes when I run it (right as the application is opened). When I used the class I wrote for the database (CrumbsDb) outside of android, it works as intended. Please help. Sorry if my question

Contacts created with Android emulator (2.0) not being seen

吃可爱长大的小学妹 提交于 2019-12-11 15:42:53
问题 I created contacts with the emulator for v 2.0. However, I am unable to see these contacts. One of the errors I get even before my code that executes read contacts is: Cannot determine the default account for contacts compatibility See below for full stack: E/ContactsProvider( 109): Cannot determine the default account for contacts compatibility E/ContactsProvider( 109): android.accounts.AuthenticatorException: bind failure E/ContactsProvider( 109): at android.accounts.AccountManager

Generated system.img is not running on emulator. Api 25

廉价感情. 提交于 2019-12-11 15:41:32
问题 So I am trying to replace some small text files and add some apks into the system files of android. I am working on an emulator for api levle 25 x86 and no gplay. The system.img file is of around 2.5 gb (274783648 bytes ) First I unpacked the system.img using with the help of these files here https://github.com/nlitsme/extfstools and ran the code mentioned to extract the files sudo ./ext2rd system.img ./:savedir The files I got were of around 650 mb. After making the changes I tried to pack

Ryzen 3 with VS android emulator

百般思念 提交于 2019-12-11 15:28:54
问题 I just cant manage to start them. I have read several threads here. I need more guides to try. Ive tried genymotion , visual studio. I want to code in C#. My processor is the Ryzen 3700x. My error codes genymotion telling me about virtualization , wich is on from bios. And in windows. Hyper-V is OFF. I can manage to start android emulator with android 4. Not higher in genymotion. And in VS i cant run my apps at all. I simply need help to get them up and running , you have new ryzen ? Whats

TextView not displaying data from xml file

那年仲夏 提交于 2019-12-11 15:24:52
问题 Merged with Need help in reading an xml file. I am trying to retrieve some data from my xml file. Below is the code which should be working but in this case it doesn't. I am not getting errors but data just doesn't gets displayed.Please review this code and tell me what's wrong here. (I am trying to look at an id, if it matches a certain digit than display text) Thanks. String stringXmlContent; try { stringXmlContent = getEventsFromAnXML(this); tv.setText(stringXmlContent); } catch