- Dec 12, 2022
- 357
- 2
pals, after long time of back and forth where i asked and you answered and helped very much i am now on my "last mile" to finish my process with my apps.
so firstly thank you.
here are my two questions:
1:
is there a way to detect if an app is installed on the phone?
i have 2 apps A & B
A is the main (sdk 31) - i need to detect if B is installed (b is sdk 30 so it will be on external server not google store
)
i know how to catch the error if it does not exist when i need to run it, but i want to detect it before and with no dependency on running it
it is critical to take into account that it will run on all android versions including 13 and the app is on sdk 31 (on older versions i managed to do that but i need a solid solution for future sdks
2: (this is the "crazy" one)
can i add an apk file to my files in app A and run it to install it?
the meaning is to add app B's apk to the files list of app A and the use it to install on the device if it does not exist
this way i will...
so firstly thank you.
here are my two questions:
1:
is there a way to detect if an app is installed on the phone?
i have 2 apps A & B
A is the main (sdk 31) - i need to detect if B is installed (b is sdk 30 so it will be on external server not google store

i know how to catch the error if it does not exist when i need to run it, but i want to detect it before and with no dependency on running it
it is critical to take into account that it will run on all android versions including 13 and the app is on sdk 31 (on older versions i managed to do that but i need a solid solution for future sdks
2: (this is the "crazy" one)
can i add an apk file to my files in app A and run it to install it?
the meaning is to add app B's apk to the files list of app A and the use it to install on the device if it does not exist
this way i will...
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید