I'm trying to reset NativeScript Preview but after press and holding lunch icon, android system just let me move icon instead open menu. So, doing with original instruction: "Resetting the Preview app" from: https://preview.nativescript.org/#faq . Any hint?
I figured out that the problem is related to version of my Android - v.6.
This feature working in Android v.11.(I meant the press and hold app icon to open it's menu)
My old Galaxy S5 is unable to upgrade to higher version. So, I consider change to LineageOS which is quite time consuming and a bit risky process or buying new mobile with newer version o android system.
Still question is on which version started with this option.
Related
I am facing an issue with the Android emulator.
When the emulator boots up everything is fine, regardless the default display orientation.
When I press one of the buttons to change the display orientation, the emulator window rotates but, the content is completely messed up.
See the pic below.
The same happens with all the AVDs I have created and with different android images.
I've already reinstalled/updated the emulator from package manager.
Any idea about why this is happening?
The work environment is:
Mac OS Big Sur,
Android Studio v4.1.1
Android emulator v30.2.6
Thank you for your help.
This was a bug in the Google Android Emulator version 30.2.x.
It was fixed in version 30.3.5 (approximately 8 January 2021). Apply the update like this:
Stop or Force Quit all the running AVD emulators
Android Studio ➔ Tools ➔ SDK Manager ➔ SDK Tools (click this tab in the middle of the dialog) ➔ Android Emulator
The status should say "Update Available"
Click the Checkbox so that it will change from a horizontal line to a checkmark, and so that the download symbol appears on the left.
Click the Apply or OK button
It should download version 30.3.5 or higher, for "Android Emulator".
After the upgrade is applied, relaunch your emulators.
Try running the emulator inside Android Studio. Go to settings-tools-emulator and check the box there to run the emulator inside Android Studio. When you rotate it after it should rotate faster than in the AVD's standalone application, and not break the display. This should fix the broken display problem, without making a new AVD. Make sure you have updated to the most recent version of Android Studio first, v4.1.
The android emulator defaults to have auto rotate turned off. Turn on auto rotate the normal way you would on your phone and it will work.
today I tested some app I'm developing with Berlin Upd. 2 on a Sony Z4 tablet with Android 7.
If I press the right Android navigation button a bit longer the device splits the screen 2 two areas and thus shows two apps simultaneously. Seems to be a feature of Android 7+.
Unfortunately my app doesn't like this and is being terminated or terminates itself.
I didn't find any setting on this Sony device to disable the split screen button function.
I found some Android Manifest setting here:
How can I disable multiwindow mode for an Activity in Android N+
But every time I try to add this to the manifest template either for the entire app or for the activity (FMX apps only have one activity) and press F9 to test it on a device (in this case a Nexus 4 to ensure the setting doesn't
have negative effects on older versions) I get a "pa client exited with code 1" failure. When I remove the line from
the manifest template and press F9 everything works as it did before.
Any hints/advice?
I already searched for an app to disable the feature on the Z4, but we only found one for Galaxy S7 which had no effect on the Z4.
The solution is (and the Android documentation doesn't clearly state this requirement for somebody not using Google's preferred language/toolset) to download SDK 24 and Build Tools 24.x in SDK manager. In Delphi Tools/SDK one needs to point to the android-24 folder instead of the android-22 one and then adding this attribute to the node no longer leads to build problems in Delphi and the app cannot be crashed by somebody trying to enter split screen mode.
Whenever, I take Time Picker and Date Picker in XML layout file in Android studio.
Android studio hangs out.
Which configuration changes i need to do? Please help me.
#Mayuri Joshi
Courtesy goes to #Wootowl's Answer .
I theorized that perhaps it was just the windows display that was
frozen (the visual rendering of the Android Studio program itself) and
guessed that perhaps this was using a DirectX device to do the
rendering of the Android UI.
I happen to have another app running on my computer that uses a
DirectX device for rendering (SimpleJungleTimer, an app I programmed
with a DirectX overlay for League of Legends jungle timers). After I
shut down this app Android Studio appears to be working properly (not
freezing when working with the UI anymore)
Ultimately it sounds like this is a bug with Android Studio itself
where they don't properly kill / reload the DirectX rendering device
when it is in conflict with another app's active DirectX device
(something that the android studio developers should probably fix) .
What should you do
Avoid Drag and drop Facility
Use Stable Android Studio (Like Version 1.3) Avoid Beta Version .
File -> Invalidates Caches/Restart. (After Clean and rebuild your project)
I installed Android Studio 1.0 and have JDK 1.8.
I make New Project, use a 'blank activity with fragment' and set the minimum version to lollipop (5.0)
Then I go to fragment_main.xml and drag an UI element to the phone (in the example i used a button)
The moment the drag interface is visible on the phone, android studio hangs and i'm unable to do anything expect killing the process with windows taskmanager.
My mouse looks like this:
Any ideas?
Thanks.
I may have found a solution for this.
I was having the same exact issue and couldn't figure out what was going on for the life of me until:
I theorized that perhaps it was just the windows display that was frozen (the visual rendering of the Android Studio program itself) and guessed that perhaps this was using a DirectX device to do the rendering of the Android UI.
I happen to have another app running on my computer that uses a DirectX device for rendering (SimpleJungleTimer, an app I programmed with a DirectX overlay for League of Legends jungle timers). After I shut down this app Android Studio appears to be working properly (not freezing when working with the UI anymore)
Ultimately it sounds like this is a bug with Android Studio itself where they don't properly kill / reload the DirectX rendering device when it is in conflict with another app's active DirectX device (something that the android studio developers should probably fix), however until the android studio developers fix this you should be able to get around this bug by making sure any other applications that might use DirectX for rendering are shut down while coding in Android Studio so that their DirectX rendering devices don't conflict with Android Studio's DirectX device.
There are also problem with Java 8 in Mac OSX. When any drag and drop I made result in hanging the Android Studio 2.0 preview. This problem also happen to me when I use intellij 15.
You can have a look at this link: https://youtrack.jetbrains.com/issue/IDEA-146691.
I switch the JDK use in may projects to Java 7 and the drag and drop feature works. You can do the switch by choose File > Project Structure > Change in your JDK location.
I have an app that has an widget preview image. I recently updated this image on the app, but in a device with Lollipop (5.0) version of android, the preview image of the widget shows the old image (the one I replaced). The same doesn't occur in devices without Lollipop.
I turned the resources folder upside down searching for the old image, but it is correctly updated in all the places (actually, it is only in one folder, as I have only one image of the preview).
Just to give more info, I'm using Android Studio 1.0-rc1, and this problem only occurs in my Nexus 4 with lollipop (5.0) running on it.
I tested in some emulators with Lollipop, and the same happened.
It's important to highlight that if I never installed any previous version of the app (with the old widget preview image), when I install the new version the preview image appears to be correct.
Is anyone having the same problem, or knows how to solve this?
Thanks.
I had the same problem. I managed to work around it (on Nexus 5) by going to the settings of the launcher app (Settings -> Apps -> Google App) and deleting the cache.
I also had this same issue and the answer by #spookypeanut put me on the right track.
My phone is running CyanogenMod so I had to go to app Launcher3 (com.cyanogenmod.trebuchet), clear cache and force stop it. After it reloaded all the previews updated.