Yes. If the app is already started and it receives a call to open it with an argument, the app's start() method will be run again, and this time the AppArg will contain the new value.
On Tue, Sep 22, 2020 at 2:39 AM 'P5music' via CodenameOne Discussions < [email protected]> wrote: > I read in the documentation that it is possible to let the user open the > CodenameOne app by means of selecting an associated file type. > The instruction (let aside all settings necessary) is something like > String arg=Display.getInstance().getProperty("AppArg",null); > From the documentation I see that this is at startup, that is, the app > gets launched with that if the user wants the file. Value is null when the > app is started by tapping on its icon, if I am not wrong. > > But what if the app is already running, in both case it's in foreground or > in background? > > Thanks in advance > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/codenameone-discussions/bc969123-5366-4785-9eca-44ed804d8e19n%40googlegroups.com > <https://groups.google.com/d/msgid/codenameone-discussions/bc969123-5366-4785-9eca-44ed804d8e19n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Steve Hannah Software Developer Codename One http://www.codenameone.com -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKXRM6eGAR%3DxXv4hUEQsEKsd9A4YhovQBvSRVFZh1QPTUg%40mail.gmail.com.
