android-emulator

Error of the emulator: “Unable to access 'C:\Users\…\.emulator_console_auth_token': emulator console will not work”, with username in Cyrillic

眉间皱痕 提交于 2021-02-18 08:45:50
问题 My username is written in Cyrillic which is why when I run the android studio emulator I get an error: Emulator: ERROR: Unable to access 'C:\Users\Александр.emulator_console_auth_token': emulator console will not work Is there any way to migrate the path to this file? 回答1: I solved the same problem with this video How to Rename the User’s Folder by changing Windows username to non Cyrillic . Same video in Russian language Как переименовать папку пользователя In my opinion, it is

ubuntu 16.04.1 LTS crashes when starting android emulator

ぐ巨炮叔叔 提交于 2021-02-18 04:58:45
问题 I have tried both the AVD on Android studio and Genymotion emulator. My ubuntu 16.04.1 crashes (freezes) when starting the android emulator. My computer has 16G memory. This happens after I installed the latest updates for my ubuntu in 19 Sept 2016. 回答1: I had same problem. Select in menu "Emulated performance" the "software", no automatical or hardvare 回答2: I had the same problem. You are probably using nouveau display driver instead of NVIDIA driver. You can check your driver with: lshw -c

Make two genymotion Android emulator work in one SAME WiFi work

不羁的心 提交于 2021-02-11 08:50:39
问题 I am developing an Android file sharing APP in WiFi LAN. Therefore I'd like to make my two genymotion emulator(in one host Windows PC) work in the same WiFi network, but in default these two emulator have both 10.10.3.15 as local IP, which means in different network. So is there any possibilities or solutions to make it? 回答1: You can setup your two Virtual Device in bridge mode as explained here https://docs.genymotion.com/Content/03_Virtual_Devices/Managing_virtual_devices/Configuring_a

Connection to localhost on the Android emulator

佐手、 提交于 2021-02-10 06:25:14
问题 I can not connect to localhost in the android emulator. The API I have built in Net Core 2 and running in VS2017 (Windows 10) adress http://localhost:50069/api/values What I checked and does not work (does not react): http://10.0.2.2:50069/api/values http://ip:50069/api/values (ip -> ipv4 address from ipconfig) http://127.0.0.1:50069/api/values http://0.0.0.0:50069/api/values I've already checked out all the advice on what was on the net and nothing 回答1: I had same problem with ASP.net. I

Camera intent permissions in Android 10

╄→尐↘猪︶ㄣ 提交于 2021-02-09 10:41:44
问题 I am having an unusual issue when dealing with using the camera app with an implicit intent in Android 10. I am using the Big Nerd Ranch Android Programming textbook (4th Edition) chapter 16 to learn how to take pictures and store them in an app. The book walks through the process of setting up a FileProvider, granting the camera app permission to write to a specific URI, and then launching the default camera app using an implicit intent from MediaStore. After following the instructions in

Camera intent permissions in Android 10

≯℡__Kan透↙ 提交于 2021-02-09 10:39:20
问题 I am having an unusual issue when dealing with using the camera app with an implicit intent in Android 10. I am using the Big Nerd Ranch Android Programming textbook (4th Edition) chapter 16 to learn how to take pictures and store them in an app. The book walks through the process of setting up a FileProvider, granting the camera app permission to write to a specific URI, and then launching the default camera app using an implicit intent from MediaStore. After following the instructions in

How to detect another Android device?

旧城冷巷雨未停 提交于 2021-02-09 07:12:58
问题 I have a requirement that if I run my app in one Android device and then try to run the same app in another Android device I need to check first if its another device or not and if it is then I should continue. Could you please tell me if there is any way in which I can achieve this? Thank you. 回答1: you can use this: telephonyManager = (TelephonyManager) getContext().getSystemService(Context.TELEPHONY_SERVICE); telephonyManager.getDeviceId(); telephonyManager.getSimSerialNumber(); getDeviceId

How to detect another Android device?

狂风中的少年 提交于 2021-02-09 07:10:43
问题 I have a requirement that if I run my app in one Android device and then try to run the same app in another Android device I need to check first if its another device or not and if it is then I should continue. Could you please tell me if there is any way in which I can achieve this? Thank you. 回答1: you can use this: telephonyManager = (TelephonyManager) getContext().getSystemService(Context.TELEPHONY_SERVICE); telephonyManager.getDeviceId(); telephonyManager.getSimSerialNumber(); getDeviceId

How to detect another Android device?

依然范特西╮ 提交于 2021-02-09 06:59:19
问题 I have a requirement that if I run my app in one Android device and then try to run the same app in another Android device I need to check first if its another device or not and if it is then I should continue. Could you please tell me if there is any way in which I can achieve this? Thank you. 回答1: you can use this: telephonyManager = (TelephonyManager) getContext().getSystemService(Context.TELEPHONY_SERVICE); telephonyManager.getDeviceId(); telephonyManager.getSimSerialNumber(); getDeviceId