<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8"/>
  <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  <link rel="icon" type="image/png" href="/favicon.png"/>
  <title>Blog (android) - Varun Barad</title>
  <meta name="description" content="My online home where I post about new things I learn or find interesting."/>

  <!-- RSS Feed meta-data -->
  <link type="application/atom+xml" rel="alternate" href="https://varunbarad.com/feed.xml" title="Varun Barad - Curious Developer"/>

  <!-- Twitter meta-data -->
  <meta name="twitter:site" content="@varun_barad"/>
  <meta name="twitter:image:src" content="https://varunbarad.com/assets/images/logo-hd.png"/>
  <meta name="twitter:card" content="summary"/>
  <meta name="twitter:title" content="Varun Barad - Curious Developer"/>
  <meta name="twitter:description" content="My online home where I post about new things I learn or find interesting."/>

  <!-- Open-Graph meta-data -->
  <meta property="og:site_name" content="Varun Barad - Curious Developer"/>
  <meta property="og:image" content="https://varunbarad.com/assets/images/logo-hd.png"/>
  <meta property="og:type" content="object"/>
  <meta property="og:title" content="Varun Barad - Curious Developer"/>
  <meta property="og:url" content="https://varunbarad.com/category/android"/>
  <meta property="og:description" content="My online home where I post about new things I learn or find interesting."/>

  <!-- Styles kept here for now -->
  <style>
  * {
    box-sizing: border-box;
  }
  
  body {
    font-family: sans-serif;
    margin: 0;
    background: #313131;
  }
  
  header {
    background: #661111;
    color: #dfdfdf;
    max-width: 1080px;
    margin: 0 auto;
  }
  
  header a {
    color: #dfdfdf;
  }
  
  header a:visited {
    color: #dfdfdf;
  }
  
  header a:hover {
    text-decoration: underline;
  }
  
  #title {
    width: 100%;
    padding: 1em;
    font-size: 2rem;
    text-align: center;
  }
  
  #title > a {
    text-decoration: none;
  }
  
  #title > a:hover {
    text-decoration: underline;
  }
  
  nav {
    display: block;
    padding: 0;
  }
  
  nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
    align-content: flex-start;
    gap: 8px;
  }
  
  nav ul li a {
    padding: 1em;
    display: block;
    font-size: 1.2rem;
    text-decoration: none;
  }
  
  nav ul li a:hover {
  }
  
  main {
    padding: 1em;
    background: #121212;
    color: #dfdfdf;
    max-width: 1080px;
    margin: 0 auto;
  }
  
  main h2 {
    font-size: 1.6rem;
  }
  
  main p {
    text-align: justify;
    font-size: 1.1rem;
  }
  
  main a {
    color: #dfdfdf;
    font-size: 1.1rem;
  }
  
  main a:visited {
    color: #dfdfdf;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  footer {
    border-top: #dfdfdf 1px solid;
    background: #121212;
    color: #dfdfdf;
    text-align: center;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0.5em;
  }
  
  .container-full-width {
    display: flex;
    width: 100%;
    justify-content: center
  }
  
  .page-title {
    text-align: center;
    font-size: 3rem;
  }
  
  .link-non-decorated {
    text-decoration: none;
  }
  
  .period-title {
    color: #dd1111;
  }
  
  .post-item {
    padding-top: 8px;
    padding-bottom: 8px;
    max-width: 720px;
  }
  
  .post-title {
    text-decoration: none;
  }
  
  .post-description {
    color: #999999;
  }
  
  .badge-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
  }
  
  .badge {
    background: #dfdfdf;
    color: #050505;
    padding: 0.2em 0.5em 0.1em 0.5em;
    border-radius: 0.2em;
    font-size: 1rem;
    text-decoration: none;
  }
  
  .badge:visited {
    color: #050505;
  }
  
  .contacts-list {
    line-height: 1.3rem;
  }
</style>

</head>
<body>
<header>
  <div id="title">
    <a href="/">Varun Barad</a>
  </div>
  <nav>
    <ul>
      <li><a href="/blog/">Blog</a></li>
      <li><a href="/projects/">Projects</a></li>
      <li><a href="/books/">Books</a></li>
      <li><a href="/ideas/">Ideas</a></li>
      <li><a href="/contact/">Contact</a></li>
      <li><a href="/resume/">My Resume</a></li>
    </ul>
  </nav>
  <div>
    <p style="margin: 0; padding: 8px; text-align: center; color: #ffffff44;">This website is going under a redesign slowly</p>
  </div>
</header>



<main>
  <h1>Blog (#android)</h1>

  <div class="badge-list">
    
      <a href="/category/android" class="badge">#android</a>
    
      <a href="/category/book-highlights" class="badge">#book-highlights</a>
    
      <a href="/category/cheat-sheet" class="badge">#cheat-sheet</a>
    
      <a href="/category/computers" class="badge">#computers</a>
    
      <a href="/category/dart" class="badge">#dart</a>
    
      <a href="/category/fitness" class="badge">#fitness</a>
    
      <a href="/category/flutter" class="badge">#flutter</a>
    
      <a href="/category/interesting" class="badge">#interesting</a>
    
      <a href="/category/javascript" class="badge">#javascript</a>
    
      <a href="/category/javascript-30" class="badge">#javascript-30</a>
    
      <a href="/category/life-hack" class="badge">#life-hack</a>
    
      <a href="/category/medicine" class="badge">#medicine</a>
    
      <a href="/category/miscellaneous" class="badge">#miscellaneous</a>
    
      <a href="/category/personal-growth" class="badge">#personal-growth</a>
    
      <a href="/category/privacy" class="badge">#privacy</a>
    
      <a href="/category/programming" class="badge">#programming</a>
    
      <a href="/category/project" class="badge">#project</a>
    
      <a href="/category/python" class="badge">#python</a>
    
      <a href="/category/rx-java" class="badge">#rx-java</a>
    
      <a href="/category/til" class="badge">#til</a>
    
      <a href="/category/tools" class="badge">#tools</a>
    
      <a href="/category/typractice" class="badge">#typractice</a>
    
      <a href="/category/web" class="badge">#web</a>
    
      <a href="/category/wracker" class="badge">#wracker</a>
    
    <a href="/blog.html" class="badge">#all</a>
  </div>

  
  <div class="periods-wrapper">
    
      <div class="period">
        <h2 class="period-title">2020 (4)</h2>

        <div class="post-list">
          
            <p class="post-item">
              <a href="/blog/prevent-back-navigation-to-login-screen.html" class="post-title">Prevent back navigation to login screen</a>
              <br>
              <span class="post-description">The guide to correct way of preventing back navigation to login screens once user is logged-in</span>
            </p>
          
            <p class="post-item">
              <a href="/blog/keep-android-screen-on-when-usb-connected.html" class="post-title">Keep Android screen on When USB is connected</a>
              <br>
              <span class="post-description">Use the command `adb shell svc power stayon usb`</span>
            </p>
          
            <p class="post-item">
              <a href="/blog/write-custom-android-lint-rule-manifest-file.html" class="post-title">Write Custom Android Lint Rule - Manifest File</a>
              <br>
              <span class="post-description">Writing our own custom android lint rules for verifying AndroidManifest file.</span>
            </p>
          
            <p class="post-item">
              <a href="/blog/write-custom-android-lint-rule-layout-files.html" class="post-title">Write Custom Android Lint Rule - Layout Files</a>
              <br>
              <span class="post-description">Writing our own custom android lint rules for verifying layout files.</span>
            </p>
          
        </div>
      </div>
    
      <div class="period">
        <h2 class="period-title">2019 (3)</h2>

        <div class="post-list">
          
            <p class="post-item">
              <a href="/blog/testing-deep-link-urls-using-adb.html" class="post-title">Testing Deep-Link URLs using ADB</a>
              <br>
              <span class="post-description">Simple adb command to help you fire deep-link url in mobile from your console.</span>
            </p>
          
            <p class="post-item">
              <a href="/blog/http-network-requests-on-android-pie.html" class="post-title">HTTP Network Requests on Android Pie</a>
              <br>
              <span class="post-description">Android Pie only allows HTTPS traffic by default & blocks all HTTP requests. You can enable HTTP communication for your API endpoints once you have configured this little thing.</span>
            </p>
          
            <p class="post-item">
              <a href="/blog/show-hide-android-layout-bounds.html" class="post-title">Show/Hide Layout Bounds in Android</a>
              <br>
              <span class="post-description">A couple of scripts that help to toggle display of layout-bounds on connected Android device using ADB.</span>
            </p>
          
        </div>
      </div>
    
      <div class="period">
        <h2 class="period-title">2018 (4)</h2>

        <div class="post-list">
          
            <p class="post-item">
              <a href="/blog/critical-mistakes-to-avoid-in-android-development.html" class="post-title">Critical mistakes to avoid in Android development</a>
              <br>
              <span class="post-description">Charlie Munger has said that avoiding to be stupid is more beneficial when compared to trying to be intelligent. So, let's take a look at some mistakes that we can avoid while walking the path of Android development.</span>
            </p>
          
            <p class="post-item">
              <a href="/blog/simplifying-user-experience-for-rating-your-android-app.html" class="post-title">Simplifying User-Experience for rating your Android app</a>
              <br>
              <span class="post-description">Make it easy for your users to rate your Android app.</span>
            </p>
          
            <p class="post-item">
              <a href="/blog/check-network-connectivity-on-android-in-10-lines.html" class="post-title">Check network connectivity on Android in 10 lines</a>
              <br>
              <span class="post-description">Let's see how simple it is to show correct feedback to user on whether they are connected to the network or not in Android.</span>
            </p>
          
            <p class="post-item">
              <a href="/blog/hiding-api-keys-from-your-android-repository.html" class="post-title">Hiding API keys from your Android repository</a>
              <br>
              <span class="post-description">Learn how to secure your API keys while keeping the source code for that Android app open-source.</span>
            </p>
          
        </div>
      </div>
    
  </div>
</main>

<footer>
  <p>
    © 2023 🚀 Varun Barad
  </p>
</footer>

</body>
</html>