You could reset the flag immediately after the ClearAll.

On Thu., May 20, 2021, 9:58 a.m. Hannah R, <hana.ryz...@gmail.com> 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 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 javier...@gmail.com wrote:
>
>> 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, <hana....@gmail.com> wrote:
>>
>>> 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 to codenameone-discu...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/codenameone-discussions/c7b0a5b4-cfc9-48d8-85c6-7619272c6d2bn%40googlegroups.com
>>> <https://groups.google.com/d/msgid/codenameone-discussions/c7b0a5b4-cfc9-48d8-85c6-7619272c6d2bn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> 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 to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/5d4d76ec-87d6-4c2a-8cd4-e8343da1b77cn%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/5d4d76ec-87d6-4c2a-8cd4-e8343da1b77cn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAM9yc49ECYj1QZd36fbLaTBwSb1h26oj_FP25AxoJuUOz%2BaP1Q%40mail.gmail.com.

Reply via email to