why are you so fixated on getting the app to auto-install? It suggests you
are
trying to accomplish something underhanded, when there are simple and
customary ways to install apps.
s.
On Wednesday, July 29, 2020 at 7:04:27 PM UTC-7, Shai Almog wrote:
>
> There's no path to app. Apps work in isolation in devices. So one app
> can't see the files of another app. On Android they have different user IDs
> for each app to keep them completely isolated in the kernel level.
> Something like this should (probably) work:
>
> execute("intent:#Intent;scheme=customapp;package=com.my_package.name
> ;end");
>
> Where you need to set "com.my_package.name" to the package of the app you
> want to launch.
> On Wednesday, July 29, 2020 at 11:19:44 PM UTC+3 [email protected]
> wrote:
>
>> Can you please advise how I can open an app that is installed on my
>> device i assume using Display.getInstance().execute(path to app) or is
>> there another preferred method to do this?
>>
>> Is there documentation regarding this?
>>
>> On Wednesday, July 29, 2020 at 7:37:18 AM UTC-4, Mark Bolduc wrote:
>>>
>>> Thanks.
>>>
>>> On Tuesday, July 28, 2020 at 10:34:58 PM UTC-4, Shai Almog wrote:
>>>>
>>>> If you provide a standard https URL the default browser will launch. As
>>>> a sidenote you can provide URLs such as "fb:" to launch facebook and other
>>>> apps.
>>>> So standard URLs use Chrome/Safari or whatever you have defined.
>>>>
>>>> file:/// won't work. That's not an Android URI. You need to look for
>>>> the intent you want. Alternatively you can use a native interface for this
>>>> which might be simpler since you're doing something that's very platform
>>>> specific.
>>>>
>>>> On Tuesday, July 28, 2020 at 8:04:43 PM UTC+3 [email protected]
>>>> wrote:
>>>>
>>>>> Ok, I have successfully stored my .apk file in the public
>>>>> /storage/emulated/0/Download/ directory, I can then open a FileManager,
>>>>> tap
>>>>> downloads, Tam my app and it installs correctly.
>>>>>
>>>>> So the question is how can I envoke this "File Manager" app installed
>>>>> on my device.
>>>>> I can't find its location.
>>>>>
>>>>> Once I have its location, can I use
>>>>> "Display.getInstance().execute("file:///[path to file manager app]")" to
>>>>> open the FileManager app?
>>>>>
>>>>> Thoughts?
>>>>>
>>>>> Regards
>>>>>
>>>>
--
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/28d6f442-6349-4b56-b690-71603e503ebdo%40googlegroups.com.