Now I'm facing an error while starting Xamarin Android Player.
Error : OpenGL server is unreachable. Please check that Xamarin Android Player is allowed through your firewall on public networks.
I'm using Windows8.1 (64-bit).
Xamarin Android Player is allowed on public networks.
The screen shots of the errors are attached with this.
Is there any way to get rid of this error !
Screen shot 01
Screen shot 02
Screen shot 03
I got this error all the time. What fixed it for me was closing adb.exe. Go to task manager and close adb.exe before restarting Xamarin.
If that doesn't work, try to reinstall the host only network adapters in Virtualbox. Open virtualbox -> File -> preferences -> Network -> Host only. And remove all the adapters. Then restart Xamarin. It will prompt to reinstall the adapters. Click Ok.
McAfee antivirus blocks Player if you have installed, I tried to stop and now it works well.
I had this same issue in mac OS, in my case I already had virtual box with different network configurations from previous VMs that were causing this issue.
To fix this I had to set the host only network to the appropriate values.
In the VirtualBox settings of the Android Emulator VM, inside the Network Tab -> Adapter 1 verify the name of your host-only adapter (in my case vboxnet0)
With that name in mind navigate to VirtualBox VM -> Preferences -> Network -> Host-only Networks and double click the one selected in step 1.
Set the following values:
Related
My Host OS is Windows 10 and I have installed VMware workstaion 12 player. On Guest VMWare Machine I have installed OS Windows 2008 Server R2.
I used to get internet on Guest(VmWare) Machine , Now it is not coming. When I checked "Local Area Connection" i found the message "Your computer appears to be correctly configured, but the device or resource (DNS server) is not responding"
Then I followed the steps mentioned in below link. Still there is no internet.
https://support.microsoft.com/en-in/help/2779064/your-computer-appears-to-be-correctly-configured-but-the-device-or-res.
Thanks and Rgds
Try to change NAT in network connection in your vmware settings.
If it works do below configuration to work it on bridge network. Go to Virtual Network Editor and do configure like in this image
I know, already much information appeared through this question. But unfortunately, taking into account them, I so not succeeded to start genymotion. Now, it installed genymotion 2.6 and virtualbox 5.0.10.
What I did for start:
1.Trying to install genymotion v2.0.3: geny start, but emulator not working and cant install device with android > 5
Trying to install other version of virtual box: from 4.3 to 5.0.11
Before, I had installed VMWorkstation. I removed it: no result
In bios virtualization is enabled
In VirtualBox in newtwork preferences trying to add new host-only network: I could not do it, because there was an error (Result Code: E_FAIL (0x80004005) Component: HostNetworkInterfaceWrap Interface: IHostNetworkInterface {455f8c45-44a0-a470-ba20-27890b96dba9})
trying to start with comparability with Windows 7/8/8.1 : no result
trying to start with administrator mode (geny and VMBox): no result
Maybe, someone faced with?
Hi this might help you:
You must go the VirtualMachine preferences under File in the menu. Then choose the Network setting, then Host-only Networks.
You can use the - button to delete all of the Ethernet Adapters that you have there.
Then create a new one and use the following settings:
IPv4 Address : 192.168.1.201 IPv4 network mask : 255.255.255.0
Then in the DHCP server tab: Address: 192.168.1.100 mask: 255.255.255.0 Lower address: 192.168.1.101 Upper address : 192.168.1.199
Check to see which Ethernet adapter # you have now set up - this might be important later on. Click OK for all the open boxes or save whatever you have.
Then try and run genyMotion again. This worked for me.
There is one more thing you may have to do if this still doesnt work. Go to Network and sharing centre . Change adapter settings and disable all the Ethernet connections EXCEPT for the Ethernet adapter you have just created.
I hope that helps Daniel
I want to develop a receiver for Google Glass which will detect the WiFi state of Glass and depending on that state show some information to user.
The receiver will listen for android.net.wifi.WIFI_STATE_CHANGED so that I can catch the event and after that check the status of the internet. It will not only detect the internet availability but will also show if Glass is timing out when pinging any specific IP address from any apps of glass.
I have tested the receiver on another Android device and it's working fine. But now I want to test the app on Glass. In order to test, I want to disable WiFi; however, Glass only shows options in settings for forgetting the current WiFi network and connecting to a nearby network.
How can I disable WiFi on Glass temporarily?
From default settings of glass its not possible to disable WiFi. To do the things you have to follow some instructions and install android default launcher and settings so that you can get the settings UI as your android device and do the rest of the desire works.
I am describing the whole process here :
At first you have to download these two apk.
Settings.apk - http://goo.gl/EqV8u
Launcher2.apk - http://goo.gl/ytfSn
After that you have to install these two apps into your glass by ADB :
1. adb install Settings.apk 2. adb install Launcher2.apk
Please be careful not to check the “Use as Default” box or you will not be able to access your Glass Settings until you uninstall Launcher2.apk.
After complete installing go to your settings and select launcher. After selecting android default launcher you will get the setting UI as like as your android device. Now you can do whatever you want like WiFi enable/disable, Bluetooth enable/disable and etc. But there have some issues which not working like Bluetooth Tethering, Data Usage , Airplane Mode and some more features.
Details process of using the settings and launcher and not working features.
If you want to uninstall the installed app at first see your app packages name and delete the app from the devices using below script :
adb shell pm list packages [see all of your installed app list]
abd shell pm uninstall -k com.packagename [your app by specific package name]
After above script you will get your previous glass settings.
Here is the excellent video where all these process has been described in nice way.
Voiding Your Warranty: Hacking Glass
Well as you already know we cannot disable/enable wifi and bluetooth through the native settings application(and I really don't know why). But what we know is that Google Glasses is a bit special Android device on which we can do a lot of stuff that can be done on a regular android device(such as a phone). Among "the stuffs" that can be done is enabling/disabling wifi and bluetooth programatically! In order to do that you must create your own small project and include the following lines:
WifiManager wifiManager = (WifiManager) this.getSystemService(Context.WIFI_SERVICE);
wifiManager.setWifiEnabled(true);
wifiManager.setWifiEnabled(false);
boolean wifiEnabled = wifiManager.isWifiEnabled();
//Disable bluetooth
BluetoothAdapter mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
if (mBluetoothAdapter.isEnabled()) {
mBluetoothAdapter.disable();
}
after running your small application that disables wifi and bluetooth you can navigate to your glass settings and see that both wifi and bluetooth are OFF. If you access one of them it asks you to turn them back on. At least it works for Google Glass 19.1 (this is my current version).
I made an app that should let you toggle wifi on and off right from the menu.
Either say "okay glass, power options" or navigate to the card under the "okay glass" menu structure.
Working on bluetooth for later. Based the app on the link below.
my app
https://github.com/afzaman/Power-Options-GoogleGlass
resources:
http://javatechig.com/android/how-to-turn-off-turn-on-wifi-in-android-using-code
I want to access Internet from my BB10 simulator.
I have changed the setting of the virtual machine and changed the Network Connection type from NAT to Bridged.
But after this when I restarted the simulator, it is unable to get the IP address. Thus QNX IDE is unable to discover it.
Please suggest how can I resolve this issue ?
According to an administrator on the blackberry forums you can do the following:
http://supportforums.blackberry.com/t5/Cascades-Development/BB10-Dev-Alpha-Simulator-not-connecting-to-WiFi/td-p/1842579
1) Power down your VM
2) In VMWare select your VM and then click "Edit Virtual Machine Settings"
3) Select Network Adapter
4) Change from NAT to Bridge mode, which will allow the simulator to have direct access your physical network card.
5) Start the simulator again.
In case this is still an issue for you or anyone else; If I understand correctly, when you switch to bridged connection, you do have internet access on your simulator, but the QNX IDE does not find it via device discovery.
I just had the same problem, it can be solved by typing the simulator IP in by hand. Note that you have to use the address that VMWare displays at the very bottom of the content window, not the IP that is set in Development Settings.
I suspect the QNX IDE of only scanning a certain IP range for target devices. Thus, when you switch to bridged mode and your device obtains an arbitrary address in your LAN, it does not (necessarily) fall in that range.
Has anyone successfully used the Unity profiler with a physical mobile device? (i.e. the Unity 3.4 IDE tool that provides real-time stats on Unity calls, not the iOS or Android internal profilers). And if so, can you post the details about your setup and your experience?
I'm starting to get the feeling that people aren't using the profiler to test their games on real devices, given how little I can find in the Unity documentation and forums or on the web in general. In particular, dreamora is the only person I have heard of who has successfully attached the Unity profiler to a real device running a game (and then, only on iPhone not Android). It is also suspicious to me that the Android remote tool for Unity 3.4 which I downloaded form the marketplace requires a cable to connect to the Unity IDE and doesn't seem to have a wireless option; I see this as a red flag that wireless profiling by attaching the Unity profiler to an Android device may be impossible (please correct me someone if I'm wrong).
I would like to know your experiences (good or bad) with this tool, and assuming you have been able to profile a device, specifically I would like to know:
1) Did you connect to and Android or iOS?
2) What device and API version (i.e. Nexus S1 AndroidAPI=2.3.7 Kernel=2.6.35.14 running Cyanogen MOD 7.10)
3) What type of computer are you using (Windows or Mac, and OS)?
4) What is the nature of the connection you were able to make between your computer and the device?
4.1) Wired or wireless?
4.2) If wireless, ad-hoc from computer to device, tethering from device to computer, or both connected to the same WLAN router?
4.3) If wireless, what is the setup (DHCP, Static IP, ttl=4, etc?)
5) What are the Unity build settings (i.e. Development Build checked/unchecked, Autoconnect Profiler checked/unchecked, etc?)
6) What were the specific steps you took to connect to the device? (i.e. Build and run on device, then restart Unity twice, then offer up a prayer to the gods by sacrificing a Symbian phone, then connect via the Active Profiler pull-down, etc.)
Let's get to the bottom of this together, I will repost any information this community can provide me with in the Unity forums as well.
Well, I am going to partially answer my own questions here: By following these steps I was able to connect to and profile my Android Nexus running the Cyanogen Mod (7.1) using my MacBook pro (running 10.6.8 "Snow Leopard") on both Unity 3.4.1 and 3.4.2:
Create a WiFi Hotspot using Internet sharing on your Mac. Use the "Share your connection from: Ethernet" and "To computers using AirPort (AirMac)" options. I did not password protect my network.
Connect to this the WiFi network on your Android.
Quit Unity.app (if you already launched it).
Disable the Ethernet interface under System Preferences -> Network (select 'Off' from the Configure IPv4 pull-down menu)
Launch Unity.app
Enable Ethernet interface under System Preferences -> Network (select 'Using DHCP' from the Configure IPv4 pull-down menu)
Now Your Android should be in the list of the Profiler window. Of course, you will need to launch a Unity application that was built with the 'Development Build' and 'Autoconnect Profiler' checkboxes selected under Build Settings (that's what I did at least).
Happy Hunting!
-Arun
If the above don't work or you need to profile specifically on a Windows Phone, try the following...
1.) Make sure in Build Settings you set it to 'Development Build'.
2.) Connect your phone to your Wifi Network, then click on the wifi connection to see your phone's IP address
3.) Enter the phone's IP address in the profiler, and press the 'Record' button and the profiler will begin profiling on your phone.
4.) Run your game from Visual Studio, wait and you will see the profiling will begin.
If you don't see your phone in the profiler, try this alternate method
1.) Connect the phone to your PC
2.) Make sure in Build Settings you set it to 'Development Build'.
3.) Build the game to Visual Studio
4.) Run the game in 'Debug' mode from Visual Studio
5.) When the game is running on the device and is past any loading screens, click on the 'Active Profiler' dropdown in the profiler, and the device should be listed there