Is there a device file explorer in VSCode? - flutter

I'm using VSCode as my IDE. Is there a "Device File Explorer" in VSCode just like in Android Studio?

There is none. The tools available at your disposal currently are the devtools which run in a browser and embedded in VScode for the latest version 1.20
Android Studio/IntelliJ are dedicated IDEs to develop Android applications and hence have low level functionality to interact with the file system of Android Virtual device.

I can't find an easy solution even in 2021.
At the end I do the following
adb shell
su
cd <where ever I wish>
At least I can check the files that I have created
to download
adb pull <source> <destination>

Related

setup nox (or genymotion )as android emulator for vscode flutter

for some reason, I don't want to install android studio(one of them is I don't have enough space for now) but instead, I want to work with vscode and nox(or genymotion). and my question is: Is it possible to connect vscode and an (android and ios) emulator to see the result? in other words, I want to connect the nox as an emulator to vscode and see the result inside of it.
Android studio take too much space and even my computer also become hot when open Android studio. But what I did I installed Android studio and Android emulator but I don't use Android studio rather I use VScode.
So as far as I know you need Android studio to install emulator then you can use VScode with it.
Finally, I found out how I can connect Genymotion to the VS Code(without Installing Android Studio).in total SDK manager wasn't installed on my laptop, so at first, I installed it. and then
Platform Tools (ADB & Fastboot)
Install Platform
Add System Image
Install Build Tools
but wait I just name the steps I've done. you can follow this article on this link to get more details.
and finally, instead of installing an emulator, I used Genymotion with Flutter in VS Code, which you can follow in this article to get more information. Click here

How to deploy Android emulator built on Linux to Windows?

I've build aosp_x86_64-eng target on Linux and now I can start it using emulator command. However, I'm looking for a way to "deploy" the .img files and whatever is necessary to Windows, so I could run the same emulator on Windows.
My main problem is that in out directory (out/target/product/generic_x86_64) there are a lot of things and I'm not sure which to choose and how to glue them with .ini and .prop files. I also didn't find any working tutorial or example on that topic. On the other hand I'm sure it's possible, since Google provides working emulators for Windows and they had to be build on Linux or Mac OS.

Anti-aliasing does not seem to work in Android Emulator

I was working fine with Android Emulator (on Manjaro Linux) a few weeks ago, but after updating software The GUI of Android Emulator is not rendering or anti-aliasing is not working anymore. My apps are displaying horrible texts.
I'm using Hardware-GLES 2.0 for my graphic emulator.
Additional info:
Is there another alternative Android emulator working with Visual Studio Code?
ANSWER: Android Studio's Android emulator is not an efficient emulator, a better emulator is Genymotion.
I had a same problem. Downgrading Android Emulator to lower version solved the issue.
Latest version (before 30.9.5) that I could find was 30.8.4 with build id 7600983.
In order to downgrade firstly you will need to download the emulator. Here are the links for the version 30.8.4:
Linux - https://dl.google.com/android/repository/emulator-linux_x64-7600983.zip
MacOS - https://dl.google.com/android/repository/emulator-darwin_x64-7600983.zip
Windows - https://dl.google.com/android/repository/emulator-windows_x64-7600983.zip
You can also download even older versions here are few alternatives
After downloading the needed version of emulator you will need to unzip it.
The next thing is to replace your current emulator with new one.
Go to your Android Sdk folder (mine was ~/Android/Sdk)
cd ~/Android/Sdk
Rename your
current emulator files folder. mv emulator emulator.bak
Copy new
emulator
cp -r ~/Downloads/emulator-linux_x64-7600983/emulator/ .
Replace package.xml file (otherwise Android Studio will not
recognize your new emulator)
cp emulator.bak/package.xml emulator/package.xml
Restart your Android Studio and Enjoy!
Seems like this issue was fixed with newest major 32 version of Android emulator.
Newest 32.1.6 and 32.1.7 Canary 1 versions behave like the things were before 30.9.5 which broke anti-aliasing completely for me on all Windows devices. I am using Hyper-V so HAXM is not available for me.
Emulators archive: https://developer.android.com/studio/emulator_archive

How to run Visual Studio Code on Samsung Dex?

Does anyone know how to run VS Code on Samsung Dex?
I've tried:
https://medium.com/samsung-internet-dev/writing-software-using-a-phone-e71976f1f18d
Looks like it is possible, but I don't know how. I can see vscode supports linux, does this mean that you can run vscode on Samsung Dex - Note 9 ?
Thanks in Advance.
Visual Studio Code is not natively supported on Android yet. So there is no way to natively run VSCode on Android with your Note 9 and Samsung DeX.
You do however have the following two options available:
When using "Linux on DeX" then you have the option to run Visual Studio Code natively from the Linux environment on Samsung DeX, although do keep in mind that Linux on DeX is now discontinued starting Android 10.
Remotely log into a different Linux, Windows or Mac computer and use VSCode on those computer through your phone on Samsung DeX.
Ofcourse the first option is the best. I recommend using Linux on DeX for this. Right now there isn't a native Android version of VSCode :(
I would recommend to go for fully functional Linux on Android.
You will require
Termux (Playstore)
VNCViewer (Playstore), bVNCViewer(recommended for tablets)
Andronix (Playstore), would recommend to go for premium and modded os, it would just cost you a cup of coffee. Though you can use unmodded os for free. Modded os comes with pre installed VsCode, etc useful stuffs.
Follow Andronix documentation: https://andronix.app/
For a fully functioning visual studio code or code on a samsung tab, you can use github codespaces in a browser tab in Dex mode, this is a paid approach but a reliable one. One other is self-hosted code instances like code-server
As of summer 2020, there is a cloud9 style browser based VSCode service provided by Microsoft Azure:
https://online.visualstudio.com/
You can see it in action here:
https://www.youtube.com/watch?v=rg0VHA_YZUI
i didnt try that, but i think you can find a cloud coding solution, like Stackblitz that is very similar to vscode in appearance(if it's not in fact vscode), or even AWS Cloud9
Try using a VS format with a cloud10 interfase code this will open up a rex code then type your server code in using the YZ trigger and this will give you access.
You can install linux on Samsung phone and tablet and then you will be able to use visual code.
https://www.linuxondex.com

Nativescript project running with Visual Studio Emulator

I have a Nativescript application that I'm developing using VS Code and have no issues when I try to run it using the Nativescript launch configurations from the Nativescript extension, when I'm using a real device connected with USB or when I use one of the android-sdk emulators.
Now I need to run Hyper-V on the machine too and those emulators cannot run when hypervisor is on. So I downloaded and installed Visual Studio Android Emulator which runs fine when I launch it manually.
Problem is that the nativescript project doesn't recognize this device either with tns device or adb devices commands and if I try to launch the application from VS Code it tries to launch one of the other emulators, which obviously fails due to the hypervisor/Intel Haax incompatibility.
Did any of you had this problem before and have any solutions you can share?
Thanks.
Microsoft MSDN say :
If the emulator is running, but it does not appear to be connected to ADB or it does not appear in Android tools that make use of ADB (for example, Android Studio or Eclipse), you may need to adjust where the emulator looks for ADB.
The emulator uses a registry key to identify the base location of your Android SDK, and looks for the \platform-tools\adb.exe file under that directory.
Here We Go!! Step By Step ;)
Copy Your ANDROID SDK PATH for me it look like this :
To modify the Android SDK path used by the emulator:
Open Registry Editor by selecting Run from the Start buttons context menu, typing regedit in the dialog box, and choosing OK.
Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Android SDK Tools in the folder tree on the left.
Note : if Android SDK Tools folder doesn't exist, Create it under WOW6432Node, And open it, And Create a String Value name it Path:)
Modify the Path registry variable to match the path to your Android SDK.
Restart the emulator and you should now be able to see the emulator connected to ADB and associated Android tools.
Now! Open Your Terminal (CMD), and Run ADB command
adb devices -l
YES YES !! The Visual Studio Emulator is running, and connected to ADB!
HERE WE GOO !!
Now We Want To Create A Demo App (for example FIRSTZAKI) ZAKI is my nickname :p
On Terminal (CMD) :
tns create FIRSTZAKI
Choose Android Platform
cd FIRSTZAKI\
tns platform add android
Check if VS EMULATOR is ready!
tns devices
YES YES ^^
Finally Step (RUN/BUILD) :
tns run android
WOW ... Great :)
AND .. Good Luck ♥ — ZAKI