<?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 Trishant Sharma on Medium]]></title>
        <description><![CDATA[Stories by Trishant Sharma on Medium]]></description>
        <link>https://medium.com/@trishantsharma1997?source=rss-3f36b165c765------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*2bsD4g6ckml24JtcqnFv-A@2x.jpeg</url>
            <title>Stories by Trishant Sharma on Medium</title>
            <link>https://medium.com/@trishantsharma1997?source=rss-3f36b165c765------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 06:16:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@trishantsharma1997/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[Gratitude is the only thing a person needs to live happily]]></title>
            <link>https://medium.com/@trishantsharma1997/gratitude-is-the-only-thing-a-person-needs-to-live-happily-611fed0257c7?source=rss-3f36b165c765------2</link>
            <guid isPermaLink="false">https://medium.com/p/611fed0257c7</guid>
            <category><![CDATA[gratitude]]></category>
            <category><![CDATA[happiness-in-life]]></category>
            <category><![CDATA[inspirational]]></category>
            <category><![CDATA[life-lessons]]></category>
            <dc:creator><![CDATA[Trishant Sharma]]></dc:creator>
            <pubDate>Thu, 22 Mar 2018 18:12:44 GMT</pubDate>
            <atom:updated>2018-03-22T18:13:31.563Z</atom:updated>
            <content:encoded><![CDATA[<h4>The power of gratitude is the only thing a person ever needs in his life.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/235/1*SIjOXaQYCHoAzbubWS1dMw@2x.jpeg" /></figure><p>Most of the people in today’s world remain so disappointed or we can say dissatisfied with their present lives and just continue to bust themselves everyday just to find that perfect life that they need.</p><p>Let me tell you a story:-</p><p>Once there was a simple man living with his family in his house and he just worked like a normal day to day person. He went to office, worked, came back, watched TV, played some games on his cellphone, had dinner and then slept to wake up with the same routine to be followed the next day. He always wanted to have a holiday to visit his favourite place Paris, and just worked day and night without ever closely looking at his children, his parents or his wife and never really giving them time. He worked and worked and one day he got that salary increment he was working for and he immediately booked a holiday to Paris with his family. He though that he would enjoy that to the fullest and just break free from all stress there but that didn’t happen. On reaching Paris, for the first few days he enjoyed a lot, but after 3–4 days he again started thinking about the fact that his holiday is now coming to an end and he would again have to work even harder to go on a better holiday than this one.</p><p>And that story continued.</p><p>Now, according to you what he did was right or wrong..?</p><blockquote>Some might say that he was right as he had to feed his family and take his family on a tour and that is why there was no harm in working that hard for your family.</blockquote><blockquote>Some might day that he was wrong and he should give time to his family as family is always first.</blockquote><p>Let me tell you that no matter which of the above is your perspective towards that story, both are correct.</p><p>He was absolutely right to work very hard for his family to feed them and also take them on their dream tour/holiday but he could’ve done this simultaneously giving time to his family.</p><p><strong><em>So, what was the mistake…?</em></strong></p><p>The mistake was that he was lacking the feeling of gratitude in his life.</p><blockquote>Gratitude is the feeling of satisfaction and generosity in life. It basically means that you are happy and satisfied with everything you have in your life and you celebrate that feeling everyday.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/270/1*SGN8cOgxeACtHpJ7tk-npQ@2x.jpeg" /></figure><p>He didn’t enjoy the pleasure of having a family, a roof, food on his table and a good job with a good salary. He didn’t find the beauty of the moments that he spent with his family and rather always thought about getting that increment in his salary for his dream tour.</p><p>As you saw that even after he got to go on his dream holiday he still wasn’t satisfied from within and wanted to work even harder for a more long a luxurious holiday.</p><p>You should never be that kind of a person as if you become like that then no matter what you achieve in life you’ll never get satisfied and always loose the happy and precious moments that happen almost everyday in life.</p><blockquote>Live in the present my friend. Otherwise you’ll regret one day that you lost the moon while counting the stars.</blockquote><p>The moon here is your loved ones and the times you’ve spent with them.</p><p>Those feelings of having a luxurious house, a car, and be rich are all and will always be just material things which will never satisfy you. Over time you’ll get bored of these luxurious things that once you worked so hard for and work more hard to get more rich or something like that.</p><p>The man should’ve welcomed each and every moment he spent with his family and friends with open hands and must’ve embraced the true eternal beauty of those moments.</p><blockquote>Trust me friends, if you enjoy literally every single moment in your life and express the feeling of something great in every kind of situation than you’ll be far more happy and satisfied with your life then even those millionaires that you dream to be.</blockquote><p>Gratitude induces a positive mindset that can help a person achieve anything in life.</p><blockquote>It is the journey that matters not the destination.</blockquote><p>I mean, what will be the use of those accomplishments if you do not have family and friends with you or the moments you have spent with them in your heart. The excitement of those accomplishments will fade overtime but remember this that the moments you spent with your loved ones will always and always remain in your heart and you’ll never get bored of even a single moment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/192/1*e511ccwcGrfvFLUaQ2WPug@2x.jpeg" /></figure><p>Those material accomplishments will come and go, but if you truly enjoy every bit of life and have a feeling of gratitude towards the moments spent then you’ll find everyday exciting and joyous and you’ll never get bored of it as if you observe everyone in your family and spend time with them you get to know more and more interstellar things about them that you might have never known in your entire life if you lived like the man in the story.</p><blockquote>Take care of your family, love your friends, respect everyone and forgive everyone and you’ll be far better off then most of the people in this world.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/235/1*uoGaUxcMbYnWwB7rAwxGyg@2x.jpeg" /></figure><p>Remember, Gratitude is the thing which you can practice daily and you’ll get better with every passing day in your life.</p><p>Wake up everyday and Thank god for giving you this life, spend some morning time with your family and then go to your work, when you come back tell your family about the whole day even if it same old boring, and listen to them also as to what they did the whole day, have dinner together and sleep by wishing everyone with a Good Night Hug. By spending time with your family you get to know more and more about them everyday and they also get to know you.</p><p>Just try this and you’ll suddenly feel the change happening in your life and you’ll be surprised that you have started to be more happy than you were ever in your life and that feeling will come to you everyday. Trust me on this as I have applied this in my own life and therefore I am now very happy with my life as I get to know new things about my family everyday and that alone is very exciting for me. I thank god everyday for the life he has given me and especially the family that he has given me.</p><p>As a closing note I would just like to say that:-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/1*oMI15saWxjaqQyHFgfye1Q@2x.jpeg" /></figure><blockquote>Seize every moment in your life and find out the true greatness of hidden inside every moment for that is the key to remain happy in life.</blockquote><h4>I hope this article helps everyone who reads this and this was just a gentle effort to improve anyone’s life.</h4><h4>If you don’t want to then don’t clap but Please practice this in your life.</h4><h4>Peace.</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=611fed0257c7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AsyncTask in Android]]></title>
            <link>https://medium.com/@trishantsharma1997/asynctask-in-android-f594a565d676?source=rss-3f36b165c765------2</link>
            <guid isPermaLink="false">https://medium.com/p/f594a565d676</guid>
            <category><![CDATA[threading]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[async]]></category>
            <dc:creator><![CDATA[Trishant Sharma]]></dc:creator>
            <pubDate>Thu, 22 Mar 2018 11:31:41 GMT</pubDate>
            <atom:updated>2018-03-22T11:37:38.514Z</atom:updated>
            <content:encoded><![CDATA[<h4>AsyncTask is one of those topics which take time and dedication to be understood but once understood one can get the hold of the topic pretty much and can apply those easily with complete understanding of what is going under the hood.</h4><blockquote>If you think that you know these topics well or these are very easy to understand then please do not continue as below I have explained the pure basics, advantages and disadvantages of both these concepts.(as much as I have understood)</blockquote><h3>AsyncTask</h3><p><strong><em>INTRODUCTION</em></strong></p><p>AsyncTask is an abstract class which means that the class extending it need to implement the below mentioned methods and also since the class is generic type the class extending it should specify these 3 generic types.These are explained below:-</p><p>Ex: a class extending it will use the below line…</p><pre>private class SomeTask extends AsyncTask&lt;Params,Progress,Result&gt;{</pre><p><em>AsyncTask’s Generic Types:-</em></p><ol><li>Params → The type of parameters sent to the background thread to be used upon execution.</li><li>Progress → The progress which is used to publish the progress on the main UI thread.</li><li>Result → The result which is obtained after the background thread has finished execution.</li></ol><p>AsyncTask is basically used to reduce the load of tasks off the UI thread. It creates a background thread to perform an operation like that of fetching results from the Internet or loading data from the database, etc. and then publish the results to the main UI thread.</p><p><strong><em>USAGE</em></strong></p><p>It should generally be used for short operations which should ideally be finished in a matter of few seconds.</p><p>I’ll tell the reason for this in a while but first we need to know about all the <strong>methods of AsyncTask.</strong></p><pre>1. <strong>onPreExecute()</strong> --&gt; This method is invoked just before the background thread is created and here we can do some initialisation that we might want to do before the background thread starts the task.<br>It is used to basically setup a task. Ex: showing a Progress Bar,etc.<br><strong>It runs on the main UI thread.</strong></pre><pre><strong>2. doInBackground(Params...) </strong>--&gt; This method is invoked on the background thread immediately after onPreExecute has finished executing and is used to perform the task which is supposed to be run on the background thread.This method can also call publishProgress(Progress...) method to puclish progress on the main UI thread which is received by the onProgressUpdate(Progress...) method.<br>Ex: Fetching results from a network request, etc. <br><strong>It runs on the background thread.</strong></pre><pre>3. <strong>publishProgress() </strong>--&gt; This method can optionally be called within the doInBackground() method to publish progress to the main UI thread and show that progress to the user.<br><strong>It can be called several times within the doInBackground to keep the user updated about the progress of the task happening.</strong></pre><pre>4. <strong>onProgressUpdate(Progress...) </strong>--&gt; This method is invoked on the main UI thread just after publishProgress(Progress...) is invoked on the background thread and it receives the current progress and can used to display/update the progress on the main UI. <br><strong>It runs on the main UI thread.</strong></pre><pre>5. <strong>onPostExecute(Result) </strong>--&gt; This method is invoked on the main UI thread just after the background thread has finished executing and has returned the result to this method as seen in the method parameter. The result can be then be used to do anything the developer wants to do with that result. <br><strong>It runs on the main UI thread.</strong></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y_SjRXKcGI_EgFv33Rd2hQ.png" /></figure><p>Now, that we know about the methods , let us see an example:-</p><pre>private class DataFetcher extends AsyncTask&lt;String,Void,Integer&gt;{<br>    @Override<br>    protected void onPreExecute() {<br>        super.onPreExecute();<br>        //Used to show the progress bar<br>        mProgressBar.setVisibility(View.<em>VISIBLE</em>);<br>    }<br><br>    @Override<br>    protected void onPostExecute(Integer result) {<br>        mProgressBar.setVisibility(View.<em>GONE</em>);<br>    }<br><br>    @Override<br>    protected String doInBackground(String... params) {<br>        // Here the code to execute something on the background </pre><pre>        // thread is written. May call publishProgress() to publish </pre><pre>        // progress to the main UI thread.</pre><pre>        //Finally after finishing the task return the result in the</pre><pre>        //form of an Integer<br>   }<br>}</pre><pre><strong>THEN TO CALL IT WE USE THE FOLLOWING LINE OF CODE:-</strong></pre><pre>new DataFetcher.execute(someStringVariable)</pre><ol><li>String is used to tell that the input data is of type String.</li><li>Void is used to tell that we do not want to publish the progress on the main UI thread.</li><li>Integer is used to tell that the result will be in the form of an Integer.</li></ol><blockquote>→ What this class does is that take a String as an input variable and return the result in the form of an Integer.</blockquote><blockquote>→ You may have noticed that we do not use primitive types here since the generic types require an object therefore <strong>Integer</strong> is used since it is a wrapper class of the primitive datatype <strong>int </strong>and converts it into an object, similarly Void is used as a wrapper for <strong>void </strong>primitive datatype.</blockquote><h4>Why AsyncTask…?</h4><p>If our app deals with the data loading from the internet or over a network or doing any other task which can take time and you are using the main thread to execute the operations of that task then it introduces a lot of load on the main UI thread.Let me explain this…</p><p>In normal scenerio your data will load in almost no time and the user doesn’t notice a difference but if the user is in an area where there is a slow internet connection then the task which is executing on the main UI thread will take longer than expected to respond and hence the user cannot further interact with the app since the main UI thread is busy fetching the results and cannot perform other tasks. Therefore, AsyncTask came into existence so that the load of doing such things is reduced on the main UI thread and pushed to a background thread so that even if it takes slightly longer to fetch the results, the app will be able to respond to user clicks and the user can freely interact with the app. When the task is completed then the result is published to the main UI thread by calling onPostExecute() asynchronously which in turn, displays the result/uses that result to do something.</p><h4><strong><em>Why should AsyncTask be used ideally for small operations…?</em></strong></h4><p>As you may have seen that 3 methods in AsyncTask run on the main UI thread and only two(including the publishProgress( )) method run on the background thread. This type of working can block the main UI thread even though the task to be performed is being done in the background. Let me explain this:-</p><p>If your app is loading something from the internet through a network request where the area in which the smartphone is being used has a slow internet connection due to any reason and your user presses the refresh button then another AsyncTask will be created and the methods of that AsyncTask would also run on the main thread but they won’t be able to run it since there is already an AsyncTask running and the onPreExecute() method of the second AsyncTask will not be invoked on the main thread until the previous AsyncTask is done with it’s work and onPostExecute() is called, hence blocking all other methods in the application used to respond to user clicks or any other functionality, hence freezing the app.</p><blockquote>If you want to perform long operations in the background then you can use other classes like Executor,ThreadPoolExecutor and FutureTask.</blockquote><h4><strong>The main disadvantage of using an AsyncTask and why they should rarely be used…</strong></h4><ol><li><strong>Block the main UI thread → </strong>One reason for this is the same as mentioned above that it can block the UI thread thereby freezing the app.</li><li><strong>Wastage of memory →</strong>The creation of another AsyncTask can not only happen through refresh button but a rather more general and practical example is suppose an AsyncTask is already running and the user <strong>rotates the screen, </strong>then another Activity will created and the former activity will go to the Stopped State and since there is a completely new Activity a new AsyncTask is created and a new background thread is created and then suppose the user again rotates the screen before the task is completed, then another AsyncTask is created with a new background thread, and it can happen again and again creating multiple number of AsyncTasks in the memory thereby creating a large number of AsyncTask objects is created in the memory which in turn, wastes a lot of memory and since memory is a very precious resource in Android and should be used as efficiently as possible, it is not at all recommended. And if this scenario happens again &amp; again than Android OS will have no coice but to forcefully destroy your Activity which you definitely do not want to happen.</li><li><strong>Can lead to Memory Leaks → </strong>If the user rotates the screen another AsyncTask is created and as you know that the previous AsyncTask did not finish executing. Now, after the 1st AsyncTask completes with the 2nd Activity in the foreground then that AsyncTask will try to return the result to the onPostExecute() method of an Activity which does not exist and hence it leads to memory leaks.</li></ol><blockquote>Therefore, based on the above scenarios, AsyncTask should very rarely be used or used only for small operations.</blockquote><p>Due to the above reasons AsyncTask is very rarely used and instead of that a better way is used called the AsyncTaskLoaders.</p><p>It is explained in another article and if you want you can see that article here.(link will be uploaded very soon).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f594a565d676" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Experience with the Google India Challenge Scholarship]]></title>
            <link>https://medium.com/@trishantsharma1997/experience-with-the-google-india-challenge-scholarship-961bba920d33?source=rss-3f36b165c765------2</link>
            <guid isPermaLink="false">https://medium.com/p/961bba920d33</guid>
            <category><![CDATA[udacity]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[android-app-development]]></category>
            <dc:creator><![CDATA[Trishant Sharma]]></dc:creator>
            <pubDate>Fri, 16 Mar 2018 19:24:35 GMT</pubDate>
            <atom:updated>2018-03-29T20:39:55.668Z</atom:updated>
            <content:encoded><![CDATA[<h4>This is my one month experience of the Google India Challenge Scholarship…</h4><h4>Okay, So here is my review based upon my experience of the first month of my Scholarship.</h4><p>REVIEW OF THE FIRST MONTH…</p><blockquote><strong>Before writing ahead I would like to tell everyone that the quality of courses on </strong><a href="https://medium.com/u/2929690a28fb"><strong>Udacity</strong></a><strong> are one of the most finest in the world and it can be your one stop guide to learning almost everything in the field of computer science and programming. This compliment was solely based on my experience not is not any promotion.</strong></blockquote><p><strong>MY REVIEW OF THE AWSOME OPPURTUNITY THAT GOOGLE SCHOLARSHIP GAVE ME:-</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8dxEOBnbPk5EuXswsIeIXA.png" /></figure><p>Thanks to Google and <a href="https://medium.com/u/bf91a7a342bd">Udacity India</a> for arranging these kind of scholarships for students like me who have a passion for computers and especially coding. I am really grateful for this golden opportunity that I have got and I promise to help people around me with the power of android and use it build a better society that will advanced towards a better future.</p><p><strong><em>SOME HISTORY…</em></strong></p><p>One month ago I started this amazing journey of becoming an Android Developer through the scholarship but before that let me tell you some history about me.Since my childhood I fantisized and liked android ecosystem very much and always thought about one way or the other through which I could make the apps I saw on my smartphone and also had many ideas about what all things can be achieved with the power of the Android platform. <br>I got to know about the scholarship through facebook and immediately applied for it since I didn’t want to miss out an opportunity to contribute to the Android Platform and help people through making apps. I always wondered about the tons of possibilities that Android opens to help people all around the world.</p><p>I previously had very less technical knowledge about developing Android Applications but I was pretty comfortable with Java and therefore was very happy to find out in the mail that I am accepted in the Google India Challenge Scholarship. I was absolutely freaked out to know the news about my selection.</p><p><strong><em>SCHOLARSHIP STARTED…</em></strong></p><p>I eagerly waited for the start of the scholarship and on the day of starting in the introductions section I got to know that we should know the basics of all aspects of the Android Application Development like Data Storage, Networking, Multiscreen Applications and therefore I had to first take those 4 free course about Android Basics and it took me almost one month to finish those courses. Those courses are absolutely some of the best courses to learn Android basics like database, networking, etc.</p><p>Now I have started the actual scholarship course. It was an absolute pleasure to start with the course and till now I have completed 2 and a half chapters and I am really enjoying each and every part of it.<br>One thing that programming in this 30–40 days taught me was that no matter where you stand or no matter what your background, age, color or anything is, if you are dedicated enough and just DECIDE to NEVER GIVE UP on your dreams then the coding world welcomes you with open hands and though the journey is not at all a cakewalk but all the struggles and those frustating moments will eventually pay up and it will all be worth in the end. Although, I didn’t know much about the Intermediate track course but I decided that let me do the basics courses first and then carry on with the scholarship course. I didn’t care how much time it takes I just cared about the pleasure and the independence I will get to apply the knowledge I learnt in these courses in my real apps that’ll make people’s lives easier and help the mankind towards a better future.</p><p><strong><em>TEAMWORK IS THE KEY TO SUCCESS…</em></strong><br>One more thing I wanted to share was that earlier I used to think that I can do everything easily on my own but I was very wrong, I got to learn from this course by going through forums and interacting with different people around the world through Slack that Teamwork is the most important aspect of a developer and if a developer is willing to contribute and work in groups to make great projects then It’ll not only lead to a better technology for the future but we also get a group of friemds to look out for in the future. TEAMWORK AND HARDWORK ARE SURELY THE KEYS TO BECOMING A GREAT DEVELOPER.<br>It’s not at all the end and infact I am just getting started.</p><p>And I always remember this one line of a Popular Bollywood Movie whenever I get down or I am struck with a problem that takes me days and even months to solve…</p><blockquote>“Ant mein hamesha sabkuch sahi hojata hai aur agar sahi na ho to wo ant nhi…Picture abhi baaki hai mere dost !!” .</blockquote><p><em>It translates to English like this..</em></p><blockquote>“In the end, everything becomes right and if it is not yet right then it is not the end, more good things are coming.”</blockquote><p>Please bare with me for the bad translation as it is difficult to express in words what is the feeling of the heart and that dialogue really touches my heart everytime so that I never give up on hope.</p><p>I enjoyed every part of this course till now and I will continue towards my journey of becoming an Android Application Developer.</p><p>Also, if you are new to Android Development and want to get started with it then read my other article <a href="https://medium.com/p/2ba64662d3df?source=linkShare-3f36b165c765-1522355968">here</a>.</p><p>These are purely my experiences of my experience with the Scholarship in one month. If you like it then don’t forget to clap. Peace. ✌️</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=961bba920d33" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Get Started with Android Development !!]]></title>
            <link>https://medium.com/@trishantsharma1997/get-started-with-android-development-2ba64662d3df?source=rss-3f36b165c765------2</link>
            <guid isPermaLink="false">https://medium.com/p/2ba64662d3df</guid>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[motivation]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[android-development]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Trishant Sharma]]></dc:creator>
            <pubDate>Wed, 07 Mar 2018 21:03:00 GMT</pubDate>
            <atom:updated>2018-03-10T19:11:31.484Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/256/1*Q_0zTRHKT3IwEpzLds0h_A@2x.jpeg" /></figure><h4>You must be saying that again that silly old get started guide to start with Android. That is perfectly okay but I think that if you tried out those boring guides then why not try again another one?</h4><h4>At least give it a try…you might get to know something worth your time…</h4><h4>The Motivation to start… my story…</h4><p>An year ago, I really didn’t imagine that I would be building Android Apps. I was an undergraduate in my first year and was introduced to C++(If you want to know that side of my experience then you might want to read <a href="https://medium.com/@trishantsharma1997/ok-so-please-bear-with-me-as-this-is-my-first-time-writing-an-experience-bb73ab820057?source=linkShare-3f36b165c765-1520453137">my other blog</a>).</p><p>I learnt a lot, then I started learning Java more efficiently as I was very fascinated by the concept of Object Oriented Programming and Java was the right option to that). I got ahead and one day when I was swiping through facebook I saw a link to Udacity courses based on Android and Java and also a link to the Google India Scholarship and just applied for that. In January end, I got the mail that I have been selected and I was damn excited to see that and wasn’t able to wait the time when the classes will start. At that time, Java was the primary language needed for Android Development, and most of them were free of cost. I was very interested in making Android Apps as I personally used Android devices since I started using smartphones and liked them a lot. I enrolled in the free courses as well as the scholarship.</p><p>I always thought about ideas of apps that we could build this or that to help people to get through with their common daily life problems which I observed but never got into the depth of all that. But after taking the courses on Udacity – which have the best courses, tutors and the content is also awesome. They explain with so much ease and simplicity that you understand the concept very easily within a few days.</p><p>I built my first app in Android actually running on a device and I was freaked out !!! Really, it was a great thing for me and thank you so much <a href="https://medium.com/u/bf91a7a342bd">Udacity India </a>for providing these courses. By this time, I have almost 5–6 apps installed on my device learnt through those courses and these days also I am continuing the courses and enjoying learning Android Development.</p><h4>What I learnt through this phase of my programming…?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*zcMd2H8yXIPOdUxhSem66Q@2x.jpeg" /></figure><p>If you want to something or just want to get started with something then just do that right away and DO NOT leave it for later. Time is the most precious resource a person can have so don’t waste it on something that doesn’t help you to progress in life. On the programming side of things, if you want to learn something then just grab a cup of coffee and start learning it and just DON’T GIVE THE HELL UP. Believe me, I also started with what is Android development and how to start it but I didn’t give up and now I got these 5–6 Apps installed on my device and an app on the Google Play Store. I also learning many new things and you don’t know that when you just dive in that field, there are so much more possibilities and innovations that can happen of which you didn’t even had the slightest of your idea.</p><blockquote>Someone very wise once said that…</blockquote><blockquote>Programming is something every person should learn as it teaches you how to solve problems in an easy and efficient way.</blockquote><p>So enough motivation, right ?</p><h4>Now let me tell you how to get started…?</h4><p><strong><em>Some prerequisites:-</em></strong></p><ul><li>Your dedication to learn it and agreeing to the fact that you will not give up even in the hardest of the problems.</li><li>Learn Java from anywhere there are so many things available – I used Java-The Complete Reference 8th edition to learn and it was an awesome experience learning through it</li><li>You’ll get to know XML by actually just applying it in your app</li></ul><p><strong><em>Technical Requirements:-</em></strong></p><ul><li>A computer with a decent <strong>internet connection</strong></li><li>At least 4GB of RAM and the more the better – I use 8GB</li><li>At least 300 to 500 GB of hard disk space and projects do take up space and the SDK of the Android also takes up much spce</li><li>You need to download the latest version of Android Studio from the official website and I assume that the JDK is nowadays within the setup package – I already had JDK and JRE pre-installed and therefore didn’t face any problem but just to be on the safer side I think you should install JDK and JRE before you install Android Studio</li></ul><p>That’s it. Really that is what you technically need to start with Android Development.</p><p><strong><em>Some tips for getting started and for problems while learning Android:-</em></strong></p><ul><li>Get started with the Udacity’s Android for beginners course and carry on your journey to be a great Android Developer.</li><li>Remember this, always refer to the official documentation for a new topic – I remember that I got to know about the importance of documentation when I was learning about Intents and there I encountered a term again and again named backstack. So, I referred to the documentation and that one page that I read changed my perspective about the documentation.</li><li>Most of the information that you want to know is already in that documentation which is absolutely free of cost.</li><li>Refer to the Udacity tutorials for any help.</li><li>Got any bugs and all, then StackOverFlow is your main saviour. So just search for it on google and most of your problems can be solved. If possible, make an account so that you can also help others.</li><li>Learn to use GitHub(there is also a free course for that on Udacity)</li><li>Just remember that the problems you are facing in that phase will only make you better at tackling that type of problems in your future which in turn improves your knowledge about Android.</li><li>The joy of getting through those tough situations is something I can’t explain and you’ll only get to know about them when you yourself overcome those situations.</li><li>And one more important tip – learn to read other’s code of open source apps as you get to know a lot of new things and also the other person’s perspective of solving a particular problem. It is very important to read other’s code and you try <a href="https://medium.mybridge.co/38-amazing-android-open-source-apps-java-1a62b7034c40">this</a> and <a href="https://blog.aritraroy.in/20-awesome-open-source-android-apps-to-boost-your-development-skills-b62832cf0fa4">this</a> for reference anytime you like to.</li><li><strong>The most important of them all – ENJOY every part of learning it even though it is tough.</strong></li></ul><p>So I think that is all of the information that you need to get started.</p><h4>Go Ahead , Enjoy !!</h4><h4>Welcome to the Android Development world !!!</h4><h3>Start coding and NEVER GIVE UP!!</h3><blockquote>A person who never gives up makes the most important foundation he needs to achieve great things in life.</blockquote><h3>Thanks for devoting your time to read through and I sincerely hope it helps in the long run.</h3><h4>Best of luck for your journey as an Android Developer.</h4><p>If you liked it, then do remember to clap.</p><p>Peace. ✌🏻</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ba64662d3df" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reading the right way]]></title>
            <link>https://medium.com/@trishantsharma1997/reading-the-right-way-54f5a78d8a8d?source=rss-3f36b165c765------2</link>
            <guid isPermaLink="false">https://medium.com/p/54f5a78d8a8d</guid>
            <category><![CDATA[self-awareness]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[reading]]></category>
            <dc:creator><![CDATA[Trishant Sharma]]></dc:creator>
            <pubDate>Sat, 03 Mar 2018 12:09:57 GMT</pubDate>
            <atom:updated>2018-03-03T12:25:33.158Z</atom:updated>
            <content:encoded><![CDATA[<p>Reading is the most beautiful habit to have in your life.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/1*2KKZ0hgE4MDt5ZzZM7xZ7w@2x.jpeg" /></figure><p>I have always encountered this problem since my childhood and tried very hard to get out of it.</p><p>I always find people reading books or blogs or something else just because they have to read it or in a better way as if someone has forced them to read it or just go through it. It was a common problem for me also but since I started thinking about it and observing it, my life has changed a lot and I have become a lot more productive and efficient at reading.</p><p>Reading is the thing which can be done by almost anyone with the will to read and it is by far the most important habit to have. Trust me people, reading as a habit has made my life much easier and productive in an elegant and easy way.</p><p>Make sure that when you read something you are completely aware of each and every line and understand the thing which the book is trying to make you understand and if you don’t like the things that are written there then just make a switch and read any other book that you like. The main thing is not to agree to everything that is written but only that…</p><blockquote>When you read something, truly understand with your heart and definitely your brain that what the content is all about and judge that is it really helping you or inspiring you or entertaining you or anything like that and then go on to read it and if it doesn’t do that in any way and you are just reading and turning pages or scrolling through pages then I suggest you to read something else or do something productive in the time that you are wasting.</blockquote><p>The advantages of reading involves:-</p><ul><li>Better thinking</li><li>Much much better Imagination</li><li>Also acts as a stress-buster</li><li>Helps you feel good</li><li>Improves your knowledge</li><li>You get to know about many things you didn’t know before</li></ul><h4>But, are we reading the right way?</h4><p>I fear, that most of us are not .</p><p>So, I have just some suggestions or ways that I find useful to help me read things the right and efficient way.</p><h4>The mistake that I made…</h4><ul><li>THE MISTAKE</li></ul><p>First, I wanted to share something as a mistake in my life that I don’t want you to make.</p><p>I always liked to read. Be it anything, from newspapers and magazines to blogs on the web and also books of various genres like Sci-Fi, Suspense, Thrillers, etc. and many more. What I did before starting to read that I made a small target that I am going to finish this chapter or page or anything today and after that just read through it. I always had to read the main points of those pages again to recall what was there earlier. And by any chance, if I missed my reading time due to any circumstances, and opened the book again, I literally had a very hard time recalling what have I read earlier.</p><ul><li>THE APPROPRIATE SOLUTION ACCORDING TO ME</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/1*8dEW-mVP4iZqeG2kSC_InQ@2x.jpeg" /></figure><p>This was a problem for which I had to find a solution. That’s why I decided that, I will, first of all not set any targets to read a specific quantity of content but just start reading till the time I feel like it is done for the day. I decided that I am going to understand and imagine each and every word in the book that I was reading. It didn’t matter that how much I read in that time but what mattered is that that even if I have read a single line, than also I know completely what is happening in that line and that I fully understand it no matter how much time it took.</p><ul><li>THE LESSON I LEARNT</li></ul><p>It really doesn’t matter that how much do you read in a day or two, the only thing that matters is that you completely understood and felt the content that you read and that it helped you in one way or the other.</p><p>This lesson can be applied for reading anything, not just books.</p><h4>One more problem that I observed…</h4><ul><li>I also did this thing quite a lot of times that while I was studying something or doing something related to my work. I used to read A LOT of blogs and all related to tech, personal growth and more and whenever I found something useful linked into that, I just saved that as a bookmark or used Pockets to mark that link.</li><li>I really never read that again due to my schedule or anything but when I got the time opened up my Pockets app and boom!!, it was like a flood of posts left to read from this article or that or any unknown type and it felt so overwhelming to just scroll through the large number of links and things that I intended to read.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/1*dHtUknSuc61q0HZ2wv8vRA@2x.jpeg" /></figure><p>So, why am I telling you this because I faced a lot of difficulties in organising those links and also that I was not in a state of mind to read those things or blogs.</p><blockquote>It is like when you are reading something, you are completely in that state of mind to think about it and if you find something linked to it and read that also, that things helps a lot as you do not stack up all the things and you got to know that extra thing as well that you intended to read and saved your time and a kind of load to read it later.</blockquote><p>That is why, I wanted to suggest that whenever you are reading something online/offline or books or blogs or even if you are taking an online course to learn something, and find some links or blogs useful for you to read then do try to read those if you have some extra time as that extra time will help you in the long run and since you will be in that state of mind of thinking that way, than you’ll understand that concept or story or anything else in a better and more productive way.</p><blockquote>I wanted to share all this with anyone who is reading this as I don’t want any other person to commit the same kind of mistake that I did while reading.</blockquote><p>Trust me, reading is the most prettiest and awesome thing to do in your life and it always help you in the long run.</p><p>A book never lies. As it rightly said by someone that…</p><blockquote>Books are man’s best friends. No complaints &amp; No demands !!</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/1*8NKjEEdGhHGaxgJj_A0TNA@2x.jpeg" /></figure><blockquote>One right book is equal to a thousand friends.</blockquote><p>Reading improves your vocabulary, memory retention and overall brain health which is important for you to make progress in life.</p><p>I mean, common man, if you want to read anything that fascinates you or make you curious, then just grab a cup of coffee and start reading that. It will only improve your knowledge but remember ti read it the right way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y5wqbfeq1KWWsWdab14Lzg@2x.jpeg" /></figure><p>The GOAL should be to READ. Read anything that you like but do read it the RIGHT WAY. Otherwise, it’ll be just a waste of time.</p><h4>If you read it this far, then I hope it helped you every way. It was just a generous way to help someone so that they doesn’t commit the same mistake that I did.</h4><h4>I need to say that I am not forcing anyone to do things this way but only sharing my experiences to help someone in a polite way and I have tried to that in the best way I can.</h4><h4>I didn’t mean to hurt anyone with this.</h4><h4>If you like and helped it then do clap and share so that everyone can read it and improve their life.</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=54f5a78d8a8d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[For those who are feeling low or demotivated in life.]]></title>
            <link>https://medium.com/@trishantsharma1997/for-those-who-are-feeling-low-or-demotivated-in-life-a7e2270a92cd?source=rss-3f36b165c765------2</link>
            <guid isPermaLink="false">https://medium.com/p/a7e2270a92cd</guid>
            <category><![CDATA[motivation]]></category>
            <category><![CDATA[motivational]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[happiness-in-life]]></category>
            <dc:creator><![CDATA[Trishant Sharma]]></dc:creator>
            <pubDate>Tue, 20 Feb 2018 19:37:42 GMT</pubDate>
            <atom:updated>2018-03-03T10:46:23.282Z</atom:updated>
            <content:encoded><![CDATA[<h4>So, if you are one of those people who are feeling low or demotivated ,then don’t at all worry and I hope this article helps you.</h4><h3>Life is a party , enjoy it to the fullest !!!</h3><p>Life is like a party, you either enjoy it to the fullest or just sit back and let the important and worthy moments pass away. The MAIN GOAL is to be HAPPY and that is it.</p><h4>If you are happy with what you are doing in life,you have a goal,you take care of your family then you more lucky then many other people of the world.</h4><p>The main motive of life should be to be <strong>HAPPY and POSITIVE </strong>in all situations no matter how bad or good they are.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/353/1*WOmr30fzAu0yWifG4aC5jg@2x.jpeg" /></figure><p>I am also currently an undergraduate only but I am sharing this with you so that I can help other people who are in the same position as me.</p><p>There are a lot of ups and downs we get in our lives and these are big for some people or very small for someone else. The choice is yours as to how you react to those moments. <strong>BE POSITIVE !!</strong></p><p>Everyday we get a new chance to better our lives and move towards our goals or anything that interest’s us. There will be many moments where you feel like you are not doing enough or you are not worth the goal that you are trying to accomplish but let me tell you that success doesn’t come overnight and you have to scratch and grind and move towards your goal. <strong>EVERYDAY IS A NEW BEGINNING !!</strong></p><p>I adopted a way of fulfilling my goals and thought I should share it.</p><blockquote>You should always make your bed after you get up in the morning and this should be the first thing you should do after waking up. After completing this task you will get a sense of accomplishment that you achieved your very first task/goal of the day.</blockquote><blockquote>Trust me, when you encounter that feeling of accomplishment,it releases dopamine in your body which in turn makes you happy and satisfied. It gives you motivation to accomplish other tasks for the day.</blockquote><p>And for those who think they are worthless or do not have any motive in life. There is nothing to worry about:-</p><p><em>Just go ahead and try new things and explore the world,it’s a great place to explore. See, there is no shortcut,you have to struggle, and believe me that if you are facing difficulties in your way ahead and achieving your goals then you are in the right direction. Do things that challenge you and enjoy the sense of accomplishment you get from completing those tasks.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/288/1*GslVxgg2FT04coEgS7Pb-Q@2x.jpeg" /></figure><p><strong>STOP MAKING EXCUSES</strong></p><p>Those who complain that they do not have this or that to start working towards their goals – <em>Just stop complaining and stop making excuses, get out of your comfort zone and make that thing happen and just </em><strong>GO</strong><em> </em><strong>ahead</strong><em>,man. No one is stopping you from doing that, defeat the procrastinator inside you and achieve your goals.Take CONTROL OF YOUR LIFE and just don’t ever give up.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*s-DwoD41aEYog8fYWP2lCw@2x.jpeg" /></figure><p><strong>TIME MANAGEMENT</strong></p><p>Managing time is very important nowadays. It is completely your choice whether you want to watch your favourite season and complete it or do you want your goals to be achieved. Manage your time carefully.</p><blockquote><strong><em>Look, everybody in this world, even the most successful people have 24 days and so do you have.</em></strong></blockquote><p>So, the difference occurs in the way we manage our time. Make priorities and to-do lists for the tasks in the day and do manage your time well in the most efficient way.</p><p><strong>HEALTH MANAGEMENT</strong></p><p>Eat proper and healthy foods. Follow a balanced diet as that is also one of the most important things that’ll help your brain to concentrate more on the tasks you do. Don’t eat junk foods and do exercise regularly which will regulate the blood flow to the brain thereby increasing efficiency.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*kPEGUXJUuJ6fclzVjmysWQ@2x.jpeg" /></figure><p><strong><em>Always take very good care of your health and body as these are the only things that will help you in achieving your goals in the life. Never compromise your health over tasks as if your body is not with you then you cannot achieve anything.</em></strong></p><p><strong>FAMILY IS LIFE</strong></p><p>Always take good care of your family as those are are the only ones that Truly love you unconditionally and will always support you. If you have any problem, just go ahead and ask them, theywill be more than happy to help you.</p><blockquote>Some answers can never be found on google though they are the simplest to understand from your parents.</blockquote><p>Remember that family should always be your first priority in life, no matter what happens. Spend special moments with them and keep your smartphone out of the way in these moments. These memories will remain with you forever till your old age and these are the things that make LIFE, VERY VERY SPECIAL !!</p><blockquote>Take care of those who love you unconditionally and truly, as one day when you wake up and do not find them then they you will realise that you lost the moon while counting the stars.</blockquote><p>Last but not the least, read below if some of my ways can help you in your life.</p><h3>Here are some things I have learnt from my experiences in life:-</h3><ul><li><strong>ALWAYS BE PATIENT AND HANDLE EACH SITUATION PATIENTLY</strong></li><li><strong>ALWAYS BE HAPPY AND POSITIVE.</strong></li><li><strong>NEVER GIVE UP</strong></li><li><strong>FAMILY IS EVERYTHING AND NEVER FORGET THAT</strong></li><li><strong>FAMILY SHOULD ALWAYS BE THE FIRST PRIORITY ON YOUR LIST</strong></li><li><strong>ALWAYS BE KIND TO OTHERS (it makes you happy)</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*zcMd2H8yXIPOdUxhSem66Q@2x.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/353/1*RMdxgzHFX9rtcBNnd_xOWA@2x.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/353/1*0BNCAxQOCtYj-maXDz4F1A@2x.jpeg" /></figure><h4>This was a very small attempt to help someone make his/her life easier and helps them to achieve their goals in life.</h4><h4>This was just a small article to help you through your hard times and if this article helps even a single person in life then I will believe that the purpose of me writing this article is fulfilled.</h4><h4>Thanks for reading this patiently.</h4><h4>HOPE IT HELPS !! CHEERS !!</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a7e2270a92cd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I started Programming !!]]></title>
            <link>https://medium.com/@trishantsharma1997/ok-so-please-bear-with-me-as-this-is-my-first-time-writing-an-experience-bb73ab820057?source=rss-3f36b165c765------2</link>
            <guid isPermaLink="false">https://medium.com/p/bb73ab820057</guid>
            <category><![CDATA[cplusplus]]></category>
            <category><![CDATA[inspirational]]></category>
            <category><![CDATA[programmer]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Trishant Sharma]]></dc:creator>
            <pubDate>Sun, 18 Feb 2018 21:40:00 GMT</pubDate>
            <atom:updated>2018-04-07T05:19:00.985Z</atom:updated>
            <content:encoded><![CDATA[<h4>Ok, so please bear with me as this is my first time writing an experience. It was just a small one and I thought if it would be good to share it.</h4><p>Last year,when I joined my college (yes, I was a fresher – in college also and in tech field also), this is what happened.</p><p>It was my 2nd or 3rd day, I don’t really remember but the experience I got from that was huge(atleast for me). I went to the lab and there it was a wide blue screen in front of me and my professor wrote a set of programs to be performed in the language C++.</p><p>At that point, I didn’t even know even a single line about how to write code in C++ although I heard a little bit about Java. I was stunned,confused and curious(as what is so special about this language as I was getting a little attracted to it) at that moment as all other students(and literally most of them) just started writing code and finishing tasks one by one.</p><p>Now, at that very moment I realised that nothing is going to happen just sitting there and watching and opened the internet and started to learn about this language and how to start it and all. There, I found a book which was an awsome. I ordered that and started studying from that book with COMPLETE DEDICATION that I’ll learn this language. I started and almost reading and by practicing(most important) learnt it and got confidence in it.</p><p>From that time I have been learning a lot of languages like C++, Java,CSS, Javascript and it has been a pleasure learning these and I not at all done and looking forward to learn more.</p><p>So what is the point of me sharing this:-</p><ol><li>Just don’t sit back and complain or be sad or anything, if you have the interest and curiosity and want to learn any language, then just GO FOR IT AND START LEARNING.</li><li>Sitting back will not get you anywhere.</li><li>Just start. Trust me, it’s worth it.</li><li>I promise that you won’t regret the moment the programs start to run and you get that happy feeling.</li><li>But ofcourse, it won’t be a cakewalk and you will get Bugs and errors but the drive to go on definitely pays up in the end.</li></ol><p>IN THE END:-</p><p>JUST GO AHEAD AND START LEARNING PROGRAMMING IF YOU WANT AND TRUST ME ON THIS, IT WILL BE A THRILL RIDE AND AN EXPERIENCE NOT TO BE MISSED.</p><p>I know what you’re thinking by now.</p><p>That’s more than enough for a first timer. Thanks for reading this. Do clap if you like it or it helps you in any way.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bb73ab820057" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>