I can't find the location to select for the target device in VS Code. (Flutter) - flutter

I usually use Android studio for application development with Flutter.
I'm trying to use VSCode, but as the title says, I can't find the selection of the target device I want to run.
For the time being, I selected [Run and Debug] from the icon on the left and executed it, and I was able to run the app on the actual iphone, but I want to run it on macOS.
I would appreciate it if you could tell me where it is.

At the very bottom of your editor, there is a bar, in this bar you should see the name of the currently selected platform, if you click on the platform, you will bring up a menu where you can select the device.
here is a closeup:
In my case you would click on "windows (windows-x64)"
You can also press Ctrl+Shift+P and write Flutter: select device to bring up the same menu

Related

How to select devices in IntelliJ IDEA new UI?

New UI:
The app is currently running on a connected device, but I don't see any option to connect to another devices (for example, emulator). Here's the previous version of IDE, where I can see multiple devices.
Old UI:
It is a known problem https://github.com/flutter/flutter-intellij/issues/6270 Currently, you can customize the toolbar manually:
Right-click on main toolbar and select Customize Toolbar
Select the needed group and click on Add Action
Dropdown Plugins | Flutter and select Flutter.DevicesSelector

viscose not showing connected device at the bottom

I'm sure there was a place for selecting device...if connected, it show phone like SM960 , or iPhone .
but suddenly, I can't see this also I can't run code from play button on vscode. (start without debugging)
what happened?
Close the VSCode and again open VSCode as Admin. Than it will show the connected Devices.
The vscode flutter pluggin must be used with vscode oppened as admin.
Make sure to use
ctrl+ shift +p
to select device
It is Easy Just right click on The vs code Bottom Bar. You will Get a list of Item then Click on Flutter devices,

"Show Taps" option is not working on LDPlayer?

I am using Android Emulator (LDPlayer 4.0.23).
The "Show Taps" option from Developer Options (Setting-> Developer Options-> Show Taps), doesn't work. It's activated/ON.
Normally when it's activated you will see simple transparent circle when you tap your screen. But it doesn't show in LDPlayer.
Anyone know how to make it work? Or is there any other apps that can be use as replacement?
FYI, I want to create some video tutorial, thus I need to show where I taps on it.
you can try [NoxPlayer] (also an Android Emulator)to show taps and meet your needs. Here is a guide:
First, click Setting in the tool
Second, click About tablet and slide the page to find the Build Number
2
Third, Tap the Build Number 7 times to open the developer option
Fourth, Open the developer option, and then open the Show Touch

the menu is failed to opened using monkeyrunner touch command

i want to open "Choose input method" popup menu from settings application. Using monkeyrunner touch command, the screen is taped, while the menu is not opened.
Here is the reproduce steps:
environment: emulator (android sdk 4.1)
Go to System settings -> Launguage & input view
try to tap the text "Default" using monkeyrunner touch command
python code:
device = MonkeyRunner.waitForConnection(10, "emulator-5554")
device.touch(83, 486, MonkeyDevice.DOWN_AND_UP)
Actually result:
the screen is taped, but the popup menu is not opened. Also reproduced with tap the text "Launage".
And i tried with android sdk 2.3.3 for this issue, the submenu for "Default" and "Language" could be opened.
if executed the adb command "adb shell input tap 83 486" on sdk 4.1, the menu could be opened.
Any ideas for this issue?
If you are using monkeyrunner to opne System setting -> Language and input view then you should place some *MonkeyRunner.sleep(x) along the way (where x is the time in seconds).
This way you'll make sure that the UI elements are created properly. If you do not place sleep(x) statements, the script will touch/ press without any lag/ timeout. But the android UI needs some time to create the views and other elements and make then functional.

Screenshot of currently running application on IPhone

On the IPhone, is it possible to get a screenshot of the currently running application, from another application that is running/backgrounded/being launched? or somehow make available a screenshot of the current application to another application that is then automatically launched?
No it is not possible. It is not possible to know anything about another apps in iOS (if you're using documented methods).
This is possible using Xcode's Organizer:
in Xcode, select "Window" menu and then "Organizer"
in the newOrganizer window, select "Devices"
select your iPhone device and unfold
select "Screenshots" at the bottom of the list
now click on the "New screenshot" button (bottom right of the window)
You can export screenshots just by drag/drop on your desktop.