<?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 Vikash Prajapati on Medium]]></title>
        <description><![CDATA[Stories by Vikash Prajapati on Medium]]></description>
        <link>https://medium.com/@NomadicProgramr?source=rss-cd7c38b13276------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*X0WtW_EGuG12PYrWBeSN3g.jpeg</url>
            <title>Stories by Vikash Prajapati on Medium</title>
            <link>https://medium.com/@NomadicProgramr?source=rss-cd7c38b13276------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 19:45:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@NomadicProgramr/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[Adobe Interview Experience 2022]]></title>
            <link>https://medium.com/@NomadicProgramr/adobe-interview-experience-2022-7e7110812bc4?source=rss-cd7c38b13276------2</link>
            <guid isPermaLink="false">https://medium.com/p/7e7110812bc4</guid>
            <category><![CDATA[interview-experience]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[adobe]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Vikash Prajapati]]></dc:creator>
            <pubDate>Sat, 19 Feb 2022 15:37:33 GMT</pubDate>
            <atom:updated>2022-02-19T15:37:33.799Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SEny3prowCVdJ-FIlSdsYw.jpeg" /></figure><h3>Adobe Interview Experience 2022</h3><p>Hello 👋 Everyone,</p><p>Hope you all are doing good. I am an Android developer with 8 months of experience. Recently I got the opportunity to get interviewed by Adobe for an SDE -1 Android developer role for Acrobat team.</p><p>The interview was setup in 4 rounds.</p><ol><li>Technical Interview (Android)</li><li>Technical Interview (Data Structures &amp; Algorithms)</li><li>Managerial round(Android + DSA + Behavioural)</li><li>Managerial round(Android + DSA + Behavioral)</li></ol><h3>Round 1(Android)</h3><p>Round 1 started with my introduction and later he asked me about one of my project. later he asked me question related to android.</p><ul><li>MVVM vs MVP</li><li>Viewbinding vs Databinding? When to use what.</li><li>How Viewmodel survives configuration changes?</li><li>Write a api call for getting response from a backend server by following MVVM architecture.</li><li>About Coroutines</li><li>Livedata vs MutableLivedata? when to use what?</li><li>Activity Lifecycle? Lifecycle callbacks when app comes in splitscreen mode. How youtube app continues playback in splitscreen mode?</li><li>What is AsyncTask? How memory leak could be created using it? How do you resolve that?</li><li>What design patterns you have worked on? He asked me about singleton design pattern. Why to use singleton design pattern? Write a sample singleton class in Java. How would you resolve synchronization issue in singleton pattern? Later optimized the code using double checked locking.</li><li>What RxJava operator have you used? Difference between map and flatmap operator?</li></ul><p>I answered all very well except I was not confident with Rxjava as I haven’t used that much.</p><h3>Round 2(DSA)</h3><p>This day I was very sick, Interviewer offered me to reschedule but I told her to continue my interview. It started with my Introduction. Later she asked a coding question related to</p><ul><li><strong>Linked list</strong> which was, to delete the last occurence of a number from the linked list [<a href="https://www.geeksforgeeks.org/delete-last-occurrence-of-an-item-from-linked-list/">link</a>]. I cleared some doubts first and later explained the approach and coded the solution.</li><li><strong>Hashing</strong> Second question she asked was to find continous subarrays with sum zero [<a href="https://www.geeksforgeeks.org/find-the-largest-subarray-with-0-sum/">link</a>]. I told the intituative approach and coded the solution. Later she asked to optimise the solution. So I was able to come closer to the solution, but could not reach the exact approach.</li></ul><p>After 2 days, the recruiter informed me that I have been moved to the next round which would be managerial round.</p><h3>Round 3(DSA + Android + Behavioural)</h3><p>For this managerial round, I was expecting more questions of behavioural kind, but it was more of a technical interview. So It started with Interviewer introduction and later I introduced myself. He asked me about one of my projects. I explained him the project. The project was a lot of networking related and since the Interviewer was from some different backgroud , so a lot of things were not known for him, but he was really impressed about my understanding of the project.</p><p>Then he asked my thoughts on recursion vs iteration. I only answered this in terms of memory usage, but the interviewer also wanted to hear about the performance comparison between the two. Then he asked about coroutines and how it is different from Async task, I explained it well. Then he asked me questions about how will I make an Adaptive UI for mobile devices.</p><p>Later he asked me a coding question related to trees ( check whether the tree is symmetric or not), It was a simple question, so I explained the approach and later coded the solution.</p><p>In the end he asked a puzzle about time and distance, It was an easy one so I told the solution. Later he modified the puzzle two times and asked my thoughts so I explained the approach pretty well. He was satisfied with the approach. Later I asked some questions. While answering one of my question he gave me a hint that he is my Alumni. Later he asked how things are going in the department and some other college related talks happened.</p><h3>Round 4(DSA + Android + Behavioural)</h3><p>It started with her introduction and I introduced myself. She was very impressed by my introduction. She started asking questions about my personal project, How I am planning for the improvement of my certain feature in my project. After that she asked me the output of the program written in Java. I gave the solution and explained my thought process about my solution.</p><p>Then she asked me a coding question where I needed to find out the maximum no. of people in a party room given the arrival &amp; departure time. I asked some clarification questions and started solving the question. But I messed up in this really simple question. I thought this question is similar to greedy algorithms (trains &amp; platforms) question, so my mind started thinking in that way. But after trying 2 approaches I was not able to reach the solution. I wanted to try another approach but time was over. I felt really bad at that time. Later in the end I asked some questions. Also the interviewer identified me because I submitted improvement suggestion in the Adobe reader app. She appreciated that and ended the Interview saying that She really liked my side project Idea.</p><p>Same day I received the response, I was rejected. I contacted the manager on linkedin for feedback, he said your last round was not upto the mark. I felt really sad and I regret for not being able to solve that question as after the interview I got to realise that was really a simple question.</p><h3>My Suggestions for someone appearing for Interview</h3><ul><li>Introduction definitely creates impact, so spend some time on it. Highlight your work, your qualities &amp; cover what you do apart from coding.</li><li>Spend time on your personal growth. Learn something new every single day. Be passionate about learning(not necessarily coding, it could be anything).</li><li>Research about the company &amp; its products and explore their products. Prepare what you like about it &amp; what can you improve in that, this helps in answering behavioural questions.</li><li>Connect with people who joined recently to figure out what would be interview process like and also with people who are working for very long to find the working culture, this helps in projecting your growth in that company.</li><li>Ask questions after the interview to the interviewer, this shows you are interested and helps you in figuring out the working of the company and what you can expect in terms of your personal growth and learning.</li></ul><p>Thanks Everyone I wish you best for your future Interviews.</p><p>If you find this article helpful, then like and follow for more amazing upcoming articles.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e7110812bc4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Android Multithreading(Handler& Looper)]]></title>
            <link>https://medium.com/@NomadicProgramr/android-multithreading-handler-looper-288c71394697?source=rss-cd7c38b13276------2</link>
            <guid isPermaLink="false">https://medium.com/p/288c71394697</guid>
            <category><![CDATA[multithreading]]></category>
            <category><![CDATA[handler]]></category>
            <category><![CDATA[looper]]></category>
            <category><![CDATA[threading]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Vikash Prajapati]]></dc:creator>
            <pubDate>Wed, 26 Jan 2022 07:05:39 GMT</pubDate>
            <atom:updated>2022-01-26T07:05:39.804Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello 👋, If you have done Android development you might have hear about Handler and Looper at some point of your journey. These are the very important to know about to understand how Android framework works.</p><h3>Main/UI Thread</h3><p>When a new application is launched in android system, android system provides that application a main thread which we also call UI thread.</p><p>Ui thread characterstics-</p><ul><li>It is started by Android framework when app starts</li><li>It terminates only when app terminates</li><li>App ui is drawn on UI thread</li><li>All the callback methods such as onStart(), onCreate() … executes on UI thread</li><li>Ui interaction event handlers (onClick()) executes on UI thread</li><li>Changes of UI thread must be done on UI thread</li></ul><p>If too much work is done on UI thread then Ui responsiveness decreases. To understand this better lets take an example-<br>Lets say we have a device which requires 60fps then it has to paint 1 frame every 16ms. If code executing in ui thread takes time the android system might not be able to provide frames at proper time which decreases the responsiveness and you might feel like app is slow. If the device take too much long time then Application not responding dialog will be shown.</p><blockquote><em>During developement ,you can notice notification in logcat regarding skip frames due to too much work on UI thread.</em></blockquote><h3>Update UI from background Thread</h3><p>If user try to update UI from background thread like as shown below then an <strong><em>Exception will be thrown stating that only the view hierarchy that created the view can only update the view</em></strong><em>.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IEYnChkPUYKo0ijvBQ966Q.png" /><figcaption>Updating the UI in backgroung thread is wrong</figcaption></figure><p>We should not follow the above mentioned approach.</p><p>So to update the views we can either use:</p><ul><li>Handler which is instantiated using Looper of main thread.</li><li>call runOnUiThread() method, and passing the runnable as the argument.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KdKD0c4pW6-SWrRxlDEwiw.png" /></figure><p><strong>runOnUIThread()</strong> works similarly as our created handler only thing is, It will check the current thread and if it finds its the MainThread it will execute that task immediately , otherwise first it will switch you to app MainThread and then it will execute the given task.</p><p>Now let’s finally understand Handler and Looper.</p><h3>Handler</h3><ul><li>Handler allows you to post Runnable or Message object to the associated threads message queue.</li><li>A handler can only be associated with a single thread and its messaging queue.Whenever we create a handler it is associated with a looper.</li><li>It will deliver messages and runnables to that Looper’s message queue and execute them on that Looper’s thread.</li><li>Handler is useful in situations where we want to schedule our task or want to do some task in different task than our current thread.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oIPjKGkg2I409okhPPdaBA.png" /><figcaption>scheduling task using handler</figcaption></figure><h4>Looper</h4><ul><li>Looper is used to loop the message loop for a thread.</li><li>It keeps the thread alive.</li><li>Threads by default do not have a message loop associated with them; to create one, call Looper.prepare() in the thread at the starting of the run method.</li><li>Looper.prepare() identifies the calling thread, creates a Looper and MessageQueue object and associate the thread with them in ThreadLocal storage class</li><li>To run the loop call Looper.loop() method.</li><li>A looper can have multiple handlers posting the tasks to its messaging queue.</li><li>Looper must be terminated explicitly through Looper.quit()</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rqQi0_PSGYB1SAeQV2w2lw.png" /><figcaption>Creating Looper</figcaption></figure><ul><li>Android main thread itself is built over handler and looper</li><li>Handlers and loopers are now not used mostly but these could be helpful in cases when we dont want to rely on third party libraries to avoid large application size.</li></ul><blockquote>One thread can have only one unique Looper and can have many unique Handlers associated with it.</blockquote><p>That’s all for this article. I will be covering up AsyncTask working in the upcoming article.</p><p>If you find this article helpful, Please leave a like and follow for upcoming articles. You can also follow me on github <a href="https://github.com/vikashprajapati">https://github.com/vikashprajapati</a></p><p>Suggestions and feedback are welcome.</p><p>Thanks</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=288c71394697" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The First Step : My First Solo Travel Journey]]></title>
            <link>https://medium.com/@NomadicProgramr/the-first-step-my-first-solo-travel-journey-a9e7e9a36d3e?source=rss-cd7c38b13276------2</link>
            <guid isPermaLink="false">https://medium.com/p/a9e7e9a36d3e</guid>
            <category><![CDATA[weekend-getaway]]></category>
            <category><![CDATA[rishikesh]]></category>
            <category><![CDATA[solo-travel]]></category>
            <category><![CDATA[travel]]></category>
            <category><![CDATA[weekend]]></category>
            <dc:creator><![CDATA[Vikash Prajapati]]></dc:creator>
            <pubDate>Fri, 08 Oct 2021 06:39:48 GMT</pubDate>
            <atom:updated>2021-10-08T06:39:48.424Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Image taken from wallpapercave.com, contains a bridge over river Ganga and a beautiful sunset view of city Rishikesh, Uttarakhand, India." src="https://cdn-images-1.medium.com/max/1024/1*bhbfbGLBWQOucdfS5EFVlg.jpeg" /><figcaption>Image from external source</figcaption></figure><h3>The First Step : My First Solo Travel Journey</h3><p>Hello Explorers 🌏,<br>I have always been in love with travelling and I always wanted to go to new places and explore it. I have been to group trips earlier but this time I wanted to go solo at completely new place that I have never been visited.</p><h3>🗒️ Planning</h3><p>In first week of Sept, 2021 I decided that I am going to take up this challenge. So I started planning, started looking for place to visit. I finally decided to select Rishikesh 🌊 for my trip for 7 days. As I work as a software engineer, I luckily had the advantage of working from anywhere. So I decided to work👨🏻‍💻 for 5 days in my room during the day and in my off-working hours I will be exploring 🌆 the city and do some further side work later at night. I wanted to do this trip at very low cost as possible so I started checking booking sites, read a lot of articles to find out what could be the best place to stay that also fits my budget. Finally I found one hostel with name “Hostel Cozy Beds” which was offering bunk bed for 1 people with price Rs 200 per night. This was lowest that I could found with lots of good facilities. They were providing facilities like free wifi(20 mbps), lockers, cctv surveilance, common room for fun activities, rooftop yoga area.</p><h3>🧳 Journey Begins</h3><p>Initially I checked travel guidelines to visit Uttarakhand, so that I don’t face any issue later due to covid19 restrictions. On 18 Sept, 2021 I boarded my bus from ISBT Kashmiri Gate, New Delhi in the evening. Ticket cost was starting from Rs 350 for a non AC bus, so I took that one. At that point of time I remember I was sitting on the seat and thinking <em>Am I really doing it? Is it for real?</em> 😬. I was really very anxious. After sometime bus started, at that time my heartbeat also got fast and I got more nervous. I gathered courage and washed out all the fearful thoughts that were coming in my mind. It was about 6–7 hour journey during the night so there was not much that I could enjoy through the windows except for the cold wind 🥰. I got slept in between my journey and after sometime my eyes opened and my bus was in Haridwar. I could see temples and river, that brought some excitement during my journey. Around 1 hour later I reached Rishikesh bus stand at 2:30 a.m . It was really dark there, I could only see some local stalls and shops, some nearby home and light from the houses on the mountains which were glowing like stars. I was not sure whether the hostel will allow me to checkin at that time, but still I gave it a try to reach my hostel. Upon reaching there I had to walked up through a 300m slope and it was really dark which scared me 👻, but I continued walking and finally reached my hostel. There I went to the reception and the person provided me 1 bed temporarily. I changed my clothes and went to sleep😴.</p><h3>😍 Day 1</h3><p>In the morning I was able to hear voice of people around me, so I got awake. After sometime they left for their breakfast. At that point of time I just went to the gallery which was just outside of my room. I was really happy after seeing the view out of my room. It was like dream. It was green all around with moutains touching the clouds and I saw one of the best sunrise🌄 of my life.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZKs1I8WkxkAwllRLpNVX6A.jpeg" /><figcaption>Gallery front view</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rKgKWNNq18TNZTQQV50FiQ.jpeg" /><figcaption>Sunrise</figcaption></figure><p>The air was smelling fresh, I was able to hear chirps of the birds. The whole view was mesmerizing. One big surprise was when other person who came after breakfast and was about to leave that room told me to take his bed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PjAMfjBSEJmyfrVnsYWXkw.jpeg" /><figcaption>View from my bed</figcaption></figure><p>Alongside his bed there was a big window covered with curtain. I removed the curtain and found that I could enjoy the view of the mountains lying down on my bed too. Now that was really awesome and surprising🤩.</p><p>After few minutes all the people living in that dorm left. There were total 6 beds and all the beds were empty except mine. I could only hear sounds of birds from outside and feel the silence. It was just me and the amazing view. I had not taken enough sleep last night so I was feeling little bit tired so I decided to stay in my room for the morning half. I spend most of the time sitting on my bed watching the view. I made sure that I don’t indulge myself spending time on my phone or laptop. I realised after sometime that I was feeling lonely and scared too, some fearful thoughts were coming in my mind. I tried to avoid those thoughts and decided to get ready and go outside for lunch as it was already 12:00 p.m. After getting ready, I started looking for place which offers good food at a reasonable price. So I found a small shop where I saw a person who was cooking some food. He had a good arrangement of sitting in a sideby room. They had a lot of options in their menu, I ordered daal &amp; rice and it tasted really good😊.</p><p>After lunch I thought to go somewhere else for exploring the place but it was too much sunny☀️, so I went back to my room. Sat on my bed then again that loneliness and scaring thoughts started coming into mind, I was thinking to return back to my home but I didn’t wanted to, I tried to avoid those thoughts and took some rest for an hour and later when I woke up I saw weather was very nice and cool. I decided to go out and visit Ram Jhula🌉 which is a very narrow bridge allowing people to cross river Ganga. It was about 800m away from my place. I walked to the location, it was really peaceful and calming. I was watching the flow of river Ganga, while walking it was flowing very fast, that looked scary to me initially. When I reached Ram Jhula, I saw people were walking through it, tourists were clicking pictures and some people were crossing the bridge on two wheelers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tqBiDB5tX4Iv-he8VHVNJA.jpeg" /><figcaption>People crossing RamJhula</figcaption></figure><p>It was little crowded and I was feeling a bit nervous because I could see river was flowing very fast and the bridge was swinging. I started crossing the bridge and later on I started liking it, as the view was really amazing and my nervousness was gone. I took some pictures and stood there for few minutes and later on crossed the bridge. There was a temple on other side of the bridge, I got there. There were some stairs near those temples and those stairs were going into river Ganga. A lot of people were there taking pictures, relaxing and enjoying the view and some people were taking dip at the edge of the river. I got near the river gathering courage and touched the water, it was cold. I felt really good. I sat on the stairs watching the view and after sometime the bridge started glowing with orange lights completely.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZgIw_F3d03mYSZXPC9Ushw.jpeg" /><figcaption>River Ganga and RamJhula</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LUPJaLddOueLEEnuROK0eg.jpeg" /><figcaption>River Ganga</figcaption></figure><p>Suddenly little rain drops started falling and I could see dark clouds at the other side of the far mountains. I decided to go back to my place. I again crossed the bridge this time it was looking more beautiful, giving more pleasurable feeling. <strong><em>Light rain, cold breeze, glowing bridge, mountains, river, earthy smell</em></strong>, I felt all that at the same moment. It was one of the best moment of my life. After crossing the bridge I was walking back to my place then I saw one Biryani vendor alongside the road. I asked for one plate, it tasted delicious. It was getting dark and was about to rain heavily so I walked fast to my place.</p><h3>🤔 The Confusion</h3><p>While I was walking back to my place I was already thinking about the feeling that I was getting when I was alone, feared in my dorm and there were some personal issues in my life that were making me more weak. So I was not able to decide what to do, I didn’t wanted to go back home as I was feeling that I have failed in taking up this challenge. Later I decided to leave that place for going back home and come back later when I am fully mentally prepared. When I reached my place there was a power cut and It was all dark in that hostel. I asked the person at the reception to help me take my luggage from my room, He was really very helpful. Later I reached the bus stand and took the bus back to Delhi. Through out my journey back home I thought about my day, how it passed, all the feeling that I experienced was going through my mind.</p><h3>✍🏼 Conclusion</h3><p>This was my first ever solo trip, It was really challenging for me to go at a new place alone. Although this was short and I came back early because of my lack of mental preparation. But I am happy😃 that I thought and executed my first ever solo trip and experienced the short journey. I hope next time when I take this challenge again I will be well prepared mentally.</p><p>Thank you, for reading my first solo trip journey. I hope you liked my journey. If you too want to start your first ever solo trip I would suggest you to first be mentally prepared to be alone and plan your trip ahead and research about the place before visiting. After this, all you had to do is <strong>BOOK A TICKET</strong>🎫<strong>.</strong></p><p>If you liked my journey and want to hear more such experiences, please like👍 my post and consider follow my <a href="https://medium.com/@NomadicProgramr">account</a>.</p><p>Regards <strong>Nomadic Programmer</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a9e7e9a36d3e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Amazon Offcampus Interview Experience 2021]]></title>
            <link>https://medium.com/@NomadicProgramr/amazon-offcampus-interview-experience-2021-f7faf1ed99dd?source=rss-cd7c38b13276------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7faf1ed99dd</guid>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[experience]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[faang]]></category>
            <category><![CDATA[amazon]]></category>
            <dc:creator><![CDATA[Vikash Prajapati]]></dc:creator>
            <pubDate>Mon, 13 Sep 2021 15:55:39 GMT</pubDate>
            <atom:updated>2021-09-13T15:55:39.251Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*2KcvleoEMeqJOvrlZYjH6Q.jpeg" /></figure><blockquote>Hello Everyone 👋<br>Recently I got the opportunity to get interviewed with Amazon India one month back. Although I was not selected for that position, But I hope you will get some learning after reading my interview experience. This was my first ever interview experience with Amazon.</blockquote><p>I applied to different opportunities in Amazon through linkedin. After few weeks I got a mail regarding the coding test link. In the coding test I was given two questions related to Data structures and Algorithms. The questions were quite easy, I was able to code them and pass all the test cases. After writing the complete code, It was mandatory to explain the approach as well along with the time and space complexity.</p><p>After few weeks I got confirmation regarding my Interview where it was mentioned that there will be 3 interviews on a given date. For the interviews its really important to get yourself familiar with the Amazon leadership principles. There are 14 principles, you should be familiar with all the situations in your previous experience or projects where you did reflected some of those leadership principles. In my case I was a fresher and I only had internship experience of 5 months. So I did prepare for behavioural questions and gathered all the required elements from my internship experience and some previous experience from my college. Makes sure you follow <a href="https://interviewsteps.com/blogs/news/amazon-star-method">STAR</a> pattern in answering those questions.</p><p>On my interview day, the first round was managerial round of 1 hour. Interviewer started with OOPS concepts (comparison between equals and ==, polymorphism, why do we need abstraction, inheritance, virtual pointers) and later asked questions related to operating systems(multi threading, processes scheduling). It was a very detailed discussions on those asked topics, In some topics I got stuck where he was getting very deep into the topics.</p><p>Second Interview was a coding interview of 1 hour. Interviewer asked me some behavioural questions, I answered them very well using STAR pattern. Then Interviewer asked me question related to linked list [segregate negative, zeroes, positive in groups maintaining relative order], I did solved it easily as the problem was slight variation of <a href="https://www.geeksforgeeks.org/sort-a-linked-list-of-0s-1s-or-2s/">this</a> problem. Then Interviewer asked me 2nd coding question which was related to heap <a href="https://www.geeksforgeeks.org/check-if-a-given-binary-tree-is-heap/">link</a>[check whether the given tree is a heap]. I came up with the approach and explained to him and later coded it, but due to limited time I couldn’t code it completely but I explained him what I was going to code in the remaining part. He was satisfied with it.</p><p>Third round was also of 1 hour. This round started with the coding question. I was asked question <a href="https://www.transtutors.com/questions/in-the-span-class-apple-converted-space-nbsp-span-strong-em-art-gallery-guarding-spa-668749.htm">link</a>. Initially I was not able to figure out the pattern for this problem. So I started with intuition and expressed my thought process, I was getting closer to the approach and the interviewer was really helpful to give me hints when I was getting stuck. She did agreed with the approach and asked me to code. While coding I got stuck at one point where I was not able to figure out to build an expression. Interviewer told me to move to next problem and come back later to the first problem. 2nd question she asked me was pretty simple, It was related to greedy algorithms [minimize cost to join ropes]. I solved that problem in few minutes (I was familiar with the problem). Later she asked me some behavioural questions which I did answered well using STAR pattern. At this point time was over so she didn’t proceeded with first question.</p><p>Later after 1 week I got a call from the recruiter that there will be one more final round after week. She told me the date and time for the final round. But unfortunately I was not provided with the link for interview. I did told them that I haven’t received any link for attending the interview 1 day before<br>and on interview day also. Later my interview was rescheduled later. The final interview was a technical interview. Initially interviewer asked me some questions related to my projects that I worked on and later asked some behavioural questions also. I did answered well for the project but this time I was not able to perform well in behavioural questions as per my expectations. 25 minutes were passed till now. Then Interviewer asked me a coding question which was related to graph <a href="https://leetcode.com/problems/word-ladder/">link</a>, it was a difficult question. So it took me some time to come up with the approach and the interviewer was satisfied with it. I started coding the solution but due to lack of time interviewer later asked me just to write psuedocode for the remaining solution. I was able to write the psuedocode and He was fine with that.</p><p>Result day, I was rejected. I wasn’t expecting that considering I was able to code a difficult question in final round but later realised that I could have done better in last round behavioural questions. It was my first interview with Amazon and I got to know my mistakes and key areas to work on.</p><p>Thanks for reading, I hope this rejection experience of mine will give you some learning.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7faf1ed99dd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Broadcast Receiver in Android]]></title>
            <link>https://medium.com/@NomadicProgramr/broadcast-receiver-in-android-5136d93fbea3?source=rss-cd7c38b13276------2</link>
            <guid isPermaLink="false">https://medium.com/p/5136d93fbea3</guid>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[broadcastreceiver]]></category>
            <category><![CDATA[android-development]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[broadcast]]></category>
            <dc:creator><![CDATA[Vikash Prajapati]]></dc:creator>
            <pubDate>Mon, 02 Aug 2021 07:07:49 GMT</pubDate>
            <atom:updated>2021-08-02T07:07:49.563Z</atom:updated>
            <content:encoded><![CDATA[<p>You might have ever wanted that whenever your mobile data stops working your WIFI should be automatically started or vice-versa. Events such as low battery, network change, call interruptions and more are their on which some actions can be taken. Based on such actions we can perform a particular task within our app.</p><p>A<strong> broadcast receiver </strong>is an android component which allows you to send and receive android system or application events. Events broadcasts may be generated from the android system or it could be generated from the user application itself.</p><p>Before using a broadcast receiver you need to register it into the application. Now there are two ways by which you can register a broadcast receiver into the application:<br>1. Manifest declared(statically)<br>2. Context registered(dynamically)</p><p><strong>Manifest Declared Broadcast Receiver<br></strong>In manifest declared broadcast receiver, the system launches your app (if the app is not already running) when the broadcast is sent.</p><pre>&lt;receiver android:name=&quot;.ExampleBroadcastReceiver&quot;  android:exported=&quot;true&quot;&gt;<br>    &lt;intent-filter&gt;<br>        &lt;action android:name=&quot;android.intent.action.INPUT_METHOD_CHANGED&quot; /&gt;<br>    &lt;/intent-filter&gt;<br>&lt;/receiver&gt;</pre><p>In the above example we have written above code in application section of our manifest file. <br>The property <em>android:exported</em> tells whether or not the broadcast receiver can receive messages from sources outside its application. If the value is true it can receive broadcasts outside of the application. If false, the only messages the broadcast receiver can receive are those sent by components of the same application.<br>You can impose restrictions with the help of <em>intent-filters</em> also.</p><p>For performing some action for particular broadcast we have to implement a class which extends BroadcastReceiver class and override its onReceive() method.</p><pre>public class ExampleBroadcastReceiver extends BroadcastReceiver {<br>        private static final String TAG = &quot;ExampleBroadcastReceiver&quot;;<br>        @Override<br>        public void onReceive(Context context, Intent intent) {<br>            Toast.makeText(context, log, &quot;input method changed&quot;).show();<br>        }<br>    }</pre><p><strong>Context Declared Broadcast Receiver<br></strong>In context registered broadcast receiver the broadcast register is registered at the runtime of the application. System cannot lauch your app by itself.</p><pre>BroadcastReceiver br = new ExampleBroadcastReceiver();<br>IntentFilter filter = new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION);<br>filter.addAction(Intent.ACTION_AIRPLANE_MODE_CHANGED);<br>this.registerReceiver(br, filter);</pre><p>Suppose the broadcast receiver was registered in the activity, then broadcast receiver can receive the events till the lifetime of the activity in which it was registered.<br>Inorder to stop the broadcast receiver call <a href="https://developer.android.com/reference/android/content/Context#unregisterReceiver(android.content.BroadcastReceiver)">unregisterReceiver(</a>br<a href="https://developer.android.com/reference/android/content/Context#unregisterReceiver(android.content.BroadcastReceiver)">)</a>. Be sure to unregister the receiver when you no longer need it or the context is no longer valid. br is the broadcast receiver that we declared in our previous example.<br>In the upcoming post I will show you how you can create and send your own broadcast.</p><p><strong>Thanks</strong> for reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5136d93fbea3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Compiling Iperf 3 for Android]]></title>
            <link>https://medium.com/@NomadicProgramr/compiling-iperf-3-for-android-9d9564d356ab?source=rss-cd7c38b13276------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d9564d356ab</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[iperf]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[internet]]></category>
            <dc:creator><![CDATA[Vikash Prajapati]]></dc:creator>
            <pubDate>Sun, 01 Aug 2021 13:03:24 GMT</pubDate>
            <atom:updated>2021-08-01T13:03:24.650Z</atom:updated>
            <content:encoded><![CDATA[<h4>Introduction</h4><p>iPerf3 is a tool for active measurements of the maximum achievable bandwidth on IP networks. It supports tuning of various parameters related to timing, buffers and protocols (TCP, UDP, SCTP with IPv4 and IPv6). For each test it reports the bandwidth, loss, and other parameters.</p><p>There are various iperf versions available. But today I will be explaining how to use iperf 3 source code for compiling it for <em>android(x86–64 architecture)</em><strong> </strong>and use it in ADB shell on Android.</p><p>If you want to use pre-compiled iperf 3 binary then you can download from <a href="https://github.com/KnightWhoSayNi/android-iperf">here</a></p><blockquote>NOTE: compiled binary only works for <strong><em>android(x86–64 architecture). </em></strong><em>For other architectures you can check </em><a href="https://medium.com/@ansorod/how-to-compile-iperf3-for-android-4d67c9a7f061"><em>here</em></a></blockquote><h4>Compiling Iperf source code to binary file for Android</h4><p>In order to compile iperf for android you will need following things ready-</p><ul><li>iperf 3 source code —<a href="https://github.com/KnightWhoSayNi/android-iperf"> link</a></li></ul><p>After downloading iperf 3 source code from above link, extract source code.</p><p>Now open terminal or command prompt in your SOURCE_CODE_FOLDER . Type the following command in terminal and wait for the complete execution of the command.</p><pre>./configure</pre><p>After completion of the above command, run the next command in terminal</p><pre>make</pre><p>If all goes well, you will end up with a dynamically linked binary which is not what we want on the Android device but can be used Linux operating systems. We will have to delete this and build a statically linked binary for Android device.</p><pre>rm src/iperf3</pre><p>Edit src/Makefile and look for the line :-</p><pre>iperf3_CFLAGS = -g</pre><p>and replace it with :-</p><pre>iperf3_CFLAGS = -g -all-static</pre><p>Now run make command for the final time.</p><pre>make</pre><p>Now Strip the binary file and verify it.</p><pre>strip src/iperf3<br>file src/iperf3</pre><p>iperf 3 binary is successfully generated in src folder. you can test it by first pushing the generated binary to /data/local/tmp/ using ADB push command in terminal as</p><pre>adb push PATH_TO_BINARY_FILE_GENEREATED /data/local/tmp/iperf3</pre><p>After pushing binary you need to update permissions for the file /data/local/tmp/iperf3</p><pre>adb shell chmod 777 /data/local/tmp/iperf3</pre><p>Now you can simply run iperf as a client or a server over ADB</p><pre>adb shell /data/local/tmp/iperf3 -c SERVER_IP_ADDRESS -i 1 -t 10</pre><p>Above command will show bandwidth in every second for 10 seconds.<br>Some public SERVER_IP_ADDRESS can be found in the link <a href="https://iperf.fr/iperf-servers.php">here</a>.</p><figure><img alt="Output of the above executed command in terminal" src="https://cdn-images-1.medium.com/max/954/1*AqzJl6MyrSbEopABj41YhA.png" /></figure><h3><strong>That’s All!</strong></h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d9564d356ab" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>