I downloaded apk file from url(my server) and save it in sdcard. If user install it from sdcard, I want to know, whether is any notification that app is installed successfully or is app istalled in device. Is there any callback on installed app
Share
try this code :
to get the package name of the app easily : just search your app in the
google play website, and then you will take the id parameter ( it is the package name of the app) . Example :you will search on Youtube app on google play , and you will find it in this url :
https://play.google.com/store/apps/details?id=com.google.android.youtube&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5nb29nbGUuYW5kcm9pZC55b3V0dWJlIl0.
the package name is the id param, so it is :
com.google.android.youtubeAnd then when you want to test , you will just have :
PLUS : if you want to get the list of all installed apps in you device , you can find your answer in this tutorial