In App Review

implementation 'com.google.android.play:core:1.10.0'
ReviewManager manager = ReviewManagerFactory.create(this);
Task<ReviewInfo> request = manager.requestReviewFlow();
request.addOnCompleteListener(new OnCompleteListener<ReviewInfo>() {
@Override
public void onComplete(@NonNull Task<ReviewInfo> task) {
if (task.isSuccessful()) {
// We can get the ReviewInfo object
reviewInfo = task.getResult();
lunchappreview(reviewInfo);
} else {
// There was some problem, log or handle the error code.
Toast.makeText(MainActivity.this, "Something went wrong", Toast.LENGTH_SHORT).show();
}
}
});
private void lunchappreview(ReviewInfo reviewInfo) {
// in app review last step
if(reviewInfo != null){
Task<Void> flow = manager.launchReviewFlow(this, reviewInfo);
flow.addOnCompleteListener(new OnCompleteListener<Void>() {
@Override
public void onComplete(@NonNull Task<Void> task) {
Toast.makeText(MainActivity.this, "Thanks for review the app", Toast.LENGTH_SHORT).show();
}
});
}

--

--

--

Android Developer || Web Developer || Software Engineering

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Firebase Crashlytics [All official development resources]

Continuously check Internet Connection and connection type

SplashActivity in Android Studio

One Tap sign in for Android apps

Hero banner decoration

Matt’s Tidbits #72 — Migrating from RxJava 2 -> 3

Jumping Into Flutter World.

Matt’s Tidbits #78 — A new build view

Fear of the Target SDK, a story of a Ransomware

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ahmed Basalib

Ahmed Basalib

Android Developer || Web Developer || Software Engineering

More from Medium

5 Tips To Speed Up Android App Development

Android Hilt, it’s magic! — Basic Setup Guide

Making Responsive UI in Android: Part-2

Why should I choose Android Development as a beginner?