You can delete individual files in storage one by one. Just avoid the
preferences file name.
On Monday, May 24, 2021 at 11:00:27 PM UTC+3 hana@gmail.com wrote:
> I noticed that Android 7 device (API 24) doesn't erase some of the
> preferences when the app is being reinstalled, unless I
I noticed that Android 7 device (API 24) doesn't erase some of the
preferences when the app is being reinstalled, unless I call clearAll() or
manually choose "Clear Data" in the App Storage settings.
This caused some bugs.
Adding android.allowBackup=false to the hints resolved this particular
Preferences clearAll is pretty destructive. I would suggest using it only
in extreme cases.
On Thursday, May 20, 2021 at 7:16:51 PM UTC+3 javier...@gmail.com wrote:
> Oh yes, just use the Storage class to write its own file instead of
> Preferences and then you won't have to worry about
Oh yes, just use the Storage class to write its own file instead of
Preferences and then you won't have to worry about Prefs.clearAll
Preferences just uses a single file where it stores a dictionary, but you
can write separate files and that will take care of it
On Thu, 20 May 2021, 16:58 Hannah
Yes, that what I was thinking.
On Thursday, May 20, 2021 at 12:02:21 PM UTC-4 ben.t...@gmail.com wrote:
> You could reset the flag immediately after the ClearAll.
>
> On Thu., May 20, 2021, 9:58 a.m. Hannah R, wrote:
>
>> Thank you, Javier.
>>
>> I wondered if there are any other options
You could reset the flag immediately after the ClearAll.
On Thu., May 20, 2021, 9:58 a.m. Hannah R, wrote:
> Thank you, Javier.
>
> I wondered if there are any other options because I use
> Preferences.clearAll() in some cases, as well as I wasn't sure about app
> updates etc. But I guess if
Thank you, Javier.
I wondered if there are any other options because I use
Preferences.clearAll() in some cases, as well as I wasn't sure about app
updates etc. But I guess if there are no other ways or this is the best
one, will do it.
On Thursday, May 20, 2021 at 11:55:26 AM UTC-4
You can use Preferences to write a small boolean value that is set to true
after the first time the app is used
Updating an already installed app wont reset the flag as that re uses the
app data folder
On Thu, 20 May 2021, 16:52 Hannah R, wrote:
> Hi,
>
> How can I find out when the app was
Hi,
How can I find out when the app was launched the first time after
installation?
Thank you a lot.
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email