I am developing an app which contain list of app ,what I have to do is when user click on particular app from list he will be redirected to google play store and download that app after that if success download show a toast and if not then show error toast message in my app .To archeive this I have used Intent with callback but I dont know how to make call back .Kindly help me.
here is my code:-
Uri uri = Uri.parse("https://play.google.com");// sending to Deal Website
Intent i = new Intent(Intent.ACTION_VIEW, uri);
startActivity(i);