Uiautomator is not getting open by double clicking on - android-uiautomator

I have downloaded all SDK packages required for Emulator but still my UIautomatorviewer window is not getting open by double clicking. also i have added environment variable for platform tools, tools, tools/bin

Related

Can I run the Android Emulator within (or on top of) the Android Studio window?

I use Android Studio on macOS in full screen (maximised). When launching the Android Emulator, its window is shown on the regular desktop. This requires switching from one window to another. I'd like to be able to look at both windows at the same time, without leaving full screen mode in Android Studio.
Is there a way to move the Android Emulator window to within (or on top of) my Android Studio window?
With Android Studio 4.1 and above you can run the Android Emulator directly in Android Studio.
To run the emulator in Android Studio, make sure you're using Android Studio 4.1 with version 30.0.10 or higher of the Android Emulator, then follow these steps:
Click File > Settings > Tools > Emulator (or Android Studio > Preferences > Tools > Emulator on macOS), then select Launch in a tool window and click OK.
If the Emulator window didn't automatically appear, open it by clicking View > Tool Windows > Emulator.
Start your virtual device using the AVD Manager or by targeting it when running your app.
For more info: Run the Android Emulator directly in Android Studio
This is not a 100% answer, but near to it and since it doesn't fit in comments, I'll write it here. Hopefully we can turn it into a 100% answer.
It is possible to do this with applications that supports full screen mode. Unfortunately the Android emulator does not do this. Genymotion does.
There seem to be hacks to activate full screen mode for applications that don't support it natively. For example, for the iOS simulator, you have to run this on a terminal:
defaults write com.apple.iphonesimulator AllowFullscreenMode -bool YES
A Google search returns several results to do this with the Android Emulator: https://www.google.com/search?q=how+to+run+android+emulator+full+screen&rlz=1C5CHFA_enDE822DE822&oq=how+to+run+android+emulator+full+screen&aqs=chrome..69i57.6269j0j9&sourceid=chrome&ie=UTF-8
I've not tested any of them, so that's left as an exercise to the reader. If you do successfully please write it in the comments (or directly edit this post with the steps).
It may also make sense to make a feature request on the emulator to enable full screen mode.
Once you have an emulator/simulator that supports full screen mode, you can use MacOS's split view feature. In order to do this:
Press and hold the full screen button on Android Studio (while not in full screen mode).
Move it to the left part of the screen.
Now in the right part you will see "candidates" to share the full screen with. Your simulator/emulator should appear here. Click on it. It should expand to fill the right half of the screen.
Drag the handle between the left and right part to the right, such that Android Studio occupies more space.
See https://support.apple.com/en-au/HT204948
I also looked into this and there doesn't seem to be any support for this. Perhaps you could write a plugin that somehow wraps an external window inside a panel, I don't know if the IntelliJ API supports it though.
The closest thing you got on macOS is the split-screen mode with full-screen apps.

Error in VS2015 installation and Xamarin UWP not working

I'm trying to install VS2015 Community in my PC.
When I install everything at the end the installer gives to me the following message:
I've tried to install, reinstall, update but anything changed. The only consequence that I can see is that when I create a new Xamarin solution, when I run the UWP project using Local Machine as target it starts, but then I obtain this exception message.
If I run the application from the Mobile emulator, it starts without problems.
Somewhere (sorry, I forgot the source) I've read that I should be sure to add following references for the project:
Windows Desktop Extensions for the UWP
Windows Mobile Extensions for the UWP
But I've only the first one, not the second. Maybe it's related to the installation issue?
I'm new to Xamarin and UWP, but UWP should be run to both Mobile devices and desktops, so why I have this behaviour? and what I can try to solve the installation problem that's probably related to this?
So, at the end, what I can try in order to fix the installation and allows the xamarin UWP project to run correctly in the local machine?
If I run the application from the Mobile emulator, it starts without problems.
According to your error message, it seems you are using StatusBar in your project.
While using StatusBar, please note that this is not a Universal API, this class can be only used in Mobile Device. Because status bar only exists in Mobile devices, there is no such thing in desktop, table or IoT devices. So if you use this class on Local Machine, you will get an error, but in Mobile Emulator, it can work without problems.
For more info, please see Requirements section of StatusBar.
Usually, when using StatusBar, we would use it with Runtime API check like following:
Windows.UI.ViewManagement.StatusBar statusBar = null;
if (Windows.Foundation.Metadata.ApiInformation.IsTypePresent("Windows.UI.ViewManagement.StatusBar"))
{
statusBar = Windows.UI.ViewManagement.StatusBar.GetForCurrentView();
}
if (statusBar != null)
{
//TODO
}
On Local Machine, as there is no StatusBar, ApiInformation.IsTypePresent method will return false. This will help us avoid the error. For more info, please see Write adaptive code.
But I've only the first one, not the second. Maybe it's related to the installation issue?
I'm not sure why you can't find the Windows Mobile Extensions for the UWP. But if you have used StatusBar and can build and run your project in Mobile Emulator, then you must have referenced Windows Mobile Extensions for the UWP. Without this extension, we can't use StatusBar and the build will fail.
Depending on the SDK you've installed, you can find following extensions in Reference Manager (Right click "References" in your project and then select "Add Reference" → "Universal Windows" → "Extensions").
I'd suggest you create a new Blank App (Universal Windows) project with Visual Studio to see if you have both the Desktop Extensions and Mobile Extensions. If you still have problem in new Blank App, I'd suggest you use Visual Studio Uninstaller to uninstall Visual Studio completely and also check the Control Panel to make sure you have uninstall all related stuffs like the SDKs. Then you can try to reinstall Visual Studio to see if it works.

Getting Visual Studio Android Emulator for Lollipop & marshmallow

I've installed Visual studio 2015 & xamarin and I see that the visual studio emulator only has kitkat and nothing else.
Their website claims that lollipop is supported but I don't have the foggiest idea on how to get it.
EDIT: Should probably mention this, when I open up the visual studio emulator window I see the following error:
Unable to establish a connection to Internet. Only device profiles for acquired platforms are shown
In Visual Studio 2015, you can install, uninstall, and start device profiles using the Emulator Manager. Access the Emulator Manager by choosing Tools, then Visual Studio Emulator for Android.
By default, there are four pre-installed device profiles (KitKat and Lollipop phone/5" and tablet/7" configurations), as indicated by the white text and icons. Other profiles in the list will appear grayed out until you choose the Install Profile button and the installation completes. You can filter the list by API Level and click the details arrow on the bottom right-hand side of a profile to view its full configuration details.
Once you've installed the set of profiles that you'd like to target, you can start these new profiles directly from the manager by pressing the green Play button. They will also appear in the debug target dropdown menu in any Visual Studio cross-platform mobile project type.
Ref: MSDN
I fixed it, A spybot tool I installed to disabled some windows 10 stuff was blocking things needed for this tool, unblocked it and it works now.

adt use with eclipse

I'm having trouble getting Eclipse (v3.7.2) and the ADT plugin (v18.0.0) to play together. I'm attempting to get setup to use RFO BASIC.
Here's an update on how I'm progressing. I uninstalled both Eclipse and the Androide SDK. I then unzipped a new Eclipse installation to C:\Eclipse. Using the Windows .EXE installer, I installed the Android SDK, choosing to install to C:\Android\android-sdk instead of the default C:\Program Files\Android\android-sdk.
I downloaded the following platforms:
4.0.3 API 15
4.0 API 14
1.5 API 3
These I unzipped these to the \platform folder of Android. Then I started the SDK Manager and all 3 of these showed up. I "Selected All" and did a "Reload" just to be sure they were being recognized. OK, so far, so good. On to setting up the Eclipse ADT plugin.
Start Eclipse, go to "Help -> Install New Software", click "Add", click on "Archive" button, name it "Android Plugin" and point it to "ADT-18.0.0.zip" which I placed in the C:\Eclipse folder. In the "Available Software" dialog, click on "Developer Tools" and click "Next", accept license agreement, click "Finish". Next came a series of dialog boxes, one of which was titled "Install -> Install Details". It listed the following 4 items:
Android DDMS
Android Development Tools
Android Hierachy Viewer
Android Traceview
Here's where I run into trouble. I select all 4 and the "Next" button remains greyed out and this msg is displayed:
Cannot complete the install because one or more required items could not be found.
Software being installed: Android Development Tools 18.0.0.v201203301601-306762
Now if I UNSELECT Android Development Tools, the dialog allows me to proceed and the other 3 items seem to be installed OK.
If, at this point, I go to "Window -> Preferences", Android DOES NOT show up in the left side panel.
Am I still missing a component and if so what??? If not, does anyone see what I'm doing wrong???
Thanks,
Bill

MonoDroid Fails to load emulator

I downloaded the trail version of MonoDroid. I am going through the hello world tutorial and now at the part where I want to deploy my app to the emulator.
It comes up with a "Select Device" dialog with nothing in it. So I click on "Start emulator image", this pops up another dialog with available images. I have one emulator made and it is in this dialog box. I hit ok and I am not at dialog box with still nothing to choose.
So I am not sure what to do.
I am running Visual Studios pro 2010 on a window 7 64bit.
This seems to be a regression in Google's latest version of the Android SDK. Emulators will no longer run if there are spaces in SDK location path.
Uninstall the Android SDK and install it back to a new location without spaces and it should work.

Resources