<?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 Ahmed Basalib on Medium]]></title>
        <description><![CDATA[Stories by Ahmed Basalib on Medium]]></description>
        <link>https://medium.com/@ahmedbasalib17?source=rss-76526ae337b4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*8mJS52oHiLQHhvo2oQ3w8A.png</url>
            <title>Stories by Ahmed Basalib on Medium</title>
            <link>https://medium.com/@ahmedbasalib17?source=rss-76526ae337b4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 20:12:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ahmedbasalib17/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[In App Review]]></title>
            <link>https://ahmedbasalib17.medium.com/in-app-review-9fe64e30e26a?source=rss-76526ae337b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/9fe64e30e26a</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[android-studio]]></category>
            <dc:creator><![CDATA[Ahmed Basalib]]></dc:creator>
            <pubDate>Tue, 31 Aug 2021 14:41:06 GMT</pubDate>
            <atom:updated>2021-08-31T14:41:06.618Z</atom:updated>
            <content:encoded><![CDATA[<p>In App review Implementation using google play core library</p><p>The Google Play In-App Review API lets you prompt users to submit Play Store ratings and reviews without the inconvenience of leaving your app or game.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cuPfKPRRHQ_ujlaD_Gd5Vw.jpeg" /></figure><p>Steps:</p><p>1- Import the Play Core Library into your Android project as a Gradle dependency</p><pre>implementation &#39;com.google.android.play:core:1.10.0&#39;</pre><p>2- Create instance of ReviewManager</p><pre>ReviewManager manager = ReviewManagerFactory.create(this);</pre><p>3- Request a ReviewInfo object, use the <a href="https://developer.android.com/reference/com/google/android/play/core/review/ReviewManager">ReviewManager</a> instance to create a request task. If successful, the API returns the <a href="https://developer.android.com/reference/com/google/android/play/core/review/ReviewInfo">ReviewInfo</a> object needed to start the in-app review flow.</p><pre>Task&lt;ReviewInfo&gt; request = manager.requestReviewFlow();<br>request.addOnCompleteListener(new OnCompleteListener&lt;ReviewInfo&gt;() {<br>    @Override<br>    public void onComplete(@NonNull Task&lt;ReviewInfo&gt; task) {<br>        if (task.isSuccessful()) {<br>            // We can get the ReviewInfo object<br>            reviewInfo = task.getResult();<br>            lunchappreview(reviewInfo);<br>        } else {<br>            // There was some problem, log or handle the error code.<br>            Toast.<em>makeText</em>(MainActivity.this, &quot;Something went wrong&quot;, Toast.<em>LENGTH_SHORT</em>).show();<br>        }<br>    }<br>});</pre><p>4- Launch the in-app review flow , 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.</p><pre>private void lunchappreview(ReviewInfo reviewInfo) {<br>    // in app review last step<br>    if(reviewInfo != null){<br>        Task&lt;Void&gt; flow = manager.launchReviewFlow(this, reviewInfo);<br>        flow.addOnCompleteListener(new OnCompleteListener&lt;Void&gt;() {<br>            @Override<br>            public void onComplete(@NonNull Task&lt;Void&gt; task) {<br>                Toast.<em>makeText</em>(MainActivity.this, &quot;Thanks for review the app&quot;, Toast.<em>LENGTH_SHORT</em>).show();<br>            }<br>        });<br>    }</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9fe64e30e26a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Implement In app update For Your android app]]></title>
            <link>https://ahmedbasalib17.medium.com/implement-in-app-update-for-your-android-app-61699bcb549f?source=rss-76526ae337b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/61699bcb549f</guid>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[in-app-update]]></category>
            <dc:creator><![CDATA[Ahmed Basalib]]></dc:creator>
            <pubDate>Thu, 29 Jul 2021 08:43:14 GMT</pubDate>
            <atom:updated>2021-07-29T08:43:14.572Z</atom:updated>
            <content:encoded><![CDATA[<p><em>How to notify the users that a new version of your app is released</em></p><p>Your app can use the Play Core library to support the following UX flows for in-app updates:</p><h4>Flexible updates:</h4><p>Flexible updates provide background download and installation with graceful state monitoring. This UX flow is appropriate when it’s acceptable for the user to use the app while downloading the update</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/825/1*ZSMFKoplS4H4D4O6PADSUg.png" /></figure><h4>Immediate updates:</h4><p>Immediate updates are full screen UX flows that require the user to update and restart the app in order to continue using it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/528/1*nBbBDKQro5ga2R5Cn8tjCg.png" /></figure><p>Steps:</p><p>1- add the Play Core library to the Gradle file</p><pre>implementation &#39;com.google.android.play:core:1.10.0&#39;</pre><p>2- Check for update availability</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8e0dbab652fb9bc04b9d4af039a46ee2/href">https://medium.com/media/8e0dbab652fb9bc04b9d4af039a46ee2/href</a></iframe><p>3-Get a callback for update status by implementing onActivityResult()</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/266a0e4ea64249361dd96d371512f10e/href">https://medium.com/media/266a0e4ea64249361dd96d371512f10e/href</a></iframe><p>4-Create a listener to track request state updates.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/05eacaad30a57fefe378442b42fecbbb/href">https://medium.com/media/05eacaad30a57fefe378442b42fecbbb/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=61699bcb549f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Android -Working with Bottom Sheet]]></title>
            <link>https://ahmedbasalib17.medium.com/android-working-with-bottom-sheet-d7ab41c277e7?source=rss-76526ae337b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/d7ab41c277e7</guid>
            <category><![CDATA[android-design]]></category>
            <category><![CDATA[bottomsheet]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[android-app-development]]></category>
            <dc:creator><![CDATA[Ahmed Basalib]]></dc:creator>
            <pubDate>Fri, 11 Dec 2020 19:37:20 GMT</pubDate>
            <atom:updated>2020-12-11T19:37:20.732Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>What is Bottom Sheet in Android ?</blockquote><p>Android <a href="https://material.io/develop/android/components/sheets-bottom">Bottom Sheet</a> is a <strong>sheet</strong> that slides up from the <strong>bottom</strong> edge of the screen.</p><p>Android Bottom Sheet component slides up from the bottom showing some more options to the user. You can notice bottom sheets in apps like map apps (bottom sheet reveals location, directions information), music players (Play bar sticks to bottom and opens when swipe up).</p><h3>Types of Bottom Sheet</h3><ol><li>Modal Bottom Sheets</li><li>Persistent Bottom Sheet</li></ol><p>In this post will learn about Modal Bottom Sheets</p><p><strong><em>Modal Bottom Sheets:</em></strong></p><p>As the name suggests, these sheets behave like Modals or<br> dialogues. It have higher elevation than the app. It shadows the activity or fragment when activated. And if we tap outside the Bottom Sheet, it is dismissed just like a modal. A user can also slide up and slide down to activate and deactivate the Bottom Sheet, respectively. Below are the examples of modal bottom sheet of Google Drive app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*RREHAF9tBtEpZ8Zb5WBivw.png" /></figure><p><strong>Modal Bottom Sheets implementation</strong></p><p><strong>Step 1: </strong>create style for the bottom sheet</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f8fb7acc5a4476e11d75558320e37b5f/href">https://medium.com/media/f8fb7acc5a4476e11d75558320e37b5f/href</a></iframe><p><strong>Step 2: </strong>design resource layout that you want to show in bottom sheet</p><p><strong>Step 3: </strong>In MainActivity.java initialize the BottomSheetDialog and take your XML file that define a layout, and converting them into View objects. Then set the content of the view to BottomSheetDialog object</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/beb35d75fba0e7a36bb4d66577cb4fec/href">https://medium.com/media/beb35d75fba0e7a36bb4d66577cb4fec/href</a></iframe><p><strong>Result:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/296/1*-WPq-_IS5QN5OGyAM8jkjw.gif" /></figure><p><strong><em>Source Code:</em></strong></p><p><a href="https://github.com/Ahmed-Basalib10/Model_Bottom_Sheet_Dialog">Ahmed-Basalib10/Model_Bottom_Sheet_Dialog</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d7ab41c277e7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Create Custom Toast in Android]]></title>
            <link>https://ahmedbasalib17.medium.com/how-to-create-custom-toast-in-android-f7e0d53ae4a?source=rss-76526ae337b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7e0d53ae4a</guid>
            <category><![CDATA[custom-toast]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[toast]]></category>
            <category><![CDATA[android-app-development]]></category>
            <dc:creator><![CDATA[Ahmed Basalib]]></dc:creator>
            <pubDate>Thu, 10 Dec 2020 19:17:44 GMT</pubDate>
            <atom:updated>2020-12-10T19:17:44.043Z</atom:updated>
            <content:encoded><![CDATA[<p>Make your Toast more attractive</p><p>You can implement custom toast in two ways:</p><blockquote>Method 1 : create your own toast layout without external resources</blockquote><blockquote>Method 2 : You can use external libraries to make custom toast</blockquote><h4>First will implement Custom Toast using method 1</h4><p><strong>Steps:</strong></p><p><strong>Step 1: </strong>create drawable file for background</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/93f16f4527b44074cec9475ecc36e463/href">https://medium.com/media/93f16f4527b44074cec9475ecc36e463/href</a></iframe><p><strong>Step 2: </strong>create custom layout</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4d70a3ccfbd46e57eb54a0a53a5666b4/href">https://medium.com/media/4d70a3ccfbd46e57eb54a0a53a5666b4/href</a></iframe><p><strong>Step 3: </strong>inflate the layout into view and set into toast object</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cb127094317089af027fca1d11245f4d/href">https://medium.com/media/cb127094317089af027fca1d11245f4d/href</a></iframe><h4><strong>Next will implement Custom Toast using method 2</strong></h4><p>There are many external libraries to implement custom toast <br>but in this post we will use Toasty library. In this library there are 5 types of custom toast:<br>success , error , info , warning and normal</p><p><strong>Steps:</strong></p><p><strong>Step 1: </strong>Add this in your root build.gradle file (not your module build.gradle file):</p><pre>allprojects {<br>      repositories {<br>           …<br>               maven { url “<a href="https://jitpack.io/">https://jitpack.io</a>&quot; }<br> }<br>}</pre><p><strong>Step 2: </strong>Add this to your module’s build.gradle file (make sure the version matches the JitPack badge above):</p><pre>dependencies {<br>	...<br>	implementation &#39;com.github.GrenderG:Toasty:1.5.0&#39;<br>}</pre><p><strong>Step 3: G</strong>o to java file and show the toast as below</p><pre>Toasty.success(getApplicationContext(),&quot;This is success toast&quot;,Toast.LENGTH_LONG).show();</pre><pre>// or </pre><pre>Toasty.error(getApplicationContext(),&quot;This is error toast&quot;,Toast.LENGTH_LONG).show();</pre><p>Result:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/312/1*0u9Mvcdt0zccRDWZSNnZwA.gif" /></figure><p><strong><em>Source code:</em></strong></p><p><a href="https://github.com/Ahmed-Basalib10/CustomToast">Ahmed-Basalib10/CustomToast</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7e0d53ae4a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>