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 not have to send the client to download it (currently i load it using the browser and installs it from the browser)
this way it will be much easier to update and maintain both apps and no need to store it in 3rd location
will it pass google store ?
is it really crazy or can i do it? (how?)
thankss
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 not have to send the client to download it (currently i load it using the browser and installs it from the browser)
this way it will be much easier to update and maintain both apps and no need to store it in 3rd location
will it pass google store ?
is it really crazy or can i do it? (how?)
thankss