Data folder not deleted when app is uninstalled - android

When I uninstall my app, I want the Android> data > (package name) folder to also be deleted.
I added the following code to my manifest:
<application
android:allowBackup="false"
android:fullBackupContent="false"
android:fullBackupOnly="false"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:largeHeap="true"
android:roundIcon="#mipmap/ic_launcher_round"
android:supportsRtl="true"
android:hardwareAccelerated="true"
android:theme="#style/AppTheme.Launcher">
But the folder is still left behind. I checked the device's Backup and Restore settings, but it is turned off.
What am I missing?

Related

APK isn't installed even though I use generated Signed APK

I think there's some update for blocking the installation of APK from outside. Normally, I used to install apks with generated signed apk. But, recently It doesn't work at all. I deleted the app properly, So, it has no issue with the previous app. Everything is checked and filled up.
Is there is changes with Android OS?
I was using demo app provided by third party company.
And the problem was an attribute of manafiests.xml
It was like this:
<application
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:roundIcon="#mipmap/ic_launcher_round"
android:supportsRtl="true"
android:testOnly="true"
android:theme="#style/AppTheme">
And the solution was deletng testOnly attribute of application tag like this:
<application
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:roundIcon="#mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="#style/AppTheme">
What testOnly does is when it's enabled it can only be installed by adb and not able to publish on Google Play.
So, it was not Android OS version problem.
For more information: https://developer.android.com/guide/topics/manifest/application-element

Android Tag permission in applicaiton in Android Manifest?

i have curiosity question.
I seen tag permission in in Android Manifest
Whatis it used for ?
<application
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:roundIcon="#mipmap/ic_launcher_round"
android:supportsRtl="true"
**android:permission=""**
android:theme="#style/AppTheme">

Error compiling after AndroidX installation

I recently installed the AndroidX libraries. My problem now:
Didn't find class "androidx.core.app.CoreComponentFactory"
I get an error message. My Mobile App closes after opening screen.
Have you tried this?
Go to Manifest, then add inside the application.
<application
android:allowBackup="true"
android:appComponentFactory="anystrings be placeholder"
android:icon="#mipmap/ic_launcher"
android:roundIcon="#mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="#style/AppTheme"
tools:replace="android:appComponentFactory">
Perhaps this is one of the reasons!

label appears from the GoPro SDK dependency

I have a string resource for an application label:
<string name="app_name">My application</string>
My AndroidManifest.xml is classical:
<manifest.. >
<application
android:name="my.package"
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:largeHeap="true"
android:supportsRtl="true"
android:theme="#style/AppTheme"
tools:replace="android:icon">
<activity ...
I have GoPro SDK as a dependency. And on some devices (HTC U Play) my application is signed not as "My application", but as "GoPro SDK".
I have figured out that GoPro SDK valuses are realy containing resource:
<string name="app_name">GoPro SDK</string>
GoPro SDK is an .arr archive.
How to fix it without renaming of the variable app_name?
Try to add to application tag the following attribute:
<application
tools:replace="label, icon"/>
also I found that some of activities may contain label without tools:replace="label"
<activity android:label="#string/app_name" />
Just remove label from activities or add tools:replace="label" attribute

android dev - changed ic_laucher but doesn't appear when running

I deleted the standard android robot icon ic_launcher and added mine ( in various densities)
and I have already in may manifest.xml
<application>
<meta-data
android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version" />
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
....
but after clean/build when running I still have the tiny android robot in my ActionBar and my app launch icon is still the android default app robot icon ..
I guess I miss some additional parameter ??
my manifest file is surely wrong...
indicated by the colors.... drawable icon should be blue...
Try uninstalling the app from the device and re-installing it to see the icon changes.
Yeah, the Application tag in your manifest file should set the icon like this:
<application
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
it was an error in my xml file....
<application
android:name="SwimmerApp"
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<meta-data
android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version" />
Had the same issue, solved it after copying the ic_launcher.png to the drawable-mdpi folder under the res.

Categories

Resources