<?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 Mansi Shah on Medium]]></title>
        <description><![CDATA[Stories by Mansi Shah on Medium]]></description>
        <link>https://medium.com/@mansikothari115?source=rss-803571b558b5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*6gAo15hYUh9cdmgHLIE6ZA.jpeg</url>
            <title>Stories by Mansi Shah on Medium</title>
            <link>https://medium.com/@mansikothari115?source=rss-803571b558b5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 05:32:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mansikothari115/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[10 Essential Third-Party Libraries in Android]]></title>
            <link>https://medium.com/@mansikothari115/10-essential-third-party-libraries-in-android-794965601dd8?source=rss-803571b558b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/794965601dd8</guid>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[third-party-library]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Mansi Shah]]></dc:creator>
            <pubDate>Tue, 02 Jul 2024 07:44:28 GMT</pubDate>
            <atom:updated>2024-07-02T07:44:28.147Z</atom:updated>
            <content:encoded><![CDATA[<p>Android Libraries Bank 🏦</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*af1OTRKlo5b637TrlIMGkg.jpeg" /><figcaption>Photo by Pixabay from Pexels: <a href="https://www.pexels.com/photo/silhouette-of-man-247899/">https://www.pexels.com/photo/silhouette-of-man-247899/</a></figcaption></figure><p>In Android development, there are numerous third-party libraries that can help developers simplify their coding, improve their app’s performance, and add new features.</p><p>I want to share some of the third-party libraries I use on a daily basis when starting a project from scratch. The following are my absolute favorite libraries; I have used them in several projects. Here are 10 essential libraries for Android:</p><ol><li><a href="https://github.com/square/retrofit"><strong>Retrofit</strong></a>: It is a type-safe HTTP client library that helps developers easily consume RESTful web services in their Android app. It includes the popular HTTP client <strong>OkHttp</strong> lib for connection pooling, caching, and request interception. Also, includes <strong>Gson </strong>lib<strong> </strong>for serializing and deserializing JSON data.</li><li><a href="https://github.com/bumptech/glide"><strong>Glide</strong></a>: It is an image loading and caching library that supports GIFs, and video stills, and automatically caches images to improve app performance.</li><li><a href="https://developer.android.com/kotlin/coroutines"><strong>Kotlin Coroutines</strong></a>: The preferred way to handle asynchronous operations in Kotlin, providing a lightweight and efficient alternative to callbacks or RxJava.</li><li><a href="https://developer.android.com/jetpack/androidx/releases/room"><strong>Room</strong></a>: It is a database library that provides an easy-to-use SQLite abstraction layer and helps to manage app data in a more efficient and performant way.</li><li><a href="https://developer.android.com/training/dependency-injection/hilt-android"><strong>Hilt</strong></a>: The recommended dependency injection library for Android, built on top of Dagger which simplifies the setup and management of dependencies.</li><li><a href="http://site.mockito.org/"><strong>Mockito</strong></a>: A mocking framework for creating test doubles and verifying interactions between components.</li><li><a href="https://github.com/intuit/sdp"><strong>Intuit</strong></a> (<a href="https://github.com/intuit/ssp">SSP</a>/<a href="https://github.com/intuit/sdp">SDP</a>): An android lib that provides a new size unit — sdp (scalable dp) &amp; ssp (scalable sp). This size unit scales with the screen size &amp; text size. It can help Android developers support multiple screens.</li><li><a href="https://firebase.google.com/docs/crashlytics"><strong>Firebase Crashlytics</strong></a>: It is a crash reporting library for Android, iOS, and web applications provided by Google’s Firebase platform. It helps you track, analyze, and troubleshoot app crashes and errors in real-time.</li><li><a href="https://github.com/androidx/media"><strong>Media3 Exoplayer</strong></a>: Media3 is a new suite of libraries that provides media playback capabilities for Android apps. It aims to replace ExoPlayer and other Android media components on Android.</li><li><a href="https://github.com/PhilJay/MPAndroidChart"><strong>MPAndroidChart</strong></a>: A powerful &amp; easy-to-use chart library for Android.</li></ol><p>That’s a wrap for now! Many more to come 💥<br>I hope you find this blog helpful.</p><figure><a href="https://www.buymeacoffee.com/mansik15"><img alt="" src="https://cdn-images-1.medium.com/max/273/1*4lGQJq3nVQhXatvhmtmm9w.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=794965601dd8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Working with MotionLayout in Android]]></title>
            <link>https://medium.com/@mansikothari115/working-with-motionlayout-in-android-774cf6fc35c5?source=rss-803571b558b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/774cf6fc35c5</guid>
            <category><![CDATA[motionlayout]]></category>
            <category><![CDATA[animation]]></category>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Mansi Shah]]></dc:creator>
            <pubDate>Wed, 05 Apr 2023 12:37:36 GMT</pubDate>
            <atom:updated>2023-04-05T12:39:34.604Z</atom:updated>
            <content:encoded><![CDATA[<h4>An excellent way to manage motion &amp; widget animation in your app.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*b62sV_WM6ixksdVt" /><figcaption>Photo by <a href="https://unsplash.com/@sebastiansvenson?utm_source=medium&amp;utm_medium=referral">Sebastian Svenson</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>MotionLayout is a container that allows you to create complex animations and transitions between different UI using keyframes and constraints. It is a subclass of ConstraintLayout and is part of the AndroidX library.</p><p>With MotionLayout, you can define animations that define the start and end states of the animation, and MotionLayout will automatically generate the intermediate frames needed to smoothly transition between those states. The animations can include movements, rotations, scaling, alpha fading, and more.</p><p>Below are the steps to create an animation using MotionLayout in your app:</p><ol><li>Add the following dependency to your app’s build.gradle file:</li></ol><pre>implementation &#39;androidx.constraintlayout:constraintlayout:2.1.4&#39;</pre><p>2. Create a MotionLayout in your XML layout file and define the start and end states of the animation using ConstraintSets. Here’s an example:</p><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br>&lt;!-- activity_main.xml --&gt;<br>&lt;androidx.constraintlayout.motion.widget.MotionLayout<br>   xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;<br>   xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;<br>   xmlns:tools=&quot;http://schemas.android.com/tools&quot;<br>   android:id=&quot;@+id/motionLayout&quot;<br>   android:background=&quot;@color/black&quot;<br>   android:layout_width=&quot;match_parent&quot;<br>   android:layout_height=&quot;match_parent&quot;<br>   app:layoutDescription=&quot;@xml/motion_scene&quot;<br>   app:motionDebug=&quot;SHOW_PATH&quot;<br>   tools:showPaths=&quot;true&quot;&gt;<br><br>   &lt;ImageView<br>       android:id=&quot;@+id/star&quot;<br>       android:layout_width=&quot;wrap_content&quot;<br>       android:layout_height=&quot;wrap_content&quot;<br>       android:src=&quot;@drawable/ic_star&quot;/&gt;<br><br>&lt;/androidx.constraintlayout.motion.widget.MotionLayout&gt;</pre><p>3. Create a motion_scene.xml file in Res &gt; XML folder that defines the animation. In this file, you can define keyframes that specify the different states of the animation and the transition between those states. Check the code below:</p><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br>&lt;MotionScene<br>   xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;<br>   xmlns:motion=&quot;http://schemas.android.com/apk/res-auto&quot;&gt;<br><br>   &lt;Transition<br>       motion:constraintSetStart=&quot;@+id/start&quot;<br>       motion:constraintSetEnd=&quot;@+id/end&quot;<br>       motion:duration=&quot;1000&quot;<br>       motion:motionInterpolator=&quot;linear&quot;&gt;<br>       &lt;OnSwipe<br>           motion:touchAnchorId=&quot;@+id/star&quot;<br>           motion:touchAnchorSide=&quot;right&quot;<br>           motion:dragDirection=&quot;dragRight&quot; /&gt;<br><br>       &lt;KeyFrameSet&gt;<br>           &lt;KeyPosition<br>               motion:keyPositionType=&quot;pathRelative&quot;<br>               motion:percentY=&quot;-0.25&quot;<br>               motion:framePosition=&quot;50&quot;<br>               motion:motionTarget=&quot;@id/star&quot;/&gt;<br>       &lt;/KeyFrameSet&gt;<br>   &lt;/Transition&gt;<br><br>   &lt;ConstraintSet android:id=&quot;@+id/start&quot;&gt;<br>       &lt;Constraint<br>           android:id=&quot;@id/star&quot;<br>           android:layout_width=&quot;wrap_content&quot;<br>           android:layout_height=&quot;wrap_content&quot;<br>           android:src=&quot;@drawable/ic_star&quot;<br>           android:layout_marginStart=&quot;8dp&quot;<br>           motion:layout_constraintBottom_toBottomOf=&quot;parent&quot;<br>           motion:layout_constraintStart_toStartOf=&quot;parent&quot;<br>           motion:layout_constraintTop_toTopOf=&quot;parent&quot;&gt;<br>           &lt;CustomAttribute<br>               motion:attributeName=&quot;BackgroundColor&quot;<br>               motion:customColorValue=&quot;#FFEB3B&quot;/&gt;<br>       &lt;/Constraint&gt;<br>   &lt;/ConstraintSet&gt;<br><br>   &lt;ConstraintSet android:id=&quot;@+id/end&quot;&gt;<br>       &lt;Constraint<br>           android:id=&quot;@id/star&quot;<br>           android:layout_width=&quot;wrap_content&quot;<br>           android:layout_height=&quot;wrap_content&quot;<br>           android:src=&quot;@drawable/ic_star&quot;<br>           android:layout_marginEnd=&quot;8dp&quot;<br>           motion:layout_constraintBottom_toBottomOf=&quot;parent&quot;<br>           motion:layout_constraintEnd_toEndOf=&quot;parent&quot;<br>           motion:layout_constraintTop_toTopOf=&quot;parent&quot;&gt;<br>           &lt;CustomAttribute<br>               motion:attributeName=&quot;BackgroundColor&quot;<br>               motion:customColorValue=&quot;#F53224&quot;/&gt;<br>       &lt;/Constraint&gt;<br>   &lt;/ConstraintSet&gt;<br><br>&lt;/MotionScene&gt;</pre><p>In this example, we define a single Transition that specifies the start and end ConstraintSets.</p><p>4. Finally, we apply the animation to the MotionLayout by adding <em>app:layoutDescription=”@xml/motion_scene” </em>to MotionLayout in activity_main.xml file.</p><p>5. Interpolated Attributes in Motion Layout:</p><p>They refer to the changes that occur in animation over time. When creating animations in MotionLayout, you can use these interpolated attributes to define how an element moves, changes size, or rotates over time.</p><ul><li><strong>TranslationX and TranslationY:</strong> These attributes control an element’s horizontal and vertical movement, respectively.</li><li><strong>ScaleX and ScaleY:</strong> These attributes control the size of an element as it moves through an animation.</li><li><strong>Rotation: </strong>This attribute controls the rotation of an element around its center point.</li><li><strong>Alpha:</strong> This attribute controls the transparency of an element, allowing it to fade in or out during an animation.</li><li><strong>Elevation: </strong>This attribute controls the z-axis positioning of an element, allowing it to appear above or below other elements.</li></ul><p>6. Custom Attributes:</p><p>These attributes are not defined by default in MotionLayout; but can be added by the developer. These attributes can be used to set custom view properties, such as colors, fonts, or animations. To use custom attributes in MotionLayout, you must define them in your layout file first.</p><p>To define a custom attribute, you can use the “CustomAttribute” tag in your XML layout file as below.</p><pre>&lt;CustomAttribute<br> motion:attributeName=&quot;BackgroundColor&quot;<br> motion:customColorValue=&quot;#F53224&quot;/&gt;</pre><h3>Conclusion</h3><p>In conclusion, MotionLayout is a powerful tool for creating complex animations and transitions in Android apps. It allows you to define keyframes and constraints to create smooth and intuitive user experiences, and it can be used for a wide range of use cases, from simple animations to complex UI interactions.</p><p>While MotionLayout have a high learning curve compared to other animation libraries, the end result is worth the effort. It can make a significant impact on the user experience and set your app apart from the competition.</p><p>That’s a wrap for now! Many more to come 💥<br>You can access the source code from <a href="https://github.com/mansik15/InMotionApplication.git">Github</a>.<br>I hope you find this blog helpful.</p><figure><a href="https://www.buymeacoffee.com/mansik15"><img alt="" src="https://cdn-images-1.medium.com/max/273/1*4lGQJq3nVQhXatvhmtmm9w.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=774cf6fc35c5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Jetpack WindowManager Library]]></title>
            <link>https://medium.com/jetpack-composers/jetpack-windowmanager-library-1327889b86d4?source=rss-803571b558b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/1327889b86d4</guid>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[foldable-phone]]></category>
            <category><![CDATA[jetpack-compose]]></category>
            <dc:creator><![CDATA[Mansi Shah]]></dc:creator>
            <pubDate>Wed, 25 Jan 2023 12:29:29 GMT</pubDate>
            <atom:updated>2023-01-25T12:29:29.371Z</atom:updated>
            <content:encoded><![CDATA[<h4>Support foldable devices with Jetpack WindowManager</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*aZYm22-JMKTHiwMP" /><figcaption>Photo by <a href="https://unsplash.com/@onurbinay?utm_source=medium&amp;utm_medium=referral">Onur Binay</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>What is Jetpack WindowManager?</h3><p>Jetpack WindowManager is a new feature of Jetpack that allows Android apps to support foldable devices, such as the Samsung Galaxy Fold, by creating a new view hierarchy with the folding view as its root component.</p><p>Support for foldable devices begins with <strong>responsive design</strong>. For XML-based layouts, implement the responsive design with <strong>ConstraintLayout, y</strong>ou may handle different layouts and styles for different states by using different resources (e.g. layout-fold and layout-unfold); for Compose, <strong>BoxWithConstraints</strong>.</p><p>Jetpack WindowManager supports both horizontal and vertical folding views. In addition to supporting multiple levels of folding views, you can also control whether each level is visible or not using a setVisibility() method on your custom view hierarchy. This allows you to support different levels of visibility for each folded state of your app’s UI.</p><p><strong>There are two types of foldable devices:</strong></p><ol><li><strong>Single-screen foldable devices</strong>, with one screen that can be folded. Users can run multiple apps on the same screen at the same time using <a href="https://developer.android.com/guide/topics/ui/multi-window">multi-window</a> mode.</li><li><strong>Dual-screen foldable devices</strong>, with two screens, joined by a hinge. These devices can be folded as well, but they have two different logical display regions.</li></ol><p><strong>Foldable devices support different postures:</strong></p><ol><li><strong>Spanning, the </strong>app is spanned (displayed) across the whole display region.</li><li><strong>Folded, </strong>a logical split between the part of the screen that’s flat and the part that’s tilted towards you, and tent mode.</li></ol><h3>Let’s Get Started with the basics!</h3><p>To support foldable devices with Jetpack WindowManager in an Android app, you will need to make use of the androidx.window.window class and its associated methods. Here is an example of how to do this:</p><ul><li>First, import the packages in your app&#39;s main activity using the dependencyimplement androidx.window.window:$windowmanager_version</li></ul><pre>import androidx.window.layout.WindowInfoTracker<br>import androidx.window.layout.WindowLayoutInfo<br>import androidx.window.layout.WindowMetricsCalculator</pre><ul><li>Next, create an instance of the WindowInfoTracker class in the onCreate() method of your main activity.</li></ul><pre>windowInfoTracker = WindowInfoTracker.getOrCreate(this@MainActivity)</pre><ul><li>WindowInfoTracker is a class that is used to track and manage information about the windows that are currently open on the device. This class is responsible for maintaining a list of all open windows, including their size, position, and other properties. It also provides methods for manipulating and interacting with these windows, such as resizing, moving, and closing them. <br>Here we will update the UI once windowLayoutInfo collect the value.</li></ul><pre>windowInfoTracker.windowLayoutInfo(this@MainActivity)<br>                    .collect { value -&gt;<br>                        updateUI(value)<br>                    }</pre><ul><li>Next, add a function to determine the appropriate layout and size based on the device’s screen size and resolution. <strong>WindowMetricsCalculator</strong> class is used to calculate and manage the metrics for a window, such as its size, position, and visibility.</li></ul><pre>private fun obtainWindowMetrics() {<br>        val wmc = WindowMetricsCalculator.getOrCreate()<br>        val currentWM = wmc.computeCurrentWindowMetrics(this).bounds.flattenToString()<br>        val maximumWM = wmc.computeMaximumWindowMetrics(this).bounds.flattenToString()<br>        binding.windowMetrics.text =<br>            &quot;CurrentWindowMetrics: ${currentWM}\nMaximumWindowMetrics: ${maximumWM}&quot;<br>    }</pre><ul><li>Now, update the UI according to WindowLayoutInfo’s displayFeature, If the screen is spanned or folded.</li></ul><pre>private fun updateUI(newLayoutInfo: WindowLayoutInfo) {<br>        binding.layoutChange.text = newLayoutInfo.toString()<br>        if (newLayoutInfo.displayFeatures.isNotEmpty()) {<br>            binding.configurationChanged.text = &quot;Spanned across displays&quot;<br>        } else {<br>            binding.configurationChanged.text = &quot;One logic/physical display - unspanned&quot;<br>        }<br>    }</pre><p>And it’s done💥 You have successfully given support for foldable devices in your app now! <br>Find the source code <a href="https://github.com/mansik15/FoldableApp.git">here</a>.</p><h3>Conclusion</h3><p>Jetpack WindowManager helps us with new form factor devices such as foldable.</p><p>It’s also important to keep in mind that foldable devices are still relatively new and that it’s still an experimental feature, so you should test your app thoroughly on foldable devices to ensure that it works as expected.</p><p>That’s a wrap for now! Many more to come 💥 <br>I hope you find this blog helpful.</p><figure><a href="https://www.buymeacoffee.com/mansik15"><img alt="" src="https://cdn-images-1.medium.com/max/273/1*4lGQJq3nVQhXatvhmtmm9w.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1327889b86d4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/jetpack-composers/jetpack-windowmanager-library-1327889b86d4">Jetpack WindowManager Library</a> was originally published in <a href="https://medium.com/jetpack-composers">Jetpack Composers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I attended GDG Devfest Event FIRST Time!]]></title>
            <link>https://medium.com/@mansikothari115/i-attended-gdg-devfest-event-first-time-4879610f07eb?source=rss-803571b558b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/4879610f07eb</guid>
            <category><![CDATA[gdgahmedabad]]></category>
            <category><![CDATA[gde]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Mansi Shah]]></dc:creator>
            <pubDate>Mon, 23 Jan 2023 14:57:08 GMT</pubDate>
            <atom:updated>2023-01-24T12:34:01.960Z</atom:updated>
            <content:encoded><![CDATA[<h4>Insights of DevFest Ahmedabad 2022</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qv3Uuv7pJgmJQm7oaYKPHg@2x.jpeg" /></figure><p>GDG Devfest Ahmedabad event was held on 17th Dec 2022 in the Courtyard Marriott, organized by <a href="https://gdg.community.dev/gdg-ahmedabad/">GDG Ahmedabad</a> with the help of Mr. <a href="https://medium.com/u/7dfe42c4a95b">Paresh Mayani</a> &amp; <a href="https://www.meetup.com/gdg-ahmedabad/">Team</a>. It is an yearly event. The event was full of fun, learning &amp; interesting conversations. It was my first time attending this event so let me share my experience with you all!</p><h3>So what is GDG?</h3><p>It is a Google Developers Group, that organizes TechTalks, Hackathons, and Seminars around Google technologies and open-source technologies to encourage knowledge sharing.</p><p>GDG Ahmedabad brings together experts in Android, Web, and Cloud technologies to <strong>Ahmedabad</strong> for sessions, workshops, and showcases.</p><h3>Highlights of the event</h3><ul><li>Sessions from some great speakers</li><li>Meeting Android/Flutter GDEs in-person</li><li>Networking with community people</li><li>Swags</li></ul><h3>Registration ✉️</h3><p>I registered through <a href="https://www.meetup.com/gdg-ahmedabad/events/289997175/">meetup</a> (It was paid), and I am a member of this group since 2020. Out of 1500+ registrations, 600 people are filtered out as final attendees. There were many volunteers as well. The process was very smooth, got a badge at a desk by scanning a QR code. After getting badges the opening ceremony started. They introduced the organizers &amp; the whole team, talked about the future of technology, and we played fun games.</p><h3>Mobile Track 📱</h3><p>After the opening ceremony, we were divided into parts &amp; headed to separate halls. There were mainly three tracks: <strong>Web, Mobile &amp; Start-up</strong>. I registered for Mobile Track as I am into Android &amp; Flutter application development. In this track, I attended sessions by some great speakers &amp; GDEs.</p><ol><li><strong>Adit Lal:</strong> The first session was taken by Adit Lal, Android GDE. He explained Compose UI Layouts, design patterns, <a href="https://github.com/aldefy/Andromeda">Andromeda</a>, and CompositionLocalProvider.</li><li><a href="https://medium.com/u/3213b7df96a2"><strong>Priya Sindkar</strong></a><strong>:</strong> She is a senior Android developer. She explained the new release of the Google play billing library <a href="https://medium.com/novumlogic/understanding-google-play-billing-library-v5-0-android-e6ea7b201298">Billing API v5.0</a> in detail. In version 5.0, they have different subscription plans(weekly, monthly, yearly), offers, and upgrades to retain users. She also explained how to use the kotlin extensions with a billing library and talked about backward compatibility.</li><li><a href="https://medium.com/u/9aa4b1addb2e"><strong>Pawan Kumar</strong></a>: He is a GDE for Flutter. He has explained the future of Web2 with Web3. blockchain, crypto, NFT, Smart contracts, Transaction, Truffle, 3 packages: web, web wallet, wallet core on a pub.dev, Ganache, Frontier product.</li><li><strong>Chintan Khetiya &amp; </strong><a href="https://medium.com/u/1b35f44ddc45"><strong>PRANAY PATEL</strong></a>: Another session was taken by two senior Android developers. Their talk contained code review automation, <a href="https://www.sonarqube.org/downloads/">SonarQube</a>, Static Code Analysis in Jetpack Compose, SonarForAndroid, detekt, ktlint, kotlinter-gradle, twitter compose rules, Shell script, GitHook, etc. It was totally new topic for me, and very informative!</li></ol><h3>Networking 🔗</h3><p>There was a time slot allotted for networking at the event. You can connect with like-minded community people in person, chat, and discuss topics in depth. Also, get to know about some good opportunities out there to grab. Also, I made new friends!</p><h3>Food 🍕</h3><p>Delicious breakfast, lunch &amp; high tea was served to all participants of the event by organizers.</p><h3>Swags 🎁</h3><p>Most awaited moment, right?😃 After the closing ceremony, every participant was rewarded with cool swags like T-shirts, diaries, tech stickers, etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6mBFHTEZg-4SVnqrDL9Zog@2x.jpeg" /></figure><h3>Final Thoughts</h3><p>GDG Events are for developers who are interested in Google’s developer technology. <br>In my opinion, this kind of event is very helpful for the professional growth of any developer &amp; feel they are addictive too😃 I am looking forward to attending more such events.</p><p>I am glad you are here &amp; hope you enjoyed my story! 🙌</p><p>Let’s connect: <a href="https://linktr.ee/mansik15">https://linktr.ee/mansik15</a></p><p>Peace &amp; Love!! 💚</p><figure><a href="https://www.buymeacoffee.com/mansik15"><img alt="" src="https://cdn-images-1.medium.com/max/273/1*4lGQJq3nVQhXatvhmtmm9w.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4879610f07eb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[10 Websites to Up Your Game as an Android Developer!]]></title>
            <link>https://medium.com/illumination/10-websites-to-up-your-game-as-an-android-developer-2ab8b6aed326?source=rss-803571b558b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/2ab8b6aed326</guid>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[resources]]></category>
            <category><![CDATA[kotlin]]></category>
            <dc:creator><![CDATA[Mansi Shah]]></dc:creator>
            <pubDate>Thu, 24 Nov 2022 04:54:04 GMT</pubDate>
            <atom:updated>2022-12-16T06:24:35.999Z</atom:updated>
            <content:encoded><![CDATA[<h4>Must-have Android Stuff❗️</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3aMSNqoa06xFu5kk" /><figcaption><a href="https://unsplash.com/photos/i3WlrO7oAHA">Photo </a>by <a href="https://unsplash.com/@mluotio83?utm_source=medium&amp;utm_medium=referral">Miikka Luotio</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Hey Android Devs 💚<br>In our professional career, as we gain some years of experience, we need to go for excellence, perfection &amp; leadership as the next step. To achieve it, I follow the below ten steps religiously that I would like to share with you all.</p><h3>Let’s Begin…🎯</h3><ol><li><a href="https://www.meetup.com/home/?suggested=true&amp;source=EVENTS"><strong>meetup.com</strong></a>: This is my personal favorite. I have been a member here since 2020. You can join the group/community, learn new concepts, meet like-minded people, expand your network, and attend events online or offline. <strong><em>Community is really important for your professional as well as personal growth.</em></strong></li><li><a href="https://developer.android.com/"><strong>developer.android.com</strong></a>: It is an official website with classes, codelabs, videos, event updates, etc. You can also earn badges by completing codelabs. I have earned a few as well &amp; developed my <a href="https://developers.google.com/profile/u/108457095474786528579">Google Developer Profile</a>.<br>Also, you can connect with local developers by joining a community near you from <a href="https://gdg.community.dev/">here</a>. I am a member of <a href="https://gdg.community.dev/gdg-ahmedabad/">GDG Ahmedabad</a>.</li><li><a href="https://github.com/android"><strong>github.com/android</strong></a>: It has several public repositories with android app source codes. You can clone the repo, go through the code, run the app &amp; learn new things!</li><li><a href="https://www.udacity.com/"><strong>udacity.com</strong></a>: You can find paid or free courses from here taught by any professional and get certified upon completion. Udacity <a href="https://www.udacity.com/course/android-kotlin-developer-nanodegree--nd940">nanodegree</a> paid program is offering hands-on Kotlin projects and mentor support.</li><li><a href="https://medium.com/"><strong>medium.com</strong></a>: Of course, you are here to read the great stuff, but are you still following some good Android publications like <a href="https://proandroiddev.com/">ProAndroidDev</a>, <a href="https://medium.com/androiddevelopers">Android Developers</a>, <a href="https://blog.kotlin-academy.com/">kt.Academy</a>, <a href="https://medium.com/mindorks">MindOrks</a>, <a href="https://medium.com/jetpack-composers">Jetpack Composers</a>, etc. It will help a lot in understanding concepts in simpler ways with examples.</li><li><a href="https://www.udemy.com/"><strong>udemy.com</strong></a>: You can find n number of excellent courses taught by experts in the industry and get certified. Also, it has a Q&amp;A section so you can clear your doubt with the instructor.</li><li><a href="https://www.reddit.com/r/androiddev/"><strong>reddit.com/r/androiddev</strong></a>: Here, you can participate in open discussions around shared interests and get answers from highly engaged niche communities.</li><li><a href="https://appicon.co/"><strong>appicon.co</strong></a>: It is helpful to generate different size app launcher icons for your Android apps.</li><li><a href="https://icons8.com/"><strong>icons8.com</strong></a>: Get some cool 3D icons, GIFs &amp; illustrations to add to your Android app for free to make it more beautiful &amp; lively.</li><li><a href="https://www.canva.com/"><strong>canva.com</strong></a>: You can craft your ideas here; they have some very good templates available for designing, whether it is a logo, website, presentation, or post. It’s worth trying; I recently learned it and enjoyed creating my own stuff.</li></ol><h3>Newsletter 📰</h3><p>Also, I have subscribed to <a href="https://androidweekly.net/">Android Weekly</a> and <a href="http://www.kotlinweekly.net/">Kotlin Weekly</a> to stay up-to-date with the latest releases from Google Developers.</p><h3>Certification 🏆</h3><p>You can take an Associate Android Developer certification exam, which Google provides for all Android Developers. <br>It is a performance-based evaluation in which you will be given a coding project based on a starter app. You will be asked to add functionality and fix bugs in this project. They have also provided a <a href="https://developers.google.com/certification/associate-android-developer/study-guide">Study Guide</a> for preparation.</p><p>That’s a wrap for now! Many more to come 💥<br>You can find all my profiles here: <a href="https://linktr.ee/mansik15">Linktree</a>. <br>I hope you find this blog helpful.</p><figure><a href="https://www.buymeacoffee.com/mansik15"><img alt="" src="https://cdn-images-1.medium.com/max/273/1*4lGQJq3nVQhXatvhmtmm9w.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ab8b6aed326" width="1" height="1" alt=""><hr><p><a href="https://medium.com/illumination/10-websites-to-up-your-game-as-an-android-developer-2ab8b6aed326">10 Websites to Up Your Game as an Android Developer!</a> was originally published in <a href="https://medium.com/illumination">ILLUMINATION</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Beginner’s Guide to Better Blogging]]></title>
            <link>https://medium.com/illumination/a-beginners-guide-to-better-blogging-9874b9f2496f?source=rss-803571b558b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/9874b9f2496f</guid>
            <category><![CDATA[begginer-tips]]></category>
            <category><![CDATA[writing-tips]]></category>
            <category><![CDATA[writing]]></category>
            <category><![CDATA[blogging]]></category>
            <dc:creator><![CDATA[Mansi Shah]]></dc:creator>
            <pubDate>Wed, 02 Nov 2022 07:24:31 GMT</pubDate>
            <atom:updated>2022-11-06T12:40:11.176Z</atom:updated>
            <content:encoded><![CDATA[<h4>It’s never too late to start.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fHjGYs-jgxwxJDKp5ZmqDw.jpeg" /><figcaption><a href="https://www.pexels.com/photo/close-up-photo-of-book-pages-2877338/">Photo </a>by <a href="https://www.pexels.com/@ravikant/">Ravi Kant </a>at <a href="https://www.pexels.com/">Pexels</a></figcaption></figure><p>I am a newbie in writing. I wanted to improve myself, so I took a course on <a href="https://www.linkedin.com/learning/subscription/topics?src=go-pa&amp;trk=sem-ga_campid=9764329640_asid=102279866120_crid=428931010987_kw=linkedin%20learning_d=c_tid=kwd-310582843911_n=g_mt=e_geo=1007740_slid=&amp;mcid=6841855808129646768&amp;cid=&amp;gclid=CjwKCAjw7p6aBhBiEiwA83fGujRGctBSj9MAbOiXL1KirZYW8WKBUUsWS6ft5SttZe7wdzAVR4VQihoC0VcQAvD_BwE&amp;gclsrc=aw.ds">LinkedIn Learning</a> about blogging. I would like to share with you all my takeaways from that course.</p><h3>Let’s Begin… 📝</h3><ol><li>Build trust between your readers by sharing facts or personal experiences. You can also share details about yourself.</li><li>Be knowledgeable enough for small details in your post. No guesswork!</li><li>Share genuine links. Verify them personally before you share.</li><li>Stay focused and stick to a clear point. Your Intro should be short, clear &amp; informative.</li><li>Bring a fresh perspective to the topic. You can pick any old or new topic and share your thoughts. Develop your voice.</li><li>Have a passion for the subject you write about; otherwise, writing becomes boring.</li><li>Use focused headlines &amp; subheads for SEO purposes. Think &amp; write headlines every day.</li><li>Use number points, the most popular format, and bullets if needed.</li><li>Grammer mistakes are the most common &amp; worse. Try to avoid them using writing assistants like Grammarly.</li><li>Be consistent when posting a blog. You can publish posts once a week but draft your thoughts every day!</li><li>Start <strong>freewriting</strong> daily. It will help you improve your writing skill &amp; filter your thoughts.</li><li>Word count: The shorter blog posts generate more comments, and longer blog posts are shared more on social media. Google search engine promotes blogs with 2500 words. An average person can read 150 -300 words per minute, so that you can write up to 600–700 words per post. Respect your reader&#39;s time.</li><li>Make posts engaging by using images &amp; videos in the blog. Make sure you give credit to the owner if you have imported media from external resources. If you are a creative person who likes to create your media, you can use tools like Canva. While adding images, videos or GIFs, see if you are not breaking the reader’s flow.</li><li>CTA (calls to action) at the end of the blog for a higher engagement rate. You can ask readers a question at the end of the blog.</li><li><strong>My Tip:</strong> I draft a blog &amp; do not publish it for a week. Yes, you heard it right! I go through my drafted post every alternative day &amp; each time, I find some improvements.</li></ol><p>That’s a wrap for now! Many more to come 💥<br>I hope you find this blog helpful. <br>Happy Blogging! <strong><em>📓</em></strong></p><figure><a href="https://www.buymeacoffee.com/mansik15"><img alt="" src="https://cdn-images-1.medium.com/max/273/1*4lGQJq3nVQhXatvhmtmm9w.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9874b9f2496f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/illumination/a-beginners-guide-to-better-blogging-9874b9f2496f">A Beginner’s Guide to Better Blogging</a> was originally published in <a href="https://medium.com/illumination">ILLUMINATION</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Jetpack Compose: BOM]]></title>
            <link>https://medium.com/jetpack-composers/jetpack-compose-bom-38e36a43b8cb?source=rss-803571b558b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/38e36a43b8cb</guid>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[bom]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[jetpack-compose]]></category>
            <category><![CDATA[android-app-development]]></category>
            <dc:creator><![CDATA[Mansi Shah]]></dc:creator>
            <pubDate>Mon, 31 Oct 2022 17:18:53 GMT</pubDate>
            <atom:updated>2022-10-31T17:18:53.854Z</atom:updated>
            <content:encoded><![CDATA[<h4>A quick look at the Compose Bill of Materials.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZKkwldYv846myUm9P4cifg.png" /></figure><h3>What is BOM?</h3><p>The Bill of Materials (BOM) will allow you to manage versions of all your Compose libraries by specifying only the BOM’s version. The BOM has links to the stable versions of the different Compose libraries, in such a way that all the libraries that you’re using in your app are automatically updated to their new versions.</p><h3>Why use BOM?</h3><p><strong>What it offers:</strong></p><ul><li>BOM helps you to automatically use the latest versions of Compose libraries.</li><li>Various Jetpack Compose libraries are moved to independent versioning, so it’s easy to use all of the latest stable versions at the same time.</li><li>Using the BOM ensures that the versions of any Compose libraries in your app are compatible.</li><li>BOM works with version catalogs too.</li></ul><p><strong>What it doesn’t:</strong></p><ul><li>BOM doesn’t actually add the Compose libraries to your app, you must declare each library as a dependency in the Gradle file.</li><li>Compose Compiler library isn’t included in the BOM.</li></ul><blockquote>You can still add each dependency version manually. BOM is not mandatory, it provides a way to make library upgrades easy.</blockquote><h3>How to use BOM?</h3><p>Add the below Compose BOM dependency in the app/build.gradle file. Make sure you have target SDK version 33. After importing the dependency successfully, declare all your compose libraries in the Gradle dependencies block without versions as shown below.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d7e3b8a6b364c94f9a4605618f10fe25/href">https://medium.com/media/d7e3b8a6b364c94f9a4605618f10fe25/href</a></iframe><p><strong>Now how to use a different library version than the one declared in the BOM? </strong>In the dependencies section, on the library dependency import, specify the desired version. For example, if you want to use an alpha version of Material 3, add a dependency implementation &#39;androidx.compose.material3:material3:1.1.0-alpha01&#39;no matter what version is designated in the BOM, it will consider the declared alpha version of material 3.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8f167cd40a48ab58ec293445ae025247/href">https://medium.com/media/8f167cd40a48ab58ec293445ae025247/href</a></iframe><p>That’s it! Now whenever you will update the BOM version from 2022.10.00 to the new version, all other compose library versions will be extracted from that automatically.</p><p>To find out which Compose library versions are mapped to a specific BOM version, check out the <a href="https://developer.android.com/jetpack/compose/setup#bom-version-mapping">BOM to Library version mapping</a></p><p>That’s a wrap for now! Many more to come 💥<br>You can access the source code from <a href="https://github.com/mansik15/CounterStateApp.git">Github</a>.<br>I hope you find this blog helpful.</p><figure><a href="https://www.buymeacoffee.com/mansik15"><img alt="" src="https://cdn-images-1.medium.com/max/273/1*4lGQJq3nVQhXatvhmtmm9w.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=38e36a43b8cb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/jetpack-composers/jetpack-compose-bom-38e36a43b8cb">Jetpack Compose: BOM</a> was originally published in <a href="https://medium.com/jetpack-composers">Jetpack Composers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[About Me — Mansi Shah]]></title>
            <link>https://medium.com/about-me-stories/about-me-mansi-shah-c251badab849?source=rss-803571b558b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/c251badab849</guid>
            <category><![CDATA[blogging]]></category>
            <category><![CDATA[about-me]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <dc:creator><![CDATA[Mansi Shah]]></dc:creator>
            <pubDate>Fri, 21 Oct 2022 13:07:48 GMT</pubDate>
            <atom:updated>2022-10-27T12:28:44.781Z</atom:updated>
            <content:encoded><![CDATA[<h3>About Me — Mansi Shah</h3><h4>Creating mobile applications &amp; writing technical stuff for a living.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6gAo15hYUh9cdmgHLIE6ZA.jpeg" /><figcaption>Photo of Author Mansi Shah</figcaption></figure><blockquote>Do not give up today.</blockquote><h3>Quick Intro</h3><p>I am born &amp; brought up in India with all Gujarati traditions (yes, I’m a Gujju). I have done BTech IT Engineering from DDU. I am a woman doing a 9–5 corporate job, with random business ideas on my mind. I am interested in Mobile Application Development using Kotlin &amp; Dart.</p><h3>Working Me</h3><p>I work full-time as a Lead Android Engineer at a Software Company in Ahmedabad, Gujarat. I have hands-on experience in Java, Kotlin, and Dart. I am obsessed with &amp; learning Jetpack Compose nowadays! I am also a Flutter enthusiast, worked on 1 or 2 projects.<br>I write technical stuff from my learnings &amp; experiences.</p><h3>Traveling Me</h3><p>I am a travel geek. I love to explore offbeat places in India &amp; outside world (accompanied &amp; motivated by my husband 😄).</p><h3>Creative Me</h3><p>I am a painting lover too. When I’m not coding &amp; cooking, you can find me with pencils &amp; brushes.</p><p>Website: <a href="https://linktr.ee/mansik15">https://linktr.ee/mansik15</a></p><p>I hope you know me better now 💁</p><p>Peace &amp; Love!! 💚</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c251badab849" width="1" height="1" alt=""><hr><p><a href="https://medium.com/about-me-stories/about-me-mansi-shah-c251badab849">About Me — Mansi Shah</a> was originally published in <a href="https://medium.com/about-me-stories">About Me Stories</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Jetpack Compose: State Hoisting]]></title>
            <link>https://medium.com/jetpack-composers/jetpack-compose-state-hoisting-6de56150f3aa?source=rss-803571b558b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/6de56150f3aa</guid>
            <category><![CDATA[jetpack-compose]]></category>
            <category><![CDATA[state-management]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[kotlin]]></category>
            <dc:creator><![CDATA[Mansi Shah]]></dc:creator>
            <pubDate>Thu, 20 Oct 2022 12:38:39 GMT</pubDate>
            <atom:updated>2022-10-20T12:38:39.679Z</atom:updated>
            <content:encoded><![CDATA[<h4>How does the app’s state determine what is displayed in the UI?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0WBRkEjtCzXKCFRvTqqCKA.png" /></figure><p>As a part of a self-learning program launched for all developers in my company, I took a course <a href="https://www.udemy.com/course/android-architecture-componentsmvvm-with-dagger-retrofit/">Android Jetpack Bootcamp 2022</a> from Udemy. I would like to share my learnings from that course with you all.</p><p>I will start with Composition and Recomposition followed by the type of states &amp; APIs provided by Jetpack Compose.</p><h3>Composition &amp; Recomposition</h3><p><strong>Composition: </strong>The UI of your app is initially built by running composable functions in a process called Composition.</p><blockquote>Composable functions have their own lifecycle that is independent of the Activity lifecycle. Its lifecycle is composed of the events: enters the Composition, recomposing 0 or more times, and then leaving the Composition.</blockquote><p><strong>Recomposition</strong>: When the state changes, UI will be regenerated and a recomposition is scheduled. Recomposition is when Compose re-executes the composable functions with new data whose state might have changed and created an updated UI.</p><h3>State in Compose</h3><p>The state determines what is shown in the UI at any particular time. An app’s “state” is any value that can change over time. Jetpack compose has a reactive approach for storing state in a variable, we need to use MutableStateOf or observable like LiveData, Flow, etc for the same.</p><p>Let’s take an example of a Counter app to understand State, which increases the count when a button clicks.</p><ul><li><strong>MutableStateOf: </strong>To indicate to Compose that it should track an object’s state, the object needs to be of type State(immutable) or MutableState(mutable).</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2f4bb591b2dd38464d6d29d9ac6a362a/href">https://medium.com/media/2f4bb591b2dd38464d6d29d9ac6a362a/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/75c87bd78adc48c4b0d05b808f4a47f6/href">https://medium.com/media/75c87bd78adc48c4b0d05b808f4a47f6/href</a></iframe><p>Above as you can see, <strong>MutableStateOf</strong> does the work but it is not the best way, because in jetpack compose every composable function recomposes independently so it can give unexpected results if we use the same variable with multiple composable functions. Here comes the remember API in the picture.</p><ul><li><strong>remember</strong> <strong>API</strong>: To instruct Compose to retain and reuse its value during recompositions, you need to declare it with the remember API. It is used as a guard against the recomposition to avoid the state being reset.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ca46a6c3e163aa8541b5c4a836620359/href">https://medium.com/media/ca46a6c3e163aa8541b5c4a836620359/href</a></iframe><p>The above code won’t work if we rotate the device from let’s say portrait to landscape. It will not retain the state of the count variable. Here comes the rememberSavable API in the picture.</p><ul><li><strong>rememberSavable</strong> <strong>API</strong>: It is used to save values that you need if Android OS destroys and recreates the activity. Use rememberSaveable to save values during recompositions AND configuration changes. Use “by” <strong>Property Delegation.</strong></li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b1e8cd37af633324748cf67df28f9ee9/href">https://medium.com/media/b1e8cd37af633324748cf67df28f9ee9/href</a></iframe><p>There are two types of composable functions available:</p><ul><li><strong>Stateful</strong> <strong>Composable</strong> —it defines the internal state &amp; controls it. A composable function with an internal state is called a Stateful Composable.</li><li><strong>Stateless</strong> <strong>Composable</strong> — it doesn’t hold any state. Stateless Composables are used to display static UI.</li></ul><p>Let’s understand Stateful composable in detail with state hoisting pattern.</p><h3><strong>State Hoisting</strong></h3><p>It is a pattern of moving the state of the composable to its caller to make it stateless and sending the event(i.e. onClick event) from caller to composable.</p><p>Two parameters should be added while applying state hoisting to the composable function:</p><ol><li>Current value to display</li><li>An event that requests a change of current value</li></ol><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/006d2d8a0865ad54a4c580451fbb1c47/href">https://medium.com/media/006d2d8a0865ad54a4c580451fbb1c47/href</a></iframe><p>In the above code, we added a <strong>currentCount</strong> as the first param to display text on the Button and a <strong>updateCount</strong> lambda function as a second param to increase a count on button click in the MyButton composable function.</p><h3>UDF (UniDirectional Data Flow)</h3><p><strong>In this design pattern, the State goes down while the Event goes up.</strong> In the above code, <strong>currentCount</strong> goes down to the MyButton function, and the button’s onClick event <strong>updateCount</strong> goes up to MainActivity’s setContent method.</p><p>State hoisting is the main pattern used in UDF architecture. It provides a single source of truth.</p><h3><strong>Pros</strong></h3><ul><li>Easy unit testing</li><li>Avoid the risk of sharing state by encapsulating it</li></ul><h3>Final Code</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/01b6a9cce7a1cbf7c80a2fdb8558badf/href">https://medium.com/media/01b6a9cce7a1cbf7c80a2fdb8558badf/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/dd6660ce4debfd99d61014eb98a13dcc/href">https://medium.com/media/dd6660ce4debfd99d61014eb98a13dcc/href</a></iframe><h3>Final Result</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgfycat.com%2Fifr%2Fdisfiguredgentledegus&amp;display_name=Gfycat&amp;url=https%3A%2F%2Fgfycat.com%2Fdisfiguredgentledegus&amp;image=https%3A%2F%2Fthumbs.gfycat.com%2FDisfiguredGentleDegus-size_restricted.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=gfycat" width="1440" height="2560" frameborder="0" scrolling="no"><a href="https://medium.com/media/a354e390dadd72fe4007df5a5120a6b7/href">https://medium.com/media/a354e390dadd72fe4007df5a5120a6b7/href</a></iframe><p>That’s a wrap for now! Many more Jetpack Compose topics to come 💥<br>You can access the source code from <a href="https://github.com/mansik15/CounterStateApp">Github</a>.<br>I hope you find this blog helpful.</p><figure><a href="https://www.buymeacoffee.com/mansik15"><img alt="" src="https://cdn-images-1.medium.com/max/273/1*4lGQJq3nVQhXatvhmtmm9w.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6de56150f3aa" width="1" height="1" alt=""><hr><p><a href="https://medium.com/jetpack-composers/jetpack-compose-state-hoisting-6de56150f3aa">Jetpack Compose: State Hoisting</a> was originally published in <a href="https://medium.com/jetpack-composers">Jetpack Composers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Modern Android Interview Questions]]></title>
            <link>https://proandroiddev.com/modern-android-interview-questions-f2b9889102ee?source=rss-803571b558b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/f2b9889102ee</guid>
            <category><![CDATA[java]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[interview-questions]]></category>
            <category><![CDATA[jetpack-compose]]></category>
            <category><![CDATA[kotlin]]></category>
            <dc:creator><![CDATA[Mansi Shah]]></dc:creator>
            <pubDate>Fri, 14 Oct 2022 08:33:33 GMT</pubDate>
            <atom:updated>2022-10-31T06:25:14.607Z</atom:updated>
            <content:encoded><![CDATA[<h4>Android Interview Question Bank 🏦</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-cmlHFDmrJU3SdgekC2Vcw.png" /></figure><p>Hey Android Devs 💚, <br>I am working as a full-time Android Developer for a long time now in a client-based IT company. And during my service, I am fortunate enough to appear in a few client interviews for MNCs &amp; startups as well. <strong>My intent to write this blog is to share my past interview experiences &amp; help you all out with your journey.</strong></p><p>I habitually note down questions immediately after completing my interview round. I have listed down below some interview questions for senior developers and tried to include answers to most questions as well.</p><p>I have also attached the Codelab link to try coding examples &amp; Quiz links for the MCQ round at the end of this blog. Also, I have added a publication link to learn jetpack Compose from scratch with example code as it’s a hot skill nowadays!</p><h3>Java ☕️</h3><ul><li>What is the diff between encapsulation &amp; abstraction (practical example) — <a href="https://www.javatpoint.com/abstraction-vs-encapsulation-in-java#:~:text=Abstraction%20is%20a%20feature%20of,issue%20at%20the%20design%20level.">Check here</a></li><li>HashMaps vs HashTables — <a href="https://www.geeksforgeeks.org/differences-between-hashmap-and-hashtable-in-java/">Check here</a></li><li>When to use array &amp; ArrayList — <a href="https://www.javatpoint.com/difference-between-array-and-arraylist">Check here</a></li><li>What is the volatile keyword — <a href="https://www.javatpoint.com/volatile-keyword-in-java#:~:text=Volatile%20keyword%20is%20used%20to,with%20primitive%20type%20or%20objects.">Check here</a></li><li>What is the transient keyword — <a href="https://www.javatpoint.com/transient-keyword">Check here</a></li><li>What is a diff between a string buffer &amp; string builder — <a href="https://www.digitalocean.com/community/tutorials/string-vs-stringbuffer-vs-stringbuilder">Check here</a></li><li>Why is string immutable — <a href="https://www.digitalocean.com/community/tutorials/string-vs-stringbuffer-vs-stringbuilder">Check here</a></li><li>Explain multithreading. How two threads pass messages internally — <a href="https://developer.android.com/reference/android/os/Handler#:~:text=A%20Handler%20allows%20you%20to,is%20bound%20to%20a%20Looper%20.">Handler</a></li><li>class A -&gt; extends class B, implements interface C. Both have the same method fun add() {}, Which one will be implemented in class A?<br><a href="https://pl.kotl.in/fRTo80wWr">Try yourself</a></li><li>What is the difference between String test = new String(“X”) &amp; String test = “X”. Explain String constant pool &amp; String literal — <a href="https://www.javatpoint.com/string-pool-in-java">Check here</a></li></ul><h3>Android</h3><ul><li>When I am in my activity onResume() &amp; get a phone call what will be the lifecycle of the fragment inside my activity — <a href="https://pl.kotl.in/fRTo80wWr">Try yourself</a></li><li>Explain context &amp; applicationContext, also a practical example — <a href="https://www.geeksforgeeks.org/what-is-context-in-android/#:~:text=Both%20the%20Activity%20and%20Application,both%20extend%20the%20Context%20class.">Check here</a></li><li>what is the difference between ViewModel and AndroidViewModel — <a href="https://stackoverflow.com/questions/44148966/androidviewmodel-vs-viewmodel">Check here</a></li><li>what is the diff between MVP &amp; MVVM — <a href="https://blog.mindorks.com/mvc-mvp-mvvm-architecture-in-android">Check here</a></li><li>Tell me any method of broadcast receiver except onReceive() — <a href="https://developer.android.com/reference/android/content/BroadcastReceiver#summary">Check here</a></li><li>How Broadcast receiver is used for the network (WIFI) changes — <a href="https://www.geeksforgeeks.org/broadcast-receiver-in-android-with-example/">Check here</a></li><li>Type of services in Android — <a href="https://www.geeksforgeeks.org/services-in-android-with-example/">Check here</a></li><li>Is the Intent service run on background or main thread — <a href="https://stackoverflow.com/a/15772151/14241355">Check here</a></li><li>Explain FCM foreground &amp; background notifications — <a href="https://firebase.google.com/docs/cloud-messaging/android/receive">Check here</a></li><li>Design patterns in Android — <a href="https://blog.mindorks.com/mastering-design-patterns-in-android-with-kotlin">Check here</a></li><li>What do you think about NavHost in navigation? — <a href="https://developer.android.com/guide/navigation/navigation-getting-started#add-navhost">Check here</a></li><li>Explain database management using SQLite, Room &amp; Realm — <a href="https://medium.com/bitrise/realm-vs-sqlite-which-database-is-better-for-android-apps-c751dc8b150c">Check here</a></li><li>What is a foreign key in Room DB? Why do we use it? — <a href="https://stackoverflow.com/a/56707343/14241355">Check here</a></li><li>What is doze mode, and when is it introduced? — <a href="https://medium.com/mindorks/you-have-to-know-more-about-doze-mode-3d80f016f8ad">Check here</a></li><li>what is ADB, can you tell me any commands? — <a href="https://devhints.io/adb">Cheatsheet</a></li><li>what is linting in Android — <a href="https://blog.mindorks.com/what-is-lint-what-is-it-used-for">Check here</a></li><li>What is Rxjava, and how it works? — <a href="https://blog.mindorks.com/rxjava-for-android-rxandroid">Check here</a></li><li>What are SOLID principles? — <a href="https://www.geeksforgeeks.org/solid-principle-in-programming-understand-with-real-life-examples/">Check here</a></li><li>Have you worked with any other hardware systems? (i.e. I have worked with Clover POS system)</li><li>What is KMM? — <a href="https://kotlinlang.org/docs/multiplatform.html">Check here</a></li></ul><h3>Kotlin</h3><ul><li>What are the benefits of Kotlin over Java</li><li>Explain the use of lateinit &amp; lazy keywords</li><li>In any class we have a member variable or function, so how can we make a getter setter of that variable?</li><li>What is MVVM, and how does it work? what is the use of Live data?</li><li>What is null safety in Kotlin?</li><li>What is the diff between Var &amp; Val</li><li>What is Elvis operator?</li><li>What is Flow API in Kotlin — <a href="https://developer.android.com/kotlin/flow">Check here</a></li><li>Explain coroutines in kotlin</li><li>What are scoped functions in kotlin</li><li>How can you declare a singleton class</li><li>what is the diff between companion obj &amp; object</li><li>used extension functions? example</li><li>what is the diff between static &amp; singleton &gt; Singleton has an instance/object while static class is a bunch of static methods.</li><li>what is constant</li><li>Explain <a href="http://twitter.com/jvmstatic">@jvmstatic</a> <a href="http://twitter.com/jvmoverloads">@jvmoverloads</a> <a href="http://twitter.com/jvmfiled">@jvmfiled</a></li></ul><blockquote>You can get most of the Kotlin <strong>answers</strong> here: <br><a href="https://blog.mindorks.com/kotlin-android-interview-questions">https://blog.mindorks.com/kotlin-android-interview-questions</a></blockquote><h3>Jetpack Compose 🚀</h3><ul><li>What are the benefits of using Jetpack compose?</li><li>What is a Composable function?</li><li>What is a declarative approach?</li><li>What jetpack compose libraries have you used?</li><li>Explain compose UI basic components</li></ul><blockquote>Jetpack compose blogs with Github examples: <a href="https://medium.com/jetpack-composers">Jetpack Composers</a></blockquote><h3>Testing 🐛</h3><ul><li>In Unit testing, what is @Before &amp; @Beforeclass annotation used for — <a href="https://www.baeldung.com/junit-before-beforeclass-beforeeach-beforeall">Check here</a></li><li>Why should we use a <a href="https://blog.mindorks.com/using-mockito-in-android-unit-testing-as-a-pro">Mockito</a> lib?</li><li>Explain <a href="https://developer.android.com/training/testing/local-tests">Unit</a> &amp; <a href="https://developer.android.com/training/testing/instrumented-tests">Instrumentation</a> tests</li></ul><blockquote>Espresso Testing Library: <a href="https://medium.com/@mansikothari115/espresso-ui-testing-for-intents-in-android-a81660e8e93">Espresso UI Testing for Intents</a></blockquote><h3>Data Structure</h3><ul><li>The time complexity of Hash Table —<strong> O(1)</strong></li><li>Best for getting the last item — <strong>Stack</strong></li><li>Time Complexity of Binary Search — <strong>O(log N)</strong></li><li>Which is best Sorting Algo — <strong>Quick Sort</strong></li><li>Best performance for finding minimum value — <strong>Array</strong></li></ul><h3>Others</h3><p>If you have <strong>5+ years</strong> of experience, it’s recommended to prepare for this section.</p><ul><li>Explain one of your challenging/exciting/recent project</li><li>VCS — Git — PR review process, CI/CD process</li><li>Explain deep linking</li><li>About NDK, c++</li><li>What other languages do you know apart from Kotlin?</li><li>Explain the architecture of the communication application, and what data security measures you take while developing.</li><li>How do you keep up to date yourself with the latest development?</li><li>Any contribution to the community? Git, StackOverflow</li></ul><h3>Kotlin Online Quiz ❔</h3><p><a href="https://kotlinquiz.com/">https://kotlinquiz.com/</a><br><a href="https://developer.android.com/s/results/?q=quiz">https://developer.android.com/s/results/?q=quiz</a></p><h3>Codelabs</h3><p><a href="https://developer.android.com/courses/">https://developer.android.com/courses/</a></p><p>That’s a wrap for now! Many more to come 💥<br>I hope you find this blog helpful. <br>All the best!<strong><em> 👍</em></strong></p><figure><a href="https://www.buymeacoffee.com/mansik15"><img alt="" src="https://cdn-images-1.medium.com/max/273/1*4lGQJq3nVQhXatvhmtmm9w.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f2b9889102ee" width="1" height="1" alt=""><hr><p><a href="https://proandroiddev.com/modern-android-interview-questions-f2b9889102ee">Modern Android Interview Questions</a> was originally published in <a href="https://proandroiddev.com/">ProAndroidDev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>