Image dragged to Android emulator does not show up in gallery - android-studio

I used to drag the image to Android emulator API 30 and the image would show up in emulator gallery. However with Android 2021.1.1 Patch 2, images dragged to the emulator does not show up in gallery or anywhere else. Android shows a message saying that the image has been copied but it could not be seen in gallery. Here is the image of the android emulator:
Clicking open the gallery shows nothing inside after dropping the image. Here is the SD card configed for the emulator:
How to populate image to gallery on emulator in Android 2021.1.1 Patch2?

How to upload files to Emulator:
Copy the image(very important)
Android Studio has Device Explorer to explore emulator content (Earlier we used to have DDMS, which is deprecated in Studio 3+). Go to View -> Tools Window -> Device File Explorer and you can see the explorer window. Go to Storage -> emulated -> 0 ->Download. Here paste that photo
Note: You don't see Device Explorer if you have opened a Flutter project.

Related

Cant find Watches pane

I am looking for the watches pane in debugging tab of android studio.
I have tried both android studio dolphin, and the latest android studio electric eel
I have attached screenshots.
Website link:https://developer.android.com/studio/debug/#systemLog.
I was trying to get the watches pane to show up.but i could not
https://developer.android.com/studio/debug/#systemLog
The image above is what i was looking for

Android Studio 2021.3.1.17: Internet pages wont load

I have installed Android Studio 2021.3.1.17 and when I click on Google Chrome in an Android device, the page will not load
The device is a Pixel 6 Pro API 33.
I have tried adding the advancedFeatures.ini text document as described in other posts and it doesn't work for me

How to access "Configure Image Asset"

I want to manipulate my App's icon using "Image Asset Studio", usually I start it by following these instructions:
1- In the Project window, select the Android view.
2- Right-click the res folder and select New > Image Asset...
so I reach this window:
but for some reason I don't see this option "Image Asset" at the "New" menu.
NOTE: If I create a new project then I can see "New > Image Asset" normally.
Update:
I'm clicking on this directory.
I run this android studio on Ubuntu 18.04:
Android Studio 3.5
Build #AI-191.8026.42.35.5791312, built on August 9, 2019
JRE: 1.8.0_202-release-1483-b49-5587405 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.15.0-62-generic
There is actually an issue filed in GitHub related to this.
In your case, it seems that you treat a Flutter project as a regular Android project. AFAIK, Flutter projects are not Android projects.
So one of the workaround is also available:
open android studio File->Open folder->navigate to your flutter
project and select the Android folder. Wait for it to sync, then
navigate inside the Android studio folder and find the res folder
right click on it and choose New you will see the Image asset studio.
Also take note of this:
don't open the whole project of flutter using Android studio just open
the android folder found inside the flutter project with Android
studio, so the Android studio can treat it as a Android project rather
than flutter project, which will give you all Android features like
the one ur looking for #image asset studio
And you can also check this blog post about changing your Flutter app icons. And this YouTube video. You will only need your desired image for the icon and App Icon Generator.
To summarize what was written in the blog and discussed in the YouTube post, here are the simple steps you need to follow:
Step 1: Visit appicon.co and upload your intended image to convert to icons, select the types you would like to be generated and click “generate”. This will download a zip folder to your system. (You may skip this step if you have all resolutions in place with you.)
Step 2: Unzip the file. You’ll have two folders by the name of “android” and “Assets.xcassets”.
Step 3: Changing icons for Android App.
In your Flutter project, move to android/app/src/main/res which has a lot of folders starting with “mipmap-”. Delete all of them. And replace from your downloaded and unzipped AppIcons folder, everything that’s under android.
if you right click on res folder and Image Asset is not enabled just follow the following steps they are working for me.
File --> Open and select to open android(which is inside your project) in a new window.
Then if you go to the res folder (on the new window) and right click the Image Asset is enabled.

Emulator wrong screen resolution in Android Studio 1.3

I have updated to Android Studio 1.3 and I'm trying to make a test with Nexus 5 which has a resolution of 1080px x 1920px and when I start the emulator the icons are too big and when I run my app which has a banner of 320x50. This banner is nearly as wide as the screen!
Here is the emulator without any application running, where you can see a very big icons on the screen.
And here is a screenshot with an app which has a banner test of 320x50px
If I select "No Skin" in Custom Skin Definition, it doesn't work for me. In the later image you can see it.
Another example, this is what I see and what I want to see in Android Studio to a Tablet Nexus 7:
And this is what I've got to a Tablet Nexus 7 in Android Emulator: it's too big. Why does this happen?
In the Android Virtual Device Manager click "Create virtual device", select needed one and click the "Clone device" button. Then change "Default skin" to "No skin". Now save the profile and launch it.

Android Studio AVD Trouble

I am using Android Studios 0.8.1 on Windows 8. I cannot seem to create a new AVD.
Here is a screenshot of the problem:
As you can see, at the bottom of the window, the "OK" button is disabled.
Does anyone see a problem?
Try typing in 64 in the SD card size box. that gives you a 64 MB sdcard in the emulator.
Taken from here
Try to follow these steps:
To set up an Android Wear virtual device:
1- Click Tools > Android > AVD Manager.
2- Click Create....
3- Fill in the following details for the AVD you want to specify and leave the rest of the fields with their default values:
AVD Name - A name for your AVD
Device - Android Wear Round or Square device types
Target - Android 4.4W - API Level 20
CPU/ABI - Android Wear ARM (armeabi-v7a)
Keyboard - Select Hardware keyboard present
Skin - AndroidWearRound or AndroidWearSquare depending on the selected device type
Snapshot - Not selected
Use Host GPU - Selected, to support custom activities for wearable notifications
4- Click OK.
You can use either snapshot or "Use Host GPU", not both. Try deselecting one.

Resources