<?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 Sai Kamisetti on Medium]]></title>
        <description><![CDATA[Stories by Sai Kamisetti on Medium]]></description>
        <link>https://medium.com/@saikamisetti?source=rss-c6b4e419d456------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*AUfE-7-gKCoyWaRG.jpg</url>
            <title>Stories by Sai Kamisetti on Medium</title>
            <link>https://medium.com/@saikamisetti?source=rss-c6b4e419d456------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 01:31:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@saikamisetti/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[Android MVP Base App]]></title>
            <link>https://medium.com/@saikamisetti/android-mvp-base-app-e614df5fe6b6?source=rss-c6b4e419d456------2</link>
            <guid isPermaLink="false">https://medium.com/p/e614df5fe6b6</guid>
            <category><![CDATA[android-mvp]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[app-development]]></category>
            <dc:creator><![CDATA[Sai Kamisetti]]></dc:creator>
            <pubDate>Thu, 28 Jun 2018 18:04:09 GMT</pubDate>
            <atom:updated>2018-06-28T18:10:32.407Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*776DjFYraJD_hUBEWvY40g.png" /></figure><h3>Why Base App?</h3><p>As an Android enthusiast, I keep getting flashes of app ideas. Every time I sit to implement one of those ideas, I get so lost in setting the base app, that I lose the fire by the time I get a chance to reach the business logic.</p><p>That’s when I had realised the importance of having a base app which I can simply clone to my other projects and directly dive into what really matters(the business logic).</p><p>So, I have created a base app with MVP(Model-View-Presenter) architecture and the most common libraries I always use.</p><h3>Libraries included</h3><ul><li><a href="https://github.com/square/retrofit">Retrofit2</a> — Type-safe HTTP client for Android and Java by Square, Inc. It makes it very handy to use a JSON-to-java converter, easy and modular interceptors for logging, adding headers, query parameters(e.g. access token), etc.</li><li><a href="https://github.com/square/moshi">Moshi</a> — Moshi is a modern JSON library for Android and Java. It makes it easy to parse JSON into Java objects and vice-versa. You can also create custom type adapters. It also has this cool <em>jsonqualifier </em>annotation<em> </em>to avoid unnecessary java objects and to parse different kinds of JSON into a single java class.</li><li><a href="https://github.com/square/retrofit/tree/master/retrofit-converters/moshi">Moshi converter for Retrofit</a> — A converter which uses <a href="https://github.com/square/moshi">Moshi</a> for serialization to and from JSON. This is a must for me as I don’t have to go to the JSON layer anymore. Retrofit directly gives me the corresponding java object as a response using this converter.</li><li><a href="https://github.com/ReactiveX/RxJava">RxJava</a> — It’s a library for composing asynchronous and event-based programs by using observable sequences. It extends the <a href="http://en.wikipedia.org/wiki/Observer_pattern">observer pattern</a> to support sequences of data/events. It also makes it easy to handle low-level threading, synchronization, thread-safety and concurrent data structures without huge boilerplate code. I must say, one must get really comfortable with RxJava to be a seasoned Android Developer.</li><li><a href="https://github.com/ReactiveX/RxAndroid">RxAndroid</a> — This module adds the minimum classes to RxJava that make writing reactive components in Android applications easy and hassle-free. More specifically, it provides a Scheduler that schedules on the main thread or any given Looper.</li><li><a href="https://github.com/JakeWharton/butterknife">Butterknife</a> — Field and method binding for Android views which uses annotation processing to generate boilerplate code for you. I was always flooded with “findViewById()” before discovering this gem.</li><li><a href="https://github.com/square/okhttp/tree/master/okhttp-logging-interceptor">Okhttp logg</a>ing interceptor—This helps log all the network calls in the application. There are filters to restrict the logging level with respect to requests and responses(e.g. BASIC, BODY, HEADER, etc). You could also use Timber if you want to write your own style of logging. Okhttp logging interceptor seemed pretty comprehensive without any extra code.</li><li><a href="http://jakewharton.github.io/timber/">Timber</a> —This is a logger with a small, extensible API which provides utility on top of Android’s normal Log class. You can very easily maintain different variants of logging based on build type, environment, etc.</li><li><a href="https://github.com/google/auto/tree/master/value">Autovalue</a> — Have you ever got stuck in writing the equals() method for your custom classes? Well, here comes Autovalue to wipe off all your problems along with boilerplate code. You’re welcome.</li></ul><p>MVP is the architecture I’m most comfortable with and hence, this base app is in MVP. I’d soon share a base app for MVVM too. I’m still getting my hands on it using Architecture Components.</p><h3>Github link</h3><p>Finally, the link to the project is <a href="https://github.com/saikamisetti/BaseMVP">https://github.com/saikamisetti/BaseMVP</a></p><p>The journey to become a better Android developer is never ending. Looking forward to your feedback and pull-requests :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e614df5fe6b6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>