((EDIT)) I suggest you guys don't waste your time and just use Android Studio. Check back with VS 2022 android emulator in 2026.
TOPIC: Visual Studio 2022, Android Emulation, Android Device Manager, ADB Command Prompt
From Visual Studio 2022, I launched an android emulation:
TOOLS -> ANDROID -> ANDROID DEVICE MANAGER -> START
The android emulation is open and running.
How can I copy an APK quickly? I should be able to drag and drop an APK to the phone emulation, to quickly install it, similar to Android Studio. Unfortunately that doesn't work.
Now I have to use a very archaic method to copy files. I tried using the following commands to manual copy a file:
adb push "C:\1.apk" /sdcard/Download/1.apk
adb push "C:\1.apk" /storage/emulated/0/Download/1.apk
But the files don't show up in the phone when I check those directories; by tapping Download; looking through various folders or the recent tab.
So using adb, I manually checked to see if my file exists in those folders:
adb shell ls -lrta /sdcard/Download
adb shell ls -lrta /storage/emulated/0/Download
I also downloaded an APK from the web in the android emulation, and I can see that APK file in the download folder, next to my APK that I pushed via adb:
-rw-rw---- 1 root sdcard_rw 44764251 2023-06-22 20:03 1.apk
-rw-rw---- 1 root sdcard_rw 22375332 2023-06-22 20:18 from_web.apk
1.apk is my file that I adb pushed. The file: from_web.apk is what I downloaded from the web; in the emulation's chrome browser.
The problem is I can't see my file that I pushed, even though it's in the same directory!
I spent all day trying to get the android emulator to work, but now finally I get to the most important part, which is being able to actually drag an APK over to install it, and that doesn't work. Copy files doesn't work either because they won't show up in the emulation so they can be run.
Can you help me figure out how to simply drag and drop an APK, or tell me why my APK file, that I manually copied to the emulation, won't show up in the emulation's explorer?
Thanks ahead of time, I could really use your help. I'm exhausted.