android-emulator

Sleep command for Android

梦想与她 提交于 2019-12-25 03:13:34
问题 I am writing a small program to periodically poll the RSSI of the WIFI connection. I am using SystemClock.Sleep(2000) in the program. The problem, I would like to display the RSSI every 2 seconds. But, currently, even though it polls every 2 seconds, the result is displayed only at the end of the loop. Here is the code snippet: for(int i=0;i<10;i++) { Date dt=new Date(); WifiInfo info = wifi.getConnectionInfo(); int rssi = info.getRssi(); textStatus.append("\n\nRSSI :" +Integer.toString(rssi)

Sleep command for Android

谁说胖子不能爱 提交于 2019-12-25 03:13:27
问题 I am writing a small program to periodically poll the RSSI of the WIFI connection. I am using SystemClock.Sleep(2000) in the program. The problem, I would like to display the RSSI every 2 seconds. But, currently, even though it polls every 2 seconds, the result is displayed only at the end of the loop. Here is the code snippet: for(int i=0;i<10;i++) { Date dt=new Date(); WifiInfo info = wifi.getConnectionInfo(); int rssi = info.getRssi(); textStatus.append("\n\nRSSI :" +Integer.toString(rssi)

retrieve the call number in my android APP

走远了吗. 提交于 2019-12-25 01:55:25
问题 I would like to get the number call when i receive a call in my app.I would like to retrieve it and store it somewhere. public void onCallStateChanged(int state, String incomingNumber) { super.onCallStateChanged(state, incomingNumber); ......... incomingNumber contains nothing. 回答1: Do you have the permissions? Note that access to some telephony information is permission-protected. Your application won't receive updates for protected information unless it has the appropriate permissions

Android application works fine in emulator but not in real device?

浪尽此生 提交于 2019-12-25 01:45:18
问题 I'm making a simple Music Player application. It already works perfectly on my emulator but after I install it on my device, it gives "The application MusicShare (process com.example.musicshare) has stopped unexpectedly. Please try again" . My device is a Galaxy S2 and I got the apk by taking it from the bin folder. I have tried using "Export w/o unsigned key and it cannot be installed instead. Here's the manifest : <manifest xmlns:android="http://schemas.android.com/apk/res/android" package=

Emulator Android 15 - black screen

夙愿已清 提交于 2019-12-25 01:22:36
问题 I can't get Emulators with Android 15 API working It just shows black screen. There is no any serious errors in the console, only about audio I tried x86 and arm Android 16 - 28 API works fine Android Studio 3.4.1 Build #AI-183.6156.11.34.5522156, built on May 1, 2019 JRE: 1.8.0_152-release-1343-b01 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Windows 10 10.0 回答1: Solution: is to support Android devices starting from 16 It's 2019 and I think we should not blame anyone Though Android

Android 2.1 Emulator Without Internet Connection

瘦欲@ 提交于 2019-12-25 01:21:35
问题 I have no Internet access in my Android Emulator. The app I am developing needs Internet connection, but the Android Emulator have no internet connection. I also tried to use the native browser of the emulator, but it also does not work. When I export my app to a real android, it works just fine. I already tried to press F8 to turn on and off the "3G connection" in the emulator. I already turned off the Windows Firewall, but it didn't work. Data: Windows 7 x64 Eclipse Plugin for Android

MyFirstApp installed on emulator but can't launch it

混江龙づ霸主 提交于 2019-12-25 01:09:01
问题 I'm going through the Android 'Building Your First App' tutorial and have gotten stuck trying to run the app. I created the app and emulator with Eclipse (Juno Build id: 20120920-0800 on OS X, default installation. The Android SDK, etc. was updated today). The app appears to be installed on the emulator. I.e. 'Home -> Menu -> Manage Apps' lists it and it's App info looks ok. (Total=24.00KB, App=24.00KB, USN storage app=0.00B, ...). However, it does not appear in the apps launch list (i.e. the

Why LayoutInflater does not work in my case?

可紊 提交于 2019-12-25 00:27:18
问题 My main.xml layout simply contains a button and a LinearLayout content_area , which shows below: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical"> <LinearLayout android:id="@+id/myBtns" android:layout_width="wrap_content" android:layout_height="fill_parent" android:orientation="horizontal" > <Button android:id="@+id/btn_one" android:layout_width="100dip" android:layout

Android Emulator for Xamarin in Visial Studio 2017 using Windows 7

十年热恋 提交于 2019-12-24 20:42:17
问题 I just started with Xamarin and installed it. The only way I could find to do this currently was by downloading Visual Studio 2017. I opened the program and went to run my first Xamarin Android program but there are no emulators available. I checked it out and from what I have read the new emulator only runs on Windows 8 and above. I am using Windows 7 64 bit. I am sure there is something simple I am missing. Is there any way to run other emulators for Android. I tried Genymotion which I used

Running Android emulator Hyper-V based on a Azure VM Windows Server 2016

柔情痞子 提交于 2019-12-24 19:01:07
问题 Our goal is to run UI tests with Appium on our CI build. But it seems that running the Android emulator (Hyper-V based) within virtual build machine (Windows Server 2016) on Azure might not be supported. So my question is, does Hyper-V based nested virtualization is supported from a Windows Server 2016 virtual machine on Azure ? note: using a CPU Android emulation is not an option 回答1: Yes, it is possible, you need to be on Dv3 or Ev3 SKU. https://docs.microsoft.com/en-us/azure/virtual