Maddy
Maddy

Reputation: 326

How to find the apk's is available or not from another apk in android

I have an android application which contains four modules(I mean four apk's).Each module has separate apk.But dependency is more among all the apk's. If all apk's available then my application works fine.But the problem is user can un-install any apk at any time.At that time application will crash. How to solve this problem. Is there anyway to find the availability of checking the apk's availability through programmatically ?.Or suggest me regarding this issue.

Please suggest me. Thanks in advance.

Regards Murthy

Upvotes: 0

Views: 378

Answers (2)

Regis St-Gelais
Regis St-Gelais

Reputation: 3251

if your apk is a data provider you can try to ask it for some data and catch the error.

Upvotes: 1

Nanne
Nanne

Reputation: 64399

If the 4 modules are dependent of each-other, I cannot see any reason you should release them as 4 seperate APK's. I'd suggest you release them as one APK, and solve your problems like that.

Upvotes: 1

Related Questions