<?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 Sudish Kumar on Medium]]></title>
        <description><![CDATA[Stories by Sudish Kumar on Medium]]></description>
        <link>https://medium.com/@sudishkumar-edugaon?source=rss-1ccde3c1ec3d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*QgITM8Zz0lEW3pqaWYg_9g.jpeg</url>
            <title>Stories by Sudish Kumar on Medium</title>
            <link>https://medium.com/@sudishkumar-edugaon?source=rss-1ccde3c1ec3d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 03:32:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sudishkumar-edugaon/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[That Night on the River: A True Horror Story That Still Gives Me Chills]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://sudishkumar-edugaon.medium.com/that-night-on-the-river-a-true-horror-story-that-still-gives-me-chills-46070abab246?source=rss-1ccde3c1ec3d------2"><img src="https://cdn-images-1.medium.com/max/1024/1*SQHVrhhYFToKJFcSQtCaZw.png" width="1024"></a></p><p class="medium-feed-snippet">Hello everyone,
Today I&#x2019;m going to share a story that was not read in a book, nor heard from strangers. This story was told to me by my&#x2026;</p><p class="medium-feed-link"><a href="https://sudishkumar-edugaon.medium.com/that-night-on-the-river-a-true-horror-story-that-still-gives-me-chills-46070abab246?source=rss-1ccde3c1ec3d------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://sudishkumar-edugaon.medium.com/that-night-on-the-river-a-true-horror-story-that-still-gives-me-chills-46070abab246?source=rss-1ccde3c1ec3d------2</link>
            <guid isPermaLink="false">https://medium.com/p/46070abab246</guid>
            <category><![CDATA[short-story]]></category>
            <category><![CDATA[true-story]]></category>
            <category><![CDATA[ghosts]]></category>
            <category><![CDATA[supernatural]]></category>
            <category><![CDATA[horror]]></category>
            <dc:creator><![CDATA[Sudish Kumar]]></dc:creator>
            <pubDate>Fri, 03 Apr 2026 05:02:04 GMT</pubDate>
            <atom:updated>2026-04-03T05:02:04.002Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Flutter: Add a Custom Suggestions Bar Above the Keyboard (No Packages)]]></title>
            <link>https://sudishkumar-edugaon.medium.com/flutter-add-a-custom-suggestions-bar-above-the-keyboard-no-packages-dff992955f55?source=rss-1ccde3c1ec3d------2</link>
            <guid isPermaLink="false">https://medium.com/p/dff992955f55</guid>
            <category><![CDATA[keyborad]]></category>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Sudish Kumar]]></dc:creator>
            <pubDate>Sat, 21 Feb 2026 06:18:45 GMT</pubDate>
            <atom:updated>2026-02-21T06:18:45.932Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi friends, We are working a High quality Trading app (Bigul) so and it’s user base is also 100000+ on app. In that app I was got a tricky task to add a custom suggestion above the keybord and when I search on the Google i got answer that we can’t add the suggestion headers in default system keybord due to security reason after spening 2 hours i got an idea that ok we can’t modif that but we have Stack widget, Visibility and media query so with the help of it can we create then i tried and it is working according to my need. Hope it will be helpful for you, let’s see the implementation.</p><pre>Stack(<br>        children: [<br><br>          /// MAIN UI<br>          Column(<br>            children: [<br>              const Expanded(<br>                child: Center(<br>                  child: Text(&quot;Tap TextField to open keyboard&quot;,<br>                      style: TextStyle(fontSize: 18)),<br>                ),<br>              ),<br>              Padding(<br>                padding:  EdgeInsets.fromLTRB(16, 8, 16, MediaQuery.of(context).viewInsets.bottom != 0?60:16),<br>                child: TextField(<br>                  enableSuggestions: false,<br>                  controller: controller,<br>                  focusNode: focusNode,<br>                  enableInteractiveSelection: false,<br>                  enableIMEPersonalizedLearning: false,<br>                  autocorrect: false,<br>                  onTap: () =&gt; focusNode.requestFocus(),<br>                  decoration: const InputDecoration(<br>                    hintText: &quot;Type message...&quot;,<br>                    border: OutlineInputBorder(),<br>                  ),<br>                ),<br>              ),<br>            ],<br>          ),<br><br>          Visibility(<br>            visible: keyboardOpen,<br>            child: AnimatedPositioned(<br>              duration: const Duration(milliseconds: 200),<br>              left: 0,<br>              right: 0,<br>              bottom: 0,<br>              height: keyboardOpen ? 60 : 0,<br>              child: Material(<br>                elevation: 10,<br>                color: Colors.white,<br>                child: keyboardOpen<br>                    ? ListView.builder(<br>                  scrollDirection: Axis.horizontal,<br>                  padding: const EdgeInsets.symmetric(horizontal: 10),<br>                  itemCount: suggestions.length,<br>                  itemBuilder: (_, i) =&gt; Padding(<br>                    padding: const EdgeInsets.symmetric(<br>                        horizontal: 6, vertical: 10),<br>                    child: ActionChip(<br>                      label: Text(suggestions[i]),<br>                      onPressed: () =&gt; insertText(suggestions[i]),<br>                    ),<br>                  ),<br>                )<br>                    : const SizedBox(),<br>              ),<br>            ),<br>          ),<br>        ],<br>      )</pre><p>In above design we have a stack and in that we have a text filed and a visibility widget and in the visibility there is a AnimatedPositioned widget which is containing my list of suggestion</p><p>Here is the full codes</p><pre>import &#39;package:flutter/material.dart&#39;;<br><br>void main() {<br>  runApp(const MyApp());<br>}<br><br>class MyApp extends StatelessWidget {<br>  const MyApp({super.key});<br><br>  @override<br>  Widget build(BuildContext context) {<br>    return const MaterialApp(<br>      debugShowCheckedModeBanner: false,<br>      home: SuggestionDemoScreen(),<br>    );<br>  }<br>}<br><br>class SuggestionDemoScreen extends StatefulWidget {<br>  const SuggestionDemoScreen({super.key});<br><br>  @override<br>  State&lt;SuggestionDemoScreen&gt; createState() =&gt; _SuggestionDemoScreenState();<br>}<br><br>class _SuggestionDemoScreenState extends State&lt;SuggestionDemoScreen&gt;<br>    with WidgetsBindingObserver {<br><br>  final TextEditingController controller = TextEditingController();<br>  final FocusNode focusNode = FocusNode();<br><br>  bool keyboardOpen = false;<br>  double keyboardHeight = 0;<br><br>  final List&lt;String&gt; suggestions = [<br>    &quot;Hello&quot;,&quot;Thanks&quot;,&quot;Ok&quot;,&quot;100&quot;,&quot;200&quot;,&quot;500&quot;,&quot;Yes&quot;,&quot;No&quot;,<br>  ];<br><br>  @override<br>  void initState() {<br>    super.initState();<br>    WidgetsBinding.instance.addObserver(this);<br>  }<br><br>  @override<br>  void dispose() {<br>    WidgetsBinding.instance.removeObserver(this);<br>    controller.dispose();<br>    focusNode.dispose();<br>    super.dispose();<br>  }<br><br>  /// 🔥 Detect keyboard perfectly<br>  @override<br>  void didChangeMetrics() {<br>    final bottomInset = WidgetsBinding.instance.window.viewInsets.bottom;<br><br>    setState(() {<br>      keyboardOpen = bottomInset &gt; 0;<br>      keyboardHeight =<br>          bottomInset / WidgetsBinding.instance.window.devicePixelRatio;<br>    });<br>  }<br><br>  /// Insert text safely<br>  void insertText(String text) {<br>    final oldText = controller.text;<br>    var selection = controller.selection;<br><br>    if (selection.start &lt; 0) {<br>      selection = TextSelection.collapsed(offset: oldText.length);<br>    }<br><br>    final newText = oldText.replaceRange(<br>      selection.start,<br>      selection.end,<br>      text,<br>    );<br><br>    controller.value = TextEditingValue(<br>      text: newText,<br>      selection: TextSelection.collapsed(offset: selection.start + text.length),<br>    );<br><br>    focusNode.requestFocus();<br>  }<br><br>  @override<br>  Widget build(BuildContext context) {<br>    return Scaffold(<br>      appBar: AppBar(title: const Text(&quot;Custom Suggestion Header&quot;)),<br>      body: Stack(<br>        children: [<br><br>          /// MAIN UI<br>          Column(<br>            children: [<br>              const Expanded(<br>                child: Center(<br>                  child: Text(&quot;Tap TextField to open keyboard&quot;,<br>                      style: TextStyle(fontSize: 18)),<br>                ),<br>              ),<br>              Padding(<br>                padding:  EdgeInsets.fromLTRB(16, 8, 16, MediaQuery.of(context).viewInsets.bottom != 0?60:16),<br>                child: TextField(<br>                  enableSuggestions: false,<br>                  controller: controller,<br>                  focusNode: focusNode,<br>                  enableInteractiveSelection: false,<br>                  enableIMEPersonalizedLearning: false,<br>                  autocorrect: false,<br>                  onTap: () =&gt; focusNode.requestFocus(),<br>                  decoration: const InputDecoration(<br>                    hintText: &quot;Type message...&quot;,<br>                    border: OutlineInputBorder(),<br>                  ),<br>                ),<br>              ),<br>            ],<br>          ),<br><br>          Visibility(<br>            visible: keyboardOpen,<br>            child: AnimatedPositioned(<br>              duration: const Duration(milliseconds: 200),<br>              left: 0,<br>              right: 0,<br>              bottom: 0,<br>              height: keyboardOpen ? 60 : 0,<br>              child: Material(<br>                elevation: 10,<br>                color: Colors.white,<br>                child: keyboardOpen<br>                    ? ListView.builder(<br>                  scrollDirection: Axis.horizontal,<br>                  padding: const EdgeInsets.symmetric(horizontal: 10),<br>                  itemCount: suggestions.length,<br>                  itemBuilder: (_, i) =&gt; Padding(<br>                    padding: const EdgeInsets.symmetric(<br>                        horizontal: 6, vertical: 10),<br>                    child: ActionChip(<br>                      label: Text(suggestions[i]),<br>                      onPressed: () =&gt; insertText(suggestions[i]),<br>                    ),<br>                  ),<br>                )<br>                    : const SizedBox(),<br>              ),<br>            ),<br>          ),<br>        ],<br>      ),<br>    );<br>  }<br>}</pre><p>Thanks for reading if it is helpful please clap and share.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dff992955f55" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Check Internet Connectivity in Android App(Kotlin) — The Right Way (2026)]]></title>
            <link>https://sudishkumar-edugaon.medium.com/check-internet-connectivity-in-android-app-kotlin-the-right-way-2026-012a01d1a8c4?source=rss-1ccde3c1ec3d------2</link>
            <guid isPermaLink="false">https://medium.com/p/012a01d1a8c4</guid>
            <category><![CDATA[mvvm]]></category>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[android-development]]></category>
            <category><![CDATA[internet-of-things]]></category>
            <category><![CDATA[android-app-development]]></category>
            <dc:creator><![CDATA[Sudish Kumar]]></dc:creator>
            <pubDate>Sun, 15 Feb 2026 17:08:33 GMT</pubDate>
            <atom:updated>2026-02-15T17:08:33.610Z</atom:updated>
            <content:encoded><![CDATA[<p>Most Android apps today depend on APIs. But one classic mistake still happens in production apps:</p><blockquote><em>Calling API even when internet is not available 🤦</em></blockquote><p>Result?</p><ul><li>App freezes</li><li>Retrofit throws an exception</li><li>User sees <em>Something went wrong</em></li><li>Bad ratings on Play Store ⭐→⭐</li></ul><p>So instead of reacting to network failure, a good app <strong>detects connectivity first and observes changes in real-time</strong>.</p><p>In this blog, we’ll build a <strong>modern, lifecycle-aware internet checker</strong> using ConnectivityManager + NetworkCallback (recommended after Android 6.0 and mandatory for Android 10+).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AlU2d8I5GfE_UN6CHWXKbg.png" /></figure><h3>Why are old methods wrong</h3><p>You may still find this code online:</p><pre>val cm = getSystemService(Context.CONNECTIVITY_SERVICE) as ConnectivityManager<br>val activeNetwork = cm.activeNetworkInfo<br>return activeNetwork != null &amp;&amp; activeNetwork.isConnected</pre><p>❌ Deprecated<br>❌ Does not work reliably on Android 10+<br>❌ Cannot detect internet vs local network<br>❌ Cannot listen to live changes</p><p>We need a <strong>reactive network observer</strong> instead.</p><h3>What we are going to build</h3><p>A component that:</p><ul><li>Detects Internet Available / Lost</li><li>Emits Live updates</li><li>Works with ViewModel</li><li>Safe for background &amp; foreground</li><li>Works on WiFi + Mobile Data</li></ul><p>Final usage will look like:</p><pre>viewModel.isConnected.observe(this) { connected -&gt;<br>    if (connected) loadData()<br>    else showNoInternetUI()<br>}</pre><p>Clean &amp; production-ready.</p><h3>Step 1 — Add permission</h3><p>AndroidManifest.xml</p><pre>&lt;uses-permission android:name=&quot;android.permission.ACCESS_NETWORK_STATE&quot;/&gt;</pre><p>No runtime permission needed ✔</p><h3>Step 2 — Create Network Monitor Class</h3><p>Create file: NetworkMonitor.kt</p><pre>class NetworkMonitor(private val context: Context) {</pre><pre>    private val connectivityManager =<br>        context.getSystemService(Context.CONNECTIVITY_SERVICE) as ConnectivityManager</pre><pre>    fun isInternetAvailable(): Boolean {<br>        val network = connectivityManager.activeNetwork ?: return false<br>        val capabilities = connectivityManager.getNetworkCapabilities(network) ?: return false</pre><pre>        return capabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)<br>                &amp;&amp; capabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED)<br>    }<br>}</pre><h3>Why VALIDATED is important</h3><p>Without it, a phone connected to a WiFi router (no internet) will still return <strong>true</strong>.</p><p>This is the difference between:</p><ul><li>Connected to the network</li><li>Connected to the internet 🌍</li></ul><h3>Step 3 — Listen to Live Internet Changes (Flow)</h3><p>We now create a real-time observer.</p><p>ConnectivityObserver.kt</p><pre>interface ConnectivityObserver {<br>    fun observe(): Flow&lt;Status&gt;</pre><pre>    enum class Status {<br>        Available, Lost, Losing, Unavailable<br>    }<br>}</pre><h3>Step 4 — Implementation using NetworkCallback</h3><p>NetworkConnectivityObserver.kt</p><pre>class NetworkConnectivityObserver(<br>    context: Context<br>) : ConnectivityObserver {</pre><pre>    private val connectivityManager =<br>        context.getSystemService(Context.CONNECTIVITY_SERVICE) as ConnectivityManager</pre><pre>    override fun observe(): Flow&lt;ConnectivityObserver.Status&gt; = callbackFlow {</pre><pre>        val callback = object : ConnectivityManager.NetworkCallback() {</pre><pre>            override fun onAvailable(network: Network) {<br>                trySend(ConnectivityObserver.Status.Available)<br>            }</pre><pre>            override fun onLost(network: Network) {<br>                trySend(ConnectivityObserver.Status.Lost)<br>            }</pre><pre>            override fun onLosing(network: Network, maxMsToLive: Int) {<br>                trySend(ConnectivityObserver.Status.Losing)<br>            }</pre><pre>            override fun onUnavailable() {<br>                trySend(ConnectivityObserver.Status.Unavailable)<br>            }<br>        }</pre><pre>        val request = NetworkRequest.Builder()<br>            .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)<br>            .build()</pre><pre>        connectivityManager.registerNetworkCallback(request, callback)</pre><pre>        awaitClose {<br>            connectivityManager.unregisterNetworkCallback(callback)<br>        }<br>    }<br>}</pre><p>Now your app <strong>knows instantly</strong> when the internet goes off — even if the user turns off WiFi manually.</p><h3>Step 5 — Use in ViewModel (MVVM Clean Way)</h3><pre>class MainViewModel(<br>    private val observer: ConnectivityObserver<br>) : ViewModel() {</pre><pre>    val isConnected = observer.observe()<br>        .map { it == ConnectivityObserver.Status.Available }<br>        .stateIn(<br>            viewModelScope,<br>            SharingStarted.WhileSubscribed(5000),<br>            false<br>        )<br>}</pre><h3>Step 6 — Observe in Activity / Fragment</h3><pre>lifecycleScope.launchWhenStarted {<br>    viewModel.isConnected.collect { connected -&gt;<br>        if (connected) {<br>            retryApiCall()<br>        } else {<br>            showNoInternetSnackBar()<br>        }<br>    }<br>}</pre><h3>Bonus — Show One-Time Check Before API</h3><p>Sometimes you just need an instant check:</p><pre>if (!NetworkMonitor(this).isInternetAvailable()) {<br>    toast(&quot;No Internet&quot;)<br>    return<br>}</pre><h3>Best UX Practices</h3><p>Never just show a Toast ❌<br>Always provide retry ✔</p><p>Good UI:</p><ul><li>Snackbar with Retry</li><li>Full screen “No Internet.”</li><li>Auto-reload when the internet returns</li></ul><h3>Final Thoughts</h3><p>Modern Android apps should not crash because of the network.</p><p>Instead of handling errors <strong>after the API fails</strong>, handle connectivity <strong>before the API call</strong> and listen to changes continuously.</p><p>This gives:</p><ul><li>Better UX</li><li>Less crashes</li><li>Faster screens</li><li>Happy users 🙂</li></ul><h3>You Learned</h3><ul><li>Deprecated vs Modern network check</li><li>Internet vs Network difference</li><li>ConnectivityManager + NetworkCallback</li><li>Kotlin Flow integration</li><li>MVVM-friendly observer</li></ul><p>You now have a production-ready Internet Connectivity Checker 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=012a01d1a8c4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Interview Question from Flutter Bloc for beginners to experts?]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-snippet">Hi, I am writing this article to help you and me to be confident in Bloc in Flutter. I have given about 20 interviews in the last 2 months&#x2026;</p><p class="medium-feed-link"><a href="https://sudishkumar-edugaon.medium.com/interview-question-from-flutter-bloc-for-beginners-to-experts-830fe09bacb4?source=rss-1ccde3c1ec3d------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://sudishkumar-edugaon.medium.com/interview-question-from-flutter-bloc-for-beginners-to-experts-830fe09bacb4?source=rss-1ccde3c1ec3d------2</link>
            <guid isPermaLink="false">https://medium.com/p/830fe09bacb4</guid>
            <dc:creator><![CDATA[Sudish Kumar]]></dc:creator>
            <pubDate>Fri, 09 Jan 2026 10:10:56 GMT</pubDate>
            <atom:updated>2026-01-09T10:10:56.687Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Interview Question Based on how our Android apps works internaly]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://sudishkumar-edugaon.medium.com/interview-question-based-on-how-our-android-apps-works-internaly-6834b813d70e?source=rss-1ccde3c1ec3d------2"><img src="https://cdn-images-1.medium.com/max/1024/1*gX6v1fmeV_4wzkqrGjL8uA.png" width="1024"></a></p><p class="medium-feed-snippet">I am writing this article for interview preparation, from basic to advanced. This article contains deep concepts of how widgets work and&#x2026;</p><p class="medium-feed-link"><a href="https://sudishkumar-edugaon.medium.com/interview-question-based-on-how-our-android-apps-works-internaly-6834b813d70e?source=rss-1ccde3c1ec3d------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://sudishkumar-edugaon.medium.com/interview-question-based-on-how-our-android-apps-works-internaly-6834b813d70e?source=rss-1ccde3c1ec3d------2</link>
            <guid isPermaLink="false">https://medium.com/p/6834b813d70e</guid>
            <dc:creator><![CDATA[Sudish Kumar]]></dc:creator>
            <pubDate>Tue, 06 Jan 2026 10:13:48 GMT</pubDate>
            <atom:updated>2026-01-06T10:35:55.277Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Interview question from Widgets in Flutter for beginners to export]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://sudishkumar-edugaon.medium.com/interview-question-from-widgets-in-flutter-for-beginners-to-export-30d300801683?source=rss-1ccde3c1ec3d------2"><img src="https://cdn-images-1.medium.com/max/1024/1*VqfDg6c07yV8JZs0Cp-Ghg.png" width="1024"></a></p><p class="medium-feed-snippet">I am writing this article for interview preparation, from basic to advanced. This article contains deep concepts of how widgets work and&#x2026;</p><p class="medium-feed-link"><a href="https://sudishkumar-edugaon.medium.com/interview-question-from-widgets-in-flutter-for-beginners-to-export-30d300801683?source=rss-1ccde3c1ec3d------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://sudishkumar-edugaon.medium.com/interview-question-from-widgets-in-flutter-for-beginners-to-export-30d300801683?source=rss-1ccde3c1ec3d------2</link>
            <guid isPermaLink="false">https://medium.com/p/30d300801683</guid>
            <dc:creator><![CDATA[Sudish Kumar]]></dc:creator>
            <pubDate>Tue, 06 Jan 2026 08:17:53 GMT</pubDate>
            <atom:updated>2026-01-06T10:42:35.787Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Mastering View Binding in Android: A Complete Guide for Clean and Efficient Code in Hinglish]]></title>
            <link>https://sudishkumar-edugaon.medium.com/mastering-view-binding-in-android-a-complete-guide-for-clean-and-efficient-code-in-hinglish-346a37a52b11?source=rss-1ccde3c1ec3d------2</link>
            <guid isPermaLink="false">https://medium.com/p/346a37a52b11</guid>
            <dc:creator><![CDATA[Sudish Kumar]]></dc:creator>
            <pubDate>Fri, 08 Nov 2024 14:05:09 GMT</pubDate>
            <atom:updated>2024-11-08T14:05:09.631Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Is story mein hum Android mein ViewBinding ko detail mein samjhenge. Hum step-by-step examples dekhenge, jisme ViewBinding ka use Activities, Fragments, AlertDialogs, RecyclerViews aur aur bhi cheezein cover karega.</blockquote><pre>android {<br>    namespace = &quot;com.famouscoader.viewmodelexample&quot;<br>    compileSdk = 35<br>// Code for viewBinding Enabling ( Start )<br>    buildFeatures {<br>        viewBinding = true<br>    }<br>//code end of viewBinding<br>}</pre><pre>class MainActivity : AppCompatActivity() {<br>    private lateinit var binding: ActivityMainBinding<br>    lateinit var userViewModel: UserViewModel<br>    lateinit var userRecyclerListAdapter: UserRecyclerListAdapter<br>     var userDataList = ArrayList&lt;UserModel&gt;()<br><br>    @SuppressLint(&quot;MissingInflatedId&quot;, &quot;NotifyDataSetChanged&quot;)<br>    override fun onCreate(savedInstanceState: Bundle?) {<br>        super.onCreate(savedInstanceState)<br><br>        binding = ActivityMainBinding.inflate(layoutInflater) // add this line<br>        setContentView(binding.root)// add this line<br><br>    }<br>}</pre><h3>Why ViewBinding in Android</h3><ul><li><strong>Binding Class Naming:</strong> Generated binding class ka naam layout file ke naam ke saath Binding laga kar banta hai.</li><li><strong>Null Safety:</strong> Proper null safety checks ensure karein, khaaskar jab binding object lifecycle scope ke bahar use ho raha ho.</li><li><strong>Lifecycle Awareness:</strong> Binding object ke lifecycle ka dhyan rakhein. Jab view destroy ho jaye, toh binding ko release karna zaroori hai taaki memory leaks se bacha ja sake.</li><li><strong>Avoid findViewById:</strong> View Binding findViewById ki zaroorat ko khatam kar deta hai, jo code ko cleaner aur efficient banata hai.</li></ul><p><strong>Shuruaat mein humne ActivityBinding ka example dekha tha.</strong></p><h3>Fragment Binding</h3><pre>class HomeFragment : Fragment() {<br>// declaring nullable var because while destroying view we can do it null<br>    private var _binding: FragmentHomeBinding? = null<br>    private val binding get() = _binding!! //it will be always non-nullable<br><br>    override fun onCreateView(<br>        inflater: LayoutInflater, container: ViewGroup?,<br>        savedInstanceState: Bundle?<br>    ): View {<br>        _binding = FragmentHomeBinding.inflate(inflater, container, false)<br>        return binding.root<br>    }<br><br>    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {<br>        super.onViewCreated(view, savedInstanceState)<br>        binding.fragmentTextView.text = &quot;Hello, Fragment ViewBinding!&quot;<br><br>    }<br>    override fun onDestroyView() {<br>        super.onDestroyView()<br>        _binding = null // it is important to set null because of avoiding memory leaks <br>    }<br>    <br>}</pre><h3>AletDialog Binding</h3><pre>class MainActivity : AppCompatActivity() {<br>    private lateinit var binding: ActivityMainBinding<br><br>    override fun onCreate(savedInstanceState: Bundle?) {<br>        super.onCreate(savedInstanceState)<br><br>        binding = ActivityMainBinding.inflate(layoutInflater)<br>        setContentView(binding.root)<br><br>        showCustomDialog() // call when you need<br>    }<br><br>        fun showCustomDialog() {<br>            val binding = MyCustomeDialogBinding.inflate(LayoutInflater.from(this))<br>            val dialog = AlertDialog.Builder(this)<br>                .setView(binding.root)<br>                .create()<br><br>            binding.titleTextView.text = &quot;This is Custom Dialog&quot;<br>            binding.okAlertDialogButton.setOnClickListener {<br>                <br>                dialog.dismiss()<br>            }<br><br>            dialog.show()<br>        }<br>   <br>}</pre><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br>//file name my_custome_dialog<br>&lt;LinearLayoutx<br>    xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;<br>    android:layout_width=&quot;match_parent&quot;<br>    android:layout_height=&quot;match_parent&quot;<br>    android:orientation=&quot;vertical&quot;&gt;<br><br>    &lt;TextView<br>        android:id=&quot;@+id/titleTextView&quot;<br>        android:layout_width=&quot;match_parent&quot;<br>        android:layout_height=&quot;wrap_content&quot;<br>        android:textColor=&quot;@color/black&quot;/&gt;<br><br>    &lt;Button<br>        android:id=&quot;@+id/okAlertDialogButton&quot;<br>        android:layout_width=&quot;match_parent&quot;<br>        android:layout_height=&quot;wrap_content&quot;<br>        android:text=&quot;Ok&quot;<br>        android:layout_margin=&quot;50dp&quot;/&gt;<br><br>&lt;/LinearLayout&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*4otptyzxnyzDwIG1YaWTXw.jpeg" /></figure><h3>RecyclerView Binding</h3><pre><br>class UserRecyclerListAdapter(val userList: ArrayList&lt;UserModel&gt;? = null) :<br>    RecyclerView.Adapter&lt;UserRecyclerListAdapter.UserViewHolder&gt;() {<br><br>    @SuppressLint(&quot;NotifyDataSetChanged&quot;)<br>    fun refreshList(user: List&lt;UserModel&gt;) {<br>        userList?.clear()<br>        userList?.addAll(user)<br>        notifyDataSetChanged()<br>    }<br><br>    override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): UserViewHolder {<br>//        val view=LayoutInflater.from(context).inflate(R.layout.user_item_layout,parent,false)<br>        val binding =<br>            UserItemLayoutBinding.inflate(LayoutInflater.from(parent.context), parent, false)<br>        return UserViewHolder(binding)<br>    }<br><br>    override fun getItemCount(): Int {<br>        return if (userList?.size == null) {<br>            0<br>        } else {<br>            userList.size<br>        }<br><br>    }<br><br>    override fun onBindViewHolder(holder: UserViewHolder, position: Int) {<br>        val user = userList?.get(position)<br><br><br>//        before viewBinding<br>       /* holder.image.setImageResource(R.drawable.ic_launcher_background)<br>        holder.nameText.text=user?.name<br>        holder.ageText.text=user?.age.toString()<br>        holder.addressText.text=user?.address<br>        */<br><br>        /*<br>          ------ After view Binding --------<br>         */<br>        holder.binding.imageView.setImageResource(R.drawable.ic_launcher_background)<br>        holder.binding.nameText.text = user?.name<br>        holder.binding.ageText.text = user?.age.toString()<br>        holder.binding.addressText.text = user?.address<br>    }<br>// Before Binding<br>    /*class UserViewHolder (itemView: View):ViewHolder(itemView){<br>        val image=itemView.findViewById&lt;ImageView&gt;(R.id.imageView)<br>        val nameText=itemView.findViewById&lt;TextView&gt;(R.id.nameText)<br>        val ageText=itemView.findViewById&lt;TextView&gt;(R.id.ageText)<br>        val addressText=itemView.findViewById&lt;TextView&gt;(R.id.addressText)<br>    }<br>     */<br><br>    /* ----- After Binding------*/<br>    class UserViewHolder(val binding: UserItemLayoutBinding) : ViewHolder(binding.root)<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*5GUbCdNDQ8pzIqxxNZTeJg.jpeg" /></figure><p>In guidelines ko follow karke, aap View Binding ko effectively use kar sakte hain apne Android app development ko streamline karne ke liye aur code quality improve kar sakte hain.</p><p>Thanks for reading if you got helpful please Clap and Follow for next Interesting story.</p><p><a href="https://medium.com/@sudishkumar-edugaon/view-binding-in-android-d804f2b1035f">Want to read this story in English</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=346a37a52b11" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[View Binding in android]]></title>
            <link>https://sudishkumar-edugaon.medium.com/view-binding-in-android-d804f2b1035f?source=rss-1ccde3c1ec3d------2</link>
            <guid isPermaLink="false">https://medium.com/p/d804f2b1035f</guid>
            <dc:creator><![CDATA[Sudish Kumar]]></dc:creator>
            <pubDate>Fri, 08 Nov 2024 13:43:25 GMT</pubDate>
            <atom:updated>2024-11-08T14:07:49.012Z</atom:updated>
            <content:encoded><![CDATA[<h3>Mastering View Binding in Android: A Complete Guide for Clean and Efficient Code</h3><blockquote>In this story, we’ll take a deep dive into ViewBinding in Android. We’ll go through step-by-step examples, covering ViewBinding usage in Activities, Fragments, AlertDialogs, RecyclerViews, and more.</blockquote><p><a href="https://sudishkumar-edugaon.medium.com/mastering-view-binding-in-android-a-complete-guide-for-clean-and-efficient-code-in-hinglish-346a37a52b11">Want Continue in Hinglish</a></p><pre>android {<br>    namespace = &quot;com.famouscoader.viewmodelexample&quot;<br>    compileSdk = 35<br>// Code for viewBinding Enabling ( Start )<br>    buildFeatures {<br>        viewBinding = true<br>    }<br>//code end of viewBinding<br>}</pre><pre><br>class MainActivity : AppCompatActivity() {<br>    private lateinit var binding: ActivityMainBinding<br>    lateinit var userViewModel: UserViewModel<br>    lateinit var userRecyclerListAdapter: UserRecyclerListAdapter<br>     var userDataList = ArrayList&lt;UserModel&gt;()<br><br>    @SuppressLint(&quot;MissingInflatedId&quot;, &quot;NotifyDataSetChanged&quot;)<br>    override fun onCreate(savedInstanceState: Bundle?) {<br>        super.onCreate(savedInstanceState)<br><br>        binding = ActivityMainBinding.inflate(layoutInflater) // add this line<br>        setContentView(binding.root)// add this line<br><br>    }<br>}</pre><h4>Why ViewBinding in Android</h4><ul><li><strong>Binding Class Naming:</strong> The generated binding class name is the layout file name with Binding appended.</li><li><strong>Null Safety:</strong> Ensure proper null safety checks, especially when using the binding object outside the lifecycle scope.</li><li><strong>Lifecycle Awareness:</strong> Be mindful of the binding object’s lifecycle. Release it when the view is destroyed to avoid memory leaks.</li><li><strong>Avoid findViewById:</strong> View Binding eliminates the need for findViewById, making your code cleaner and more efficient.</li></ul><p><strong>In starting we have seen example of ActivityBinding</strong></p><h4>Fragment Binding</h4><pre>class HomeFragment : Fragment() {<br>// declaring nullable var because while destroying view we can do it null<br>    private var _binding: FragmentHomeBinding? = null<br>    private val binding get() = _binding!! //it will be always non-nullable<br><br>    override fun onCreateView(<br>        inflater: LayoutInflater, container: ViewGroup?,<br>        savedInstanceState: Bundle?<br>    ): View {<br>        _binding = FragmentHomeBinding.inflate(inflater, container, false)<br>        return binding.root<br>    }<br><br>    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {<br>        super.onViewCreated(view, savedInstanceState)<br>        binding.fragmentTextView.text = &quot;Hello, Fragment ViewBinding!&quot;<br><br>    }<br>    override fun onDestroyView() {<br>        super.onDestroyView()<br>        _binding = null // it is important to set null because of avoiding memory leaks <br>    }<br>    <br>}</pre><h4>AletDialog Binding</h4><pre>class MainActivity : AppCompatActivity() {<br>    private lateinit var binding: ActivityMainBinding<br><br>    override fun onCreate(savedInstanceState: Bundle?) {<br>        super.onCreate(savedInstanceState)<br><br>        binding = ActivityMainBinding.inflate(layoutInflater)<br>        setContentView(binding.root)<br><br>        showCustomDialog() // call when you need<br>    }<br><br>        fun showCustomDialog() {<br>            val binding = MyCustomeDialogBinding.inflate(LayoutInflater.from(this))<br>            val dialog = AlertDialog.Builder(this)<br>                .setView(binding.root)<br>                .create()<br><br>            binding.titleTextView.text = &quot;This is Custom Dialog&quot;<br>            binding.okAlertDialogButton.setOnClickListener {<br>                <br>                dialog.dismiss()<br>            }<br><br>            dialog.show()<br>        }<br>   <br>}</pre><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br>//file name my_custome_dialog<br>&lt;LinearLayoutx<br>    xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;<br>    android:layout_width=&quot;match_parent&quot;<br>    android:layout_height=&quot;match_parent&quot;<br>    android:orientation=&quot;vertical&quot;&gt;<br><br>    &lt;TextView<br>        android:id=&quot;@+id/titleTextView&quot;<br>        android:layout_width=&quot;match_parent&quot;<br>        android:layout_height=&quot;wrap_content&quot;<br>        android:textColor=&quot;@color/black&quot;/&gt;<br><br>    &lt;Button<br>        android:id=&quot;@+id/okAlertDialogButton&quot;<br>        android:layout_width=&quot;match_parent&quot;<br>        android:layout_height=&quot;wrap_content&quot;<br>        android:text=&quot;Ok&quot;<br>        android:layout_margin=&quot;50dp&quot;/&gt;<br><br>&lt;/LinearLayout&gt;</pre><figure><img alt="Alert Example" src="https://cdn-images-1.medium.com/max/720/1*4otptyzxnyzDwIG1YaWTXw.jpeg" /></figure><h4>RecyclerView Binding</h4><pre>package com.famouscoader.viewmodelexample<br><br>import android.annotation.SuppressLint<br>import android.view.LayoutInflater<br>import android.view.View<br>import android.view.ViewGroup<br>import android.widget.ImageView<br>import android.widget.TextView<br>import androidx.recyclerview.widget.RecyclerView<br>import androidx.recyclerview.widget.RecyclerView.ViewHolder<br>import com.famouscoader.viewmodelexample.databinding.UserItemLayoutBinding<br><br>class UserRecyclerListAdapter(val userList: ArrayList&lt;UserModel&gt;? = null) :<br>    RecyclerView.Adapter&lt;UserRecyclerListAdapter.UserViewHolder&gt;() {<br><br>    @SuppressLint(&quot;NotifyDataSetChanged&quot;)<br>    fun refreshList(user: List&lt;UserModel&gt;) {<br>        userList?.clear()<br>        userList?.addAll(user)<br>        notifyDataSetChanged()<br>    }<br><br>    override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): UserViewHolder {<br>//        val view=LayoutInflater.from(context).inflate(R.layout.user_item_layout,parent,false)<br>        val binding =<br>            UserItemLayoutBinding.inflate(LayoutInflater.from(parent.context), parent, false)<br>        return UserViewHolder(binding)<br>    }<br><br>    override fun getItemCount(): Int {<br>        return if (userList?.size == null) {<br>            0<br>        } else {<br>            userList.size<br>        }<br><br>    }<br><br>    override fun onBindViewHolder(holder: UserViewHolder, position: Int) {<br>        val user = userList?.get(position)<br><br><br>//        before viewBinding<br>       /* holder.image.setImageResource(R.drawable.ic_launcher_background)<br>        holder.nameText.text=user?.name<br>        holder.ageText.text=user?.age.toString()<br>        holder.addressText.text=user?.address<br>        */<br><br>        /*<br>          ------ After view Binding --------<br>         */<br>        holder.binding.imageView.setImageResource(R.drawable.ic_launcher_background)<br>        holder.binding.nameText.text = user?.name<br>        holder.binding.ageText.text = user?.age.toString()<br>        holder.binding.addressText.text = user?.address<br>    }<br>// Before Binding<br>    /*class UserViewHolder (itemView: View):ViewHolder(itemView){<br>        val image=itemView.findViewById&lt;ImageView&gt;(R.id.imageView)<br>        val nameText=itemView.findViewById&lt;TextView&gt;(R.id.nameText)<br>        val ageText=itemView.findViewById&lt;TextView&gt;(R.id.ageText)<br>        val addressText=itemView.findViewById&lt;TextView&gt;(R.id.addressText)<br>    }<br>     */<br><br>    /* ----- After Binding------*/<br>    class UserViewHolder(val binding: UserItemLayoutBinding) : ViewHolder(binding.root)<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*5GUbCdNDQ8pzIqxxNZTeJg.jpeg" /></figure><p>By following these guidelines, you can effectively use View Binding to streamline your Android app development and improve code quality.</p><p>Thanks for reading if you got helpful please Clap and Follow for next Interesting story.</p><p><a href="https://sudishkumar-edugaon.medium.com/mastering-view-binding-in-android-a-complete-guide-for-clean-and-efficient-code-in-hinglish-346a37a52b11">Do you want to read this story in hinglish</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d804f2b1035f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beyond the Exam: A Lesson in Love and Second Chances]]></title>
            <link>https://sudishkumar-edugaon.medium.com/beyond-the-exam-a-lesson-in-love-and-second-chances-7468fa01eeca?source=rss-1ccde3c1ec3d------2</link>
            <guid isPermaLink="false">https://medium.com/p/7468fa01eeca</guid>
            <category><![CDATA[lifesaver]]></category>
            <category><![CDATA[exam]]></category>
            <category><![CDATA[examination]]></category>
            <category><![CDATA[students]]></category>
            <category><![CDATA[love]]></category>
            <dc:creator><![CDATA[Sudish Kumar]]></dc:creator>
            <pubDate>Fri, 16 Feb 2024 02:37:18 GMT</pubDate>
            <atom:updated>2024-02-16T02:37:18.830Z</atom:updated>
            <content:encoded><![CDATA[<p>Rain lashed against Rohit’s face, mirroring the tears streaming down his cheeks. Each drop felt like a tiny hammer, pounding against the dam of his composure. He clutched the admit card in his trembling hand, the red stamp “LATE ENTRY NOT ALLOWED” glaring back at him with icy indifference. It had all slipped through his fingers, five minutes on a rickety, rain-delayed bus separating him from his future.</p><p>He wasn’t alone. Around him, a huddle of other students mirrored his anguish. Each face, pale and etched with despair, told a story of a flat tire, a missed connection, a downpour that conspired against their best efforts. But to the stoic guards, their stories were irrelevant. Rules were rules, and the gates remained implacably shut.</p><p>Shame and despair gnawed at Rohit. Months of sacrifice, hours stolen from sleep and fun, all built towards this one day. Now, it was all gone, reduced to a damp piece of paper and a heart choked with sobs. The world blurred, the voices around him fading into a distant hum. The weight of disappointment, his own and that of his family, became an unbearable burden.</p><p>He started walking, his feet carrying him on autopilot. The thought of returning home, facing his parents’ weary eyes and his sister’s excited questions, was unbearable. The pressure, the expectations, felt like a mountain crushing him.</p><p>He reached a deserted bridge, the rain-slicked metal humming beneath his touch. The churning river below gurgled its dark promises, whispering an escape from the storm raging within him. A twisted logic took hold — if he was gone, the disappointment would vanish, the burden would lift. He closed his eyes, the cold metal biting into his palm.</p><p>And then, a face flashed in his mind — his mother’s, lined with worry but etched with an unwavering love that transcended all else. He saw his sister, her eyes shining with innocent pride, a belief in him that knew no bounds. Their love, their faith in him, was a lifeline thrown across the abyss.</p><p>Shame washed over him again, this time for even considering such a selfish act. How could he abandon them, the people who loved him unconditionally, who never gave up on him? Their faces, filled with love and hope, became his anchors, pulling him back from the brink.</p><p>He opened his eyes, the rain-soaked world coming back into focus. The storm was far from over, but he wasn’t lost anymore. He would face the consequences, talk to his parents, find a way to move forward. It wouldn’t be easy, but he had their love, and that was his strength.</p><p>He wiped his tears, took a deep breath, and turned back, the bridge no longer a symbol of despair, but a testament to his resilience. The storm might have delayed him, but it couldn’t break him. He had a storm of his own to weather, a storm of challenges and setbacks, but he would face them, head held high, knowing that he wasn’t alone. He had love, and that was his strength.</p><p>In the days that followed, Rohit experienced the gamut of emotions: disappointment, frustration, and eventually, a quiet determination. He talked to his parents, tears mixing with apologies and explanations. They didn’t scold him, didn’t berate him. Instead, they held him, their love a silent language that spoke volumes. He saw the worry in their eyes, but also a steadfast support that wouldn’t waver.</p><p>He decided to take the exam again, fueled by a newfound resolve. He studied harder, not just for the exam, but for himself. He realized that setbacks were inevitable, but his strength lay in how he chose to respond.</p><p>The second time around, he reached the center on time. As he entered the exam hall, a wave of nerves washed over him, but it was different this time. It was the nervous excitement of facing a challenge, not the fear of failure.</p><p>When the results came, they weren’t perfect, but they were good enough. More importantly, he had learned a lesson far more valuable than any exam score. He had learned the power of hope, the strength of family, and the resilience of the human spirit. He had crossed the bridge of despair, emerging stronger, wiser, and ready to face whatever storms life threw his way.</p><p>And sometimes, on quiet nights, he would look at the bridge, not with fear, but with a sense of gratitude. It was a reminder of the day he almost gave up, the day he found his strength, and the day he truly began to live.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7468fa01eeca" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Story of Hope]]></title>
            <link>https://sudishkumar-edugaon.medium.com/a-story-of-hope-f54467cb6bc8?source=rss-1ccde3c1ec3d------2</link>
            <guid isPermaLink="false">https://medium.com/p/f54467cb6bc8</guid>
            <category><![CDATA[poor-families]]></category>
            <category><![CDATA[stories]]></category>
            <category><![CDATA[poor]]></category>
            <category><![CDATA[kids-stories]]></category>
            <category><![CDATA[students]]></category>
            <dc:creator><![CDATA[Sudish Kumar]]></dc:creator>
            <pubDate>Tue, 24 Oct 2023 14:23:01 GMT</pubDate>
            <atom:updated>2023-10-24T14:23:01.400Z</atom:updated>
            <content:encoded><![CDATA[<p>Ramu was a student who lived in a small village. He was very poor but very hardworking. He loved to study and learn new things. He dreamed of becoming a doctor one day and helping his people.</p><p>Every morning, he would wake up early and go to school. He would walk for an hour to reach his school, which was in another village. He had only one pair of clothes and one pair of shoes, which were torn and dirty. He had no books or notebooks, only a slate and a chalk.</p><p>At school, he would sit on the floor and listen to his teacher attentively. He was very smart and curious. He would ask many questions and answer them correctly. He would also help his classmates with their studies.</p><p>But not everyone liked Ramu. Some of the other students were jealous of him. They came from rich families and had everything they wanted. They had nice clothes, shoes, books, bags, and bicycles. They looked down on Ramu and made fun of him. They called him names like “poor boy”, “dirty boy”, “beggar boy”, and “stupid boy”. They also bullied him and beat him up sometimes.</p><p>Ramu did not care about their insults or violence. He knew that they were ignorant and mean. He did not hate them or fight back. He only felt sorry for them and prayed for them. He knew that his poverty was not his fault or his choice. He knew that he had something that they did not have: a good heart and a strong mind.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CDzVgglkZVb_iNgPOmcxpQ.jpeg" /></figure><p>After school, Ramu would not go home directly. He would go to the fields and work as a laborer. He would help the farmers with their crops and animals. He would plow, sow, weed, water, harvest, and carry loads. He would work for hours under the hot sun or the cold rain.</p><p>He did this work to earn some money for his family. He had no father, who had died in an accident when he was a baby. He had only one mother, who was old and weak. She could not work much and depended on Ramu for everything.</p><p>He also had one younger brother, who was six years old. His name was Bholu, which means innocent in Hindi. Bholu was very cute and sweet. He loved Ramu very much and looked up to him as his hero.</p><p>Bholu also went to school, but not the same one as Ramu’s. His school was closer to their home, but it was not as good as Ramu’s school. It had fewer teachers, fewer students, fewer classes, fewer facilities, and fewer resources.</p><p>Bholu also worked after school, but not in the fields like Ramu’s work. He worked in a wine factory, which was near their home. It was an illegal factory that made cheap and harmful liquor from rotten fruits and chemicals.</p><p>Bholu did not like this work at all. It was dirty, dangerous, and unhealthy. He had to wash the fruits, mix the chemicals, fill the bottles, seal the caps, label the labels, pack the boxes, load the trucks, and unload the carts.</p><p>He did this work to earn some money for his family too. The factory owner paid him very little, but it was better than nothing.</p><p>Ramu did not want Bholu to work in the wine factory. He knew that it was bad for his health and education. He wanted Bholu to study more and play more like other children of his age.</p><p>But he had no choice or voice in this matter. The factory owner was a powerful and cruel man who controlled the village with his money and muscle power.</p><p>He forced many children like Bholu to work in his factory by threatening them or their families with violence or eviction.</p><p>He also bribed the police and the politicians to turn a blind eye to his illegal activities.</p><p>He also sold his liquor to many people in the village and nearby towns who were addicted to it or ignorant of its effects.</p><p>He made a lot of money from this business but he did not care about anyone else’s welfare or happiness.</p><p>Ramu hated this man more than anyone else in the world.</p><p>Every evening, Ramu would return home from his work in the fields tired and hungry.</p><p>He would find his mother waiting for him with a smile on her face and a plate of food on her hand.</p><p>She would hug him and kiss him and ask him about his day.</p><p>She would also give him some food to eat and some water to drink.</p><p>She would also tell him some stories or sing some songs to cheer him up.</p><p>She would also praise him for his hard work and good grades.</p><p>She would also encourage him to keep studying and learning.</p><p>She would also pray for him to achieve his dreams and goals.</p><p>Ramu loved his mother more than anyone else in the world.</p><p>She was his angel and his inspiration.</p><p>She was his source of strength and hope.</p><p>She was his reason for living and fighting.</p><p>She was the best mother in the world.</p><p>Ramu would also wait for his brother to come home from his work in the wine factory worried and anxious.</p><p>He would find his brother coming home late and sick.</p><p>He would hug him and kiss him and ask him about his day.</p><p>He would also give him some food to eat and some water to drink.</p><p>He would also tell him some jokes or play some games to make him laugh.</p><p>He would also help him with his homework and teach him some lessons.</p><p>He would also advise him to stay away from trouble and danger.</p><p>He would also protect him from harm and evil.</p><p>Ramu loved his brother more than anyone else in the world too.</p><p>He was his friend and his partner.</p><p>He was his joy and his pride.</p><p>He was his responsibility and duty.</p><p>He was the best brother in the world.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WqC7UTaxU3AUBsP6f5Q_Kw.jpeg" /></figure><p>This is how Ramu lived his life every day: working, studying, caring, loving, hoping, dreaming. He faced many challenges and difficulties, but he never gave up or lost faith. He believed that one day, things would get better for him and his family. He believed that one day, he would become a doctor and help his people. He believed that one day, he would make his mother proud and happy. He believed that one day, he would see his brother healthy and free. He believed that one day, he would find happiness and peace. He believed that one day, he would write a story of hope.</p><p>But one day, something happened that changed everything for Ramu and his family. Something that they never expected or imagined. Something that shattered their dreams and hopes. Something that tested their faith and courage. Something that started a story of despair.</p><p>What happened? What did Ramu do? How did he cope? How did he survive? How did he overcome? How did he end? How did he begin?</p><p>To find out, please read the next part of this story. If you liked this part, please clap and subscribe. Thank you. 😊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f54467cb6bc8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>