<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Shivesh Karan Mehta on Medium]]></title>
        <description><![CDATA[Stories by Shivesh Karan Mehta on Medium]]></description>
        <link>https://medium.com/@shiveshmehta09?source=rss-5d30ceb80a34------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*H-H1RhRCxzmWSZZuhOVGyQ@2x.jpeg</url>
            <title>Stories by Shivesh Karan Mehta on Medium</title>
            <link>https://medium.com/@shiveshmehta09?source=rss-5d30ceb80a34------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 02:13:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shiveshmehta09/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Reviewing App Using New In-App Review API]]></title>
            <link>https://medium.com/@shiveshmehta09/reviewing-app-using-new-in-app-review-api-74c4ac1f6a4c?source=rss-5d30ceb80a34------2</link>
            <guid isPermaLink="false">https://medium.com/p/74c4ac1f6a4c</guid>
            <category><![CDATA[androiddev]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[in-app-marketing]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Shivesh Karan Mehta]]></dc:creator>
            <pubDate>Wed, 12 Aug 2020 11:04:25 GMT</pubDate>
            <atom:updated>2020-08-12T11:59:26.153Z</atom:updated>
            <content:encoded><![CDATA[<h3>Playstore Review now from within the app using new In-App Review API</h3><p>Previously when users wanted to give feedback or review, they had to go to play store for that, because there was not a single standard API for prompting the app rating dialog directly to rate or review the app.</p><p>Google has recently launched the new <strong>In-app review API</strong>, which supports giving feedback and rating without leaving the app. Isn’t it cool?</p><p>Every developer wanted this for so long. Now we have this API. Let’s learn how we can implement this in our App(This API is production-ready, so you can directly use it in your production)</p><p>There are some guidelines provided by the Google team, let’s take a quick look at this, and then we will proceed to the implementation part. 😉</p><h3>Requirements:-</h3><p>In-app reviews only work on the following devices:</p><ul><li>Android devices (phones and tablets) running <strong><em>Android 5.0 (API level 21)</em></strong><em> </em>or higher that have the Google Play Store installed.</li><li>Chrome OS devices that have the Google Play Store installed.</li><li>To integrate in-app reviews in your app, your app <strong><em>must use version 1.8.0</em></strong> or higher of the <a href="https://developer.android.com/guide/playcore">Play Core library</a>.</li></ul><h3>Design guidelines:-</h3><p>Follow these guidelines as you determine how to integrate in-app reviews in your app:</p><ul><li>Surface the card as-is, without tampering or modifying the existing design in any way, including size, opacity, shape, or other properties.</li><li>Do not add any overlay on top of the card or around the card.</li><li>The card and the card’s background should be on the topmost layer. Once the card has surfaced, do not programmatically remove the card. The card is removed automatically based on either the user’s explicit action or an internal Play Store mechanism.</li></ul><p><em>Don’t do any malpractice to bypass this, Just follow as it is </em>😁</p><h3>How to Use this:-</h3><p>let’s jump into the code part-</p><p>1- Add <a href="https://developer.android.com/guide/playcore">play core</a> dependency in your <em>build.gradle</em> file.</p><pre>// So, make sure you also include that repository in your project’s build.gradle file.<br>    implementation ‘com.google.android.play:core:1.8.0’</pre><pre>// For Kotlin users also import the Kotlin extensions library for Play Core:<br>    implementation ‘com.google.android.play:core-ktx:1.8.1’<br>    ...<br>}</pre><p>2- Create the ReviewManager instance and use the <a href="https://developer.android.com/reference/com/google/android/play/core/review/ReviewManager">ReviewManager</a> instance to create a requested task.</p><pre>private var reviewInfo: ReviewInfo? = null<br>private lateinit var reviewManager: ReviewManager<br>--------------------</pre><pre>reviewManager = ReviewManagerFactory.create(this)<br>val request = reviewManager.requestReviewFlow()<br>request.addOnCompleteListener { request -&gt;<br>    if (request.isSuccessful) {<br>        // We got the ReviewInfo object<br>        reviewInfo = request.result</pre><pre>} else {<br>     // There was some problem, continue regardless of the result.<br>        reviewInfo = null   <br> }<br>}</pre><p>3- Use the <a href="https://developer.android.com/reference/com/google/android/play/core/review/ReviewInfo">ReviewInfo</a> instance to launch the in-app review flow. Do not write any logic inside this method because this method will not show the dialog always. (This will purely depend on <strong><em>quota</em></strong>)</p><pre>reviewInfo?.let {<br>val flow = reviewManager.launchReviewFlow(this,it)<br>    flow.addOnSuccessListener {}<br>    flow.addOnFailureListener {}<br>    flow.addOnCompleteListener {}<br>}</pre><p>That’s all code you have to write it in your class.</p><p><strong>Note:-</strong> <em>Don’t trigger this in any button or views click as this is not necessary that it will trigger because It is purely dependent on the system and also maybe the user has given the feedback and rating earlier so be careful.</em></p><h3>Now the time is to test this feature:-</h3><p>In-app reviews require your app to be published in Play Store. However, you can test your integration without publishing your app to production using either <strong>internal test tracks </strong>or<strong> internal app sharing.</strong></p><p><strong><em>I would suggest that you should use the internal app sharing method.</em></strong></p><h4>Limitations:-</h4><p>1- If the user has already reviewed the app.</p><p>2- Quota has been reached.</p><p><strong>Now the question comes in mind what do you mean by Quota?</strong></p><p>To provide great user experience, <em>Google Play enforces a quota on how often a user can be shown the review dialog.</em> Because of this, calling a launchReviewFlow method might not always display a dialog. For example, you should <strong>not</strong> have a <em>call-to-action</em> option (<strong>such as a button</strong>) to trigger a review as a user might have already hit their quota and the flow won’t be shown, presenting a broken experience to the user.</p><h4>Important Tips:-</h4><p><strong>The quota limits are not enforced if the app is downloaded from the internal test track.</strong></p><p>That’s all folks, Now you can get your hands into it and start implementing and get more number of reviews for your app, as the user can rate while using your app. 😁</p><h4>Screenshots:-</h4><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*iZKLSomVPzv2uNGhsfy5Fg.png" /><figcaption>Demo Image after implementing this piece of code 😝</figcaption></figure><p>If you like it do share and like the tutorial 😬</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74c4ac1f6a4c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Taking Screenshot Programmatically Using PixelCopy Api]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-snippet">Taking a screenshot programmatically in an Android Application can be very easy. It will be very helpful for developers when user reports&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@shiveshmehta09/taking-screenshot-programmatically-using-pixelcopy-api-83c84643b02a?source=rss-5d30ceb80a34------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@shiveshmehta09/taking-screenshot-programmatically-using-pixelcopy-api-83c84643b02a?source=rss-5d30ceb80a34------2</link>
            <guid isPermaLink="false">https://medium.com/p/83c84643b02a</guid>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[pixelcopy]]></category>
            <category><![CDATA[androiddev]]></category>
            <dc:creator><![CDATA[Shivesh Karan Mehta]]></dc:creator>
            <pubDate>Sat, 26 Jan 2019 19:14:01 GMT</pubDate>
            <atom:updated>2025-09-30T21:12:16.775Z</atom:updated>
        </item>
    </channel>
</rss>