<?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[The Tech Life - Medium]]></title>
        <description><![CDATA[We will be discussing technical/programming aspects here, it could be anything from server side to mobile to IOT. Mainly we will be dealing with Mobiles. - Medium]]></description>
        <link>https://medium.com/the-tech-life?source=rss----56e5ab45242c---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>The Tech Life - Medium</title>
            <link>https://medium.com/the-tech-life?source=rss----56e5ab45242c---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 02:54:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/the-tech-life" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Let’s help and learn from each other]]></title>
            <link>https://medium.com/the-tech-life/lets-help-and-learn-from-each-other-1c06c00b87b2?source=rss----56e5ab45242c---4</link>
            <guid isPermaLink="false">https://medium.com/p/1c06c00b87b2</guid>
            <category><![CDATA[life-lessons]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[entrepreneurship]]></category>
            <dc:creator><![CDATA[Gaurav Khanna]]></dc:creator>
            <pubDate>Sat, 02 Feb 2019 11:42:19 GMT</pubDate>
            <atom:updated>2019-02-02T11:39:14.037Z</atom:updated>
            <content:encoded><![CDATA[<p>Last couple of years have been quite exciting for all, businesses, end-users and entrepreneurs.</p><p>This article is for two type of People, Wannapreneur and Inquisitive</p><blockquote>Wannapreneur: A person who aspires to be entrepreneur and wants to run business of their own.</blockquote><p>&amp;</p><blockquote>Inquisitive: An inquisitive person is intellectually curious, eager for knowledge and likes to inquire, research and ask questions.</blockquote><p>I do not want to motivate OR demotivate if you are one. My purpose is to help you get clarity. To help you understand the better and bigger picture. To help you understand why are you in this game!</p><p>Better answers come from better questions. This article is aimed to facilitate your thinking in the right direction.</p><p>If you are willing to share your answers with others and learn from others, feel free to fill the form at the bottom and I will share the answer list with you. If you want to have clarity in your own mind, write down answers of all these questions and revisit them time to time.</p><h4>Q 1</h4><p>Do you want to become entrepreneur? If yes, why? Answer in one sentence.</p><h4>Q2</h4><p>How do you spend your free time?</p><h4>Q3</h4><p>Do you see yourself as a visionary person? Share any example.</p><h4>Q4</h4><p>Do you want to change the world? Do you see yourself doing so?</p><h4>Q5</h4><p>If you could crack the money formulae and start earning as much as you do from your Job, what would you do next?</p><h4>Q6</h4><p>How do you manage articulate your thoughts into ideas? What tools do you use?</p><h4>Q7</h4><p>Do you feel your ideas are not businesses and merely a feature of some other business? What do you do about those thoughts?</p><h4>Q8</h4><p>If you have a passive income source, would you still be interested in Entrepreneurship? Why?</p><h4>Q9</h4><p>What motivated you and motivates you to continue on this path?</p><h4>Q10</h4><p>If you wake up with $500,000 in your bank account, what would you do? How about $50,000,00?</p><h4>Q11</h4><p>Do you feel pressure when you waste time? How do you tackle such situation?</p><h4>Q12</h4><p>How would you like to spend a life worth living?</p><h4>Q13</h4><p>What troubles you most (in context of entrepreneurship)?</p><h4>Q14</h4><p>How do you keep yourself motivated?</p><h4>Q15</h4><p>Do you have low days? How do you cope with them?</p><h4>Q16</h4><p>What is a typical day for you?</p><h4>Q17</h4><p>What is a successful day for you?</p><h4>Q18</h4><p>What is the one most important thing you want to accomplish in a day? Without it, you do not call it a good day.</p><h4>Q19</h4><p>What productivity hacks did you learn?</p><h4>Q20</h4><p>How often do you party/celebrate? Do you feel guilty doing so?</p><h4>Q21</h4><p>What do you think is mantra of success?</p><h4>Q22</h4><p>What do you think makes a person fit for entrepreneurship? Is it a trait one can learn?</p><h4>Q23</h4><p>What do you want from life?</p><h4>Q24</h4><p>What is your purpose of life?</p><h4>Q25</h4><p>Are you happy (Yes / NO) ? On the scale of 1–10, 10 being happiest. Rate your happiness.</p><h4>Q26</h4><p>What makes you happy?</p><h4>Q27</h4><p>Are you doing what makes you happy? If not, why?</p><h4>Q28</h4><p>How do you spend time? Do you kill time? Do you pass time? Do you utilise time?</p><h4>Q29</h4><p>What you learned from you biggest mistake?</p><h4>Q30</h4><p>Do you maintain bucket list? To-Do List? Share if you are comfortable.</p><h3>👇 Answer below if you want to learn from others 👇</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fdocs.google.com%2Fforms%2Fd%2Fe%2F1FAIpQLSd6jmO21OOYPpQT8wLb4dy7t0zD1mTbE0DlXxFwB-vWsqjb5A%2Fviewform%3Fembedded%3Dtrue&amp;url=https%3A%2F%2Fdocs.google.com%2Fforms%2Fd%2Fe%2F1FAIpQLSd6jmO21OOYPpQT8wLb4dy7t0zD1mTbE0DlXxFwB-vWsqjb5A%2Fviewform%3Fusp%3Dsend_form&amp;image=https%3A%2F%2Flh6.googleusercontent.com%2FABZ-ApqNyQcIchRdKixKi2Jxzp2O_F_3gM00vvT6yo8P8wgkCFr9w7o7_vV71hx27nE%3Dw1200-h630-p&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=google" width="760" height="500" frameborder="0" scrolling="no"><a href="https://medium.com/media/04baabf180ddd501e403b5fd855466c0/href">https://medium.com/media/04baabf180ddd501e403b5fd855466c0/href</a></iframe><h4><a href="https://gaurav-khanna.in/blogs/life/lets-help-each-other-wannapreneurs/">Credits: Originally Published Here</a></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c06c00b87b2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-tech-life/lets-help-and-learn-from-each-other-1c06c00b87b2">Let’s help and learn from each other</a> was originally published in <a href="https://medium.com/the-tech-life">The Tech Life</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Debug Android App]]></title>
            <link>https://medium.com/the-tech-life/debug-android-app-e811e786ba57?source=rss----56e5ab45242c---4</link>
            <guid isPermaLink="false">https://medium.com/p/e811e786ba57</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[android-app-development]]></category>
            <dc:creator><![CDATA[Gaurav]]></dc:creator>
            <pubDate>Fri, 31 Mar 2017 08:47:59 GMT</pubDate>
            <atom:updated>2017-03-31T08:50:46.043Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello my dear Android developers! If you have not, sooner or later you are gonna need to debug Android app. You might want to debug your logic OR you might want to debug your UI.</p><p>We are presenting here basics of debugging and tools which are handy to use. If you want us to cover something specific, leave a comment. If you learn anything new from this Video, share with other Android developers you know.</p><iframe src="https://cdn.embedly.com/widgets/media.html?url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dh_mytzmEWZQ&amp;src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fh_mytzmEWZQ%3Ffeature%3Doembed&amp;type=text%2Fhtml&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/fedd254a6661473ad2c4f89eda2937d3/href">https://medium.com/media/fedd254a6661473ad2c4f89eda2937d3/href</a></iframe><p>Youtube <a href="https://www.youtube.com/channel/UC9RGxl42QbbqR-G2Alby6wQ">https://www.youtube.com/channel/UC9RGxl42QbbqR-G2Alby6wQ</a></p><p>Do not forget to like and share ❤ .</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e811e786ba57" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-tech-life/debug-android-app-e811e786ba57">Debug Android App</a> was originally published in <a href="https://medium.com/the-tech-life">The Tech Life</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Idea buckets for your startup]]></title>
            <link>https://medium.com/the-tech-life/how-to-think-ideas-for-your-startup-769abd07737b?source=rss----56e5ab45242c---4</link>
            <guid isPermaLink="false">https://medium.com/p/769abd07737b</guid>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Gaurav]]></dc:creator>
            <pubDate>Sat, 12 Nov 2016 11:47:11 GMT</pubDate>
            <atom:updated>2016-11-12T15:35:51.864Z</atom:updated>
            <content:encoded><![CDATA[<p>Everyone has many ideas for next startup. I am not an exception here. While thinking ideas OR whenever any idea struck inside my mind, I wondered whether this is a good idea or bad. Usually when we think some new idea, initial couple of minutes our blood starts pumping fast and we imagine this is killer. After a night sleep, same idea becomes okayish type and sometimes the wow factor persists. I was trying to categorise my thoughts and came up with some categories for next ideas I might have. Sharing with you if it can help a bit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tUFAS2kyNLyROZO4G_Vqww.jpeg" /><figcaption>Image from Google Image Search</figcaption></figure><blockquote>Below are the idea buckets which can help you to better understand your idea.</blockquote><blockquote>Everybody is asking for this — People are begging Problem</blockquote><p>These are the products which consumers are asking openly and dying (literally) for someone to come up with a solution. If you can crack any from this category, there is no question of success/failure. Cancer treatment, Green energy, Electric cars, Hair fall (among men), anti-age, 1 month mobile battery, lightning fast transport, time travel are some examples from this category. If you solve, You have already won. cheers!</p><blockquote>The upgrade problem</blockquote><p>These are products which people are not asking upfront. They don’t mind if you upgrade or not, nobody is dying for these products. But if you do innovate; your consumers will be happy and they will pay you as well. This is the category where problem has been solved [almost to its best but there is always lil improvement]. Good example of this is New iPhone every year till 2016, lil improvements on car interior/exterior. If you solve this, presentation and marketing makes all difference here.</p><blockquote>Nobody thinks it can be improved problems</blockquote><p>There is not always better solution but sometimes there is. These are the solutions without which people are doing the same thing with cumbersome way, nobody realises there is a better solution unless an innovator like yourself proves. People are settled with what they have. Trying this product is usually like leaving comfort zone but once they experience, they never go back. Best example is Whatsapp, we were using internet since long and chat had existence [in-fact in a good way] but the way these guys executed over contact book, it could never had been done better [at least till date no one could prove and facebook paying 19 Billion is live proof we have]. This type of products comes once in a couple of years and it is never easy to shake established market but it is never impossible, Facebook did with Orkut. Whatsapp did with all messengers. If you crack this, you win heart and money.</p><blockquote>Nobody could think solution— The Innovation</blockquote><p>People are not facing this problem directly. They are using other ways to achieve the same thing or they don’t know they have this problem. They don’t know they need this solution either. They are busy in their life with the existing utilities and then this solution comes and boom. People go crazy for it, they see need of it. Social network is an old concept, execution of facebook was something which comes under this category [specially the news feed], First time car during bull-cart age, microwave during gas-stove age, ipod during walkman age, iphone during feature phone age, stereo music during mono music age and many more. If you crack this, you become value add and you win. Word of mouth is <a href="https://en.wikipedia.org/wiki/Brahmastra">brahmastra</a> here.</p><blockquote>Disruption</blockquote><p>It is outcome of research, luck, hard work , perseverance, and unimaginable to majority of people [ 99.9%]. Here you create a new era, new technology. Usually you do not create a product in this category, you disrupt a market[sometimes many]. You create something which forms basis of many other products OR which begins a new wave altogether. History speaks these innovators themselves do not imagine the way their technology will be used. Linux is one of best example. A project started for personal use and small purpose is powering almost everything these days. These event happens in decades and if you are one of them, congratulations my friend; you are creating history.</p><blockquote>Base of other innovations- Platform</blockquote><p>These products leverage existing technology, create something for creators. Usually end users do not use their product because of them but because of other creators who show their creativity and produce something on this platform. The technology these people use could be total new to the domain OR exists since ages. Good example here is Android OS. Android leverages Linux and opens a gateway for mobile app developers who can show their creativity within bounds of Android and produce something which could lie in any other category we have mentioned here. Sometimes these platforms serve as raw technology for other platforms as well. Wechat is another example of a platform which leveraged Android and opened a new market in china. These type of product hit market in scarcity but whenever right platform hits market, it lasts for long. If you can crack a good platform, you become initiator of creativity and a winner indeed.</p><blockquote>Marry existing products</blockquote><p>Usually these are copy products and hardly they succeed. These products are result of existing solutions in other domain, example is “Uber” of everything. We can see as this is a recipe of success and people try to change some ingredient in hope they will come up with something new result. People are copying Uber model in other business domains with hope they might crack market. Another example is ‘live weather application’ : weather + internet + live updates. Someone can change weather with stock price and rest recipe is same, so it becomes ‘stock price + internet + live updates’. These products can be as simple OR can be something total new. I myself tried one product in this category, I tried to marry Alarm and Internet and result is <a href="https://goo.gl/muwf3W">Watstime</a> <a href="https://goo.gl/muwf3W">https://goo.gl/muwf3W</a></p><blockquote>Short term excitement solution</blockquote><p>These are products/services/solutions which come and go every couple of months, sometimes they rotate in some long duration. I think ‘timepass’ is subject matter of these solutions. Gaming is good example here, every couple of months you can find a new game launching and people are playing it like anything and then boom! Suddenly it does not see light of day. People get bored of these things or something new replaces them. The new thing which replaces them is not necessary innovation but definitely a value add, it is the replacement from existing habits/timepass which people will adopt soon and will leave soon. if you can create buzz/excitement you win consumers and money.</p><p><em>There could be many other categories as well which you think fit here OR these can be improved. Feel free to add in comments. If you like this article press that little ❤ below and spread the word. Share on your Facebook and other social profile.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=769abd07737b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-tech-life/how-to-think-ideas-for-your-startup-769abd07737b">Idea buckets for your startup</a> was originally published in <a href="https://medium.com/the-tech-life">The Tech Life</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A tale of Musical Evolution in Android Media APIs]]></title>
            <link>https://medium.com/the-tech-life/a-tale-of-musical-evolution-in-android-media-apis-98af9dc14c94?source=rss----56e5ab45242c---4</link>
            <guid isPermaLink="false">https://medium.com/p/98af9dc14c94</guid>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[exoplayer]]></category>
            <category><![CDATA[android-apps]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Bharat Verma]]></dc:creator>
            <pubDate>Sat, 10 Sep 2016 11:31:38 GMT</pubDate>
            <atom:updated>2016-09-10T11:30:02.480Z</atom:updated>
            <content:encoded><![CDATA[<h3>Pilot</h3><p>This tale is about the time when IceCream Sandwich(<em>Holo</em>) was launched and everybody was crazy about android mobiles. With whole new experience built around a cleaner, minimalistic design, Holo earned a place in heart of every user<em>. </em>Android OS<em> </em>versions were launched and discontinued, but one thing was common about all of them. There was an API known as MediaPlayer API in the heart of every Android SDK. With this API, Any android version would feel more living, more musical, more in demand.</p><h3>Young and Prosperous</h3><p>With the launch of Holo, MediaPlayer API has now come of age. It was young, well documented and easy to use. MediaPlayer API is adequately documented. It is a good example of abstraction and encapsulation. Let us see how.</p><p>Suppose we want to play a song from the Internet. Now playing an online song is a long and complex process. If a developer have to implement that by himself, he would have to handle many tasks by himself. Lets try to list a few of them:</p><ul><li>Networking</li><li>Buffering</li><li>Extraction</li><li>Decoding</li><li>Rendering</li><li>State Management</li></ul><p>these tasks have there own complexity and and learning curve. Other than these tasks there is also some playback logic that you need to write to handle current position, play, pause etc.</p><p>Now, it seems like a lot of things to handle. Moreover, there was no low level API in android SDK available to achieve many of these tasks. But Because we had MediaPlayer API available, playing an online song was a piece of cake. It was because of MediaPlayer API, that a developer didn’t have to bother about any of these low level tasks. Developer would just give a URI of Online/Local media file, and MediaPlayer would do the job.</p><p>Lets have a look on how Media Player works in Android when an MP3 song is streamed over network. Developer just have to write basic code :</p><pre>MediaPlayer mPlayer = new MediaPlayer();</pre><pre>mPlayer.setDataSource(url);</pre><pre>mPlayer.prepare();</pre><pre>mPlayer.start();</pre><p>and MediaPlayer would do the magic in background :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/518/1*9C6WHlZcFPVlAjmjstHaGg.jpeg" /><figcaption>MediaPlayer handles all low level tasks by itself.</figcaption></figure><p>Developers were using MediaPlayer API at its best. Many wonderful applications were build, technical blogs were written, talk were made, and users enjoyed the endless pleasure of good music applications on android smartphones all around the globe. <em>Everything was Perfect, everybody was happy.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*lbdq9e32F9vGrs3Qs71QCA.gif" /></figure><h3>Perfection is the enemy of good</h3><p>As Time was running at its pace, innovative ideas were popping out of brilliant brains. With emerging need of optimisation and customisations, MediaPlayer API was used more intensively and aggressively. MediaPlayer API was like a holy saint, but with rise in expectations, other side of the coin just showed up. For instance:</p><ol><li>Developer wanted to locally persist the data buffered by MediaPlayer during streaming of a song which was not possible.</li><li>MediaPlayer API was capable to open only raw resources.</li><li>Some developer tried to read its code and create another player but because of no such low level API support, everybody was helpless.</li><li>If you try to pause a sound before it actually play (in prepare state), it throw IllegalStateException.</li><li>Same happens if you accidentally replay a sound again before preparing.</li><li>Game Developer was the biggest victim as they wanted to play multiple sound in a game.</li></ol><p>MediaPlayer was the only one capable to play media in android. It was found to be poorly designed, unpredictable and not flexible. The encapsulation and abstraction stopped it from being extensible. <em>Developers were living in despair, Once Saint was then popular as Draconian Devil.</em></p><h3>Spill the beans: <em>The Magic Beans</em></h3><p>Desperation and frustration among developers was growing. They wanted to use MediaPlayer, but with a twist. They wanted to do more with it. Expectations were legitimate and needed to be answered. Google(<em>read God of android world</em>) has figured it all out. In June 2012, new android version <strong><em>Jelly Bean</em></strong> was announced. With this update, Media API in android took a new turn. In Google IO 2012, new Media Player Low Level APIs were introduced. These APIs allowed user to bypass the MediaPlayer.java and allowed developer to handle media objects the way s/he wants.</p><p>These APIs were just a wrapper around native media code but this allowed a developer to <em>look beyond what you see. </em>The idea was to allow user to extract information from the media at low level. Now a user can extract tracks, samples, play with buffers, process video frame before rendering etc.</p><p>Lets have a brief look on these APIs. Some of the main attraction of this API are as follows :</p><ol><li><strong>MediaExtractor</strong> : MediaExtractor is one of the main class. This class allows you to extract media/media info from any media file supported by the hardware. A DataSource is passed to this class and this class will open the media file in bits and pieces for you. This class allows you to read all the tracks, sampleInfo etc. There is a lot that this class can do, but that is out of scope of this read.</li><li><strong>MediaCodec</strong> : MediaCodec class can be used to access low level encoder/decoder. <em>[Codec is basically a program that both compress media files so that it can be transferred with less latency and decompress if for viewing or editing.]. </em>MediaCodec class allow you to access any codec that is available on the hardware level. Without MediaCodec support, HLS is nearly impossible.</li><li><strong>MediaFormat : </strong>MediaFormat class represents the format of a given MediaType.</li><li><strong>MediaCodecList</strong> + <strong>MediaCodecInfo : </strong>These classes help you to know a) list all the codecs supported by a device b) information and capabilities of a particular MediaCodec type. These classes are nothing but a wrapper over a Registry XML file (<em>bundled with every device from Jellybean onwards</em>) that tells the codecs supported by this particular device at hardware level.</li></ol><p>With these classes, developers can now handle the media as they want. Lets try to categorise all low level tasks according to new APIs available to us :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/411/1*QaqSLSfdPbtSmZtzSuUoNQ.jpeg" /><figcaption>MediaPlayer with Low level APIs</figcaption></figure><p>As clear from the Diagram above, Networking, Buffering and Extraction can be achieved by MediaExtractor API. Decoding and video rendering can be achieved by MediaCodec class whereas audio rendering can be handled by AudioTrack.java which is already available since Cupcake release. So basically you can write your own media player with less effort and more flexibility.</p><h4><em>How this is better than old School MediaPlayer.java?</em></h4><ol><li>With the help of <strong>MediaExtractor and MediaCodec</strong>, We now have access to media data. We can persist it, extract relevant information from it, do image processing and much more.</li><li>We can now customise our networking, buffering and even extraction logic the way we want.</li><li>We can write support for any protocol as we like. e.g. you can write support for HLS(Http Live Streaming) and DASH protocols</li><li>We can encrypt our media or in other words, we can stream/play encrypted media files.</li></ol><p>Needless to say, you can update/extend the capabilities of your player.</p><p>Jelly<strong>bean</strong> update ended monopoly of <strong>MediaPlayer.java </strong>and opened gate for the scope of improvement in Music Application world</p><h3>Dawn of ExoPlayer</h3><p>With these new Low Level Media APIs, Google have already developed such a MediaPlayer which is known as <a href="https://google.github.io/ExoPlayer/">ExoPlayer</a>. ExoPlayer is an Application Level Media MediaPlayer with support for DRM encryption, HLS, DASH and almost all kind of media formats. It is designed in a way that make it flexible, easy to use, modify and extend.</p><p>ExoPlayer is already being used by Youtube, Wynk Music and other famous media applications. ExoPlayer has brought a new revolution in Media Application. We will discuss more about ExoPlayer in detail in coming posts.</p><p>PS: If you liked this article, please feel free to like, comment and share.</p><p>References :</p><blockquote><a href="https://google.github.io/ExoPlayer/">ExoPlayer</a> , <a href="https://www.youtube.com/watch?v=6VjF638VObA">ExoPlayer Introduction</a>, <a href="https://www.youtube.com/watch?v=RQws6vsoav8">Google IO 2012</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=98af9dc14c94" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-tech-life/a-tale-of-musical-evolution-in-android-media-apis-98af9dc14c94">A tale of Musical Evolution in Android Media APIs</a> was originally published in <a href="https://medium.com/the-tech-life">The Tech Life</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Is Your App a good citizen ?]]></title>
            <link>https://medium.com/the-tech-life/is-your-app-a-good-citizen-531c36ca2278?source=rss----56e5ab45242c---4</link>
            <guid isPermaLink="false">https://medium.com/p/531c36ca2278</guid>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[apps]]></category>
            <category><![CDATA[mobile]]></category>
            <dc:creator><![CDATA[Gaurav]]></dc:creator>
            <pubDate>Tue, 16 Aug 2016 12:37:04 GMT</pubDate>
            <atom:updated>2016-09-06T09:26:26.735Z</atom:updated>
            <content:encoded><![CDATA[<p>Every developer has this responsibility!</p><p>If you are an app developer OR a tester, ask yourself this question: Is your app is a good citizen in society of apps ? Each mobile device is like a different society where each app can be seen as an individual who is playing some role. Now in addition to main role of that individual it must comply with traits of being a good citizen.</p><p>It is similar to us, human beings who have some personal goal to achieve but we have some social responsibilities as well. What happens when we just think about ourselves and forget about society ? Simple, society abandon us. When it comes to apps, they are no different. If they wont fulfil their social responsibility, they will be gone. They will no longer be allowed to stay in society. They have to find another home. Yes, it is painful.</p><blockquote>Traits of a Good Citizen</blockquote><p>Each app has some social verticals it should take care of when doing anything. It is similar to Humans, where paying extra effort is not that important and possible for everyone but being conscious does not demand extra efforts and you can give your part easily to society.</p><blockquote>Power — The fuel</blockquote><p>Being a human, nobody says you do not use electricity. It is your basic need. Of-course you have to use it. But how can you help society ? Simply by not wasting it. If you have enough money, it does not give you rights to waste electricity. So, if you are not consuming it, do not use it. TURN OFF appliances when possible.</p><p>Same applies to apps, for them it is Battery which serves as electricity for them. Nobody is saying you not to use it, but do not waste it. Whenever your app does something in foreground OR background, it eats a fraction of battery depending on task it performed. As mentioned above, if user needs it; you can not and must not avoid. But what about those extra wake ups and background processing which could have been avoided!! Yes your few couple of thousands of CPU cycles wasted that battery which your user could use it in emergency OR any other app could help him in another needy situation. Think your owner (user) could not capture his baby’s first walk Video OR could not make that emergency call because your app ate battery in background. Yes it is awful and more serious than it sounds at first.</p><blockquote>Network of Money</blockquote><p>Assume your Child buys a chocolate, eats half and then throws it away daily. Not only that she buys some OCOHC company chocolate which charges double for its packing. Yes they sell same chocolate lose in half price. What will you do in this situation ? If you are in your senses, For once OR twice you will notice and then :</p><ol><li>You could give her only half which she eats</li><li>You could buy lose chocolate</li><li>If 2nd option does not help, You could reuse same packing you earlier bought</li><li>You could try some alternate candy chocolate sometime and see if your baby likes it</li><li>You could quit job, travel to Europe and hide from your Kid until She turns 18 and can buy that chocolate herself</li><li>You might have better option</li></ol><p>On the same notes, when it comes to apps; they use network data and Network data is directly money for users. In most past of world people pay so much for network data which your app does not care at all. Yes each byte matters, There are plenty of resources available online which will make your app a good citizen in Network wing. You must use caching, data compression, download what user needs, download as per mobile device, pre fetching, do not fetch unnecessary data and few other optimisations here. Being in background and consuming network data is similar to a thief trying to steal some money from your pocket when you are sleeping in that train.</p><blockquote>Clean your Shit</blockquote><p>You live in a home and everything has a upper cap. From space for shoes to space in wardrobe to kitchen to space in your washroom. Assume you start messing up every place and sooner or later YOU are out of space. Where will you sleep ? Where will you cook ? Where will you eat ? Where will you ***** ?</p><p>An app goes to same dilemma when it does not care about upper cap of resources it has. One perfect example here is RAM ( Memory ). Memory is your app’s home and it has got upper limit. You simply can not mess up with space and continue. You should know what to use and when and more importantly what to clean and when. Because when you are really hungry and you will be in need of space to cook and eat, you will die out of hunger.</p><blockquote>Waste expenditure</blockquote><p>Suppose a portion of your home was painted a month ago. Will you paint it again ? Assume you do. Then what will you waste ?</p><ul><li>You will waste money no doubt — buying raw material, labour etc</li><li>You will waste natural resources which were used for material</li><li>You will waste existing paint, electricity used etc</li><li>You will waste your own time</li></ul><p>Question is why would you do that ? Nobody in their senses would do that. It is plain wastage. Unfortunately apps do not care about digital waste. They think it is okay to fetch same data OR to draw on existing pixels again and again. Remember, when you overdraw -&gt; You waste CPU -&gt; RAM-&gt; Battery. Everything is connected. At the end you are digging a hole for yourself.</p><p>Lastly, relate it to a Person who used to think same about Human society. He wasted food because he had money, he wasted electricity because he could afford, he burnt energy resources because he did not care. One day, when we went to buy any of these resources, he no longer could. Resources were limited. He could not utilise them when he was in real need.</p><p>Similar is the situation for apps, if they do not waste any of the resource available, they are not only helping user; they are helping themselves as well. Your app serves a purpose in its society of apps, it can perform long and perform well if it will get resources when needed. In addition, being a good citizen is a matter of pride in itself.</p><p>Share your thoughts in comments. Please hit the ♥ button in the footer so that more people can appreciate!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=531c36ca2278" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-tech-life/is-your-app-a-good-citizen-531c36ca2278">Is Your App a good citizen ?</a> was originally published in <a href="https://medium.com/the-tech-life">The Tech Life</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>