<?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 Nsikak Thompson on Medium]]></title>
        <description><![CDATA[Stories by Nsikak Thompson on Medium]]></description>
        <link>https://medium.com/@nsikakthompson73?source=rss-a78b50beb64b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*0sSECmiyUqZg9Drb.</url>
            <title>Stories by Nsikak Thompson on Medium</title>
            <link>https://medium.com/@nsikakthompson73?source=rss-a78b50beb64b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 02:23:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nsikakthompson73/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[12 Android Developer - Interview Questions]]></title>
            <link>https://medium.com/@nsikakthompson73/12-android-developer-interview-questions-17119d647d41?source=rss-a78b50beb64b------2</link>
            <guid isPermaLink="false">https://medium.com/p/17119d647d41</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[interview-questions]]></category>
            <dc:creator><![CDATA[Nsikak Thompson]]></dc:creator>
            <pubDate>Wed, 13 Nov 2019 18:52:29 GMT</pubDate>
            <atom:updated>2019-11-14T10:23:53.617Z</atom:updated>
            <content:encoded><![CDATA[<p>I have had several technical interviews for an Android Developer role and most times I see myself failing to answer very simple questions.</p><p>I believe most Android devs like me use certain libraries, methods and functions etc but don’t know why the article we read or Github source recommended it.</p><p>So I will be sharing some questions I have encountered and how you can best answer these questions.</p><h4>1. What is Java reference?</h4><p>A <strong>reference</strong> is an address that indicates where an object’s variables and methods are stored.</p><p>In Java there are four <a href="https://www.geeksforgeeks.org/types-references-java/"><strong>types of references</strong></a> differentiated on the way by which they are garbage collected.</p><ol><li>Strong References</li><li>Weak References</li><li>Soft References</li><li>Phantom References</li></ol><h4>2. Name the Android activity lifecycle in it’s respective other</h4><p><a href="https://developer.android.com/reference/android/app/Activity.html#onCreate(android.os.Bundle)">onCreate()</a>, <a href="https://developer.android.com/reference/android/app/Activity.html#onStart()">onStart()</a>, <a href="https://developer.android.com/reference/android/app/Activity.html#onResume()">onResume()</a>, <a href="https://developer.android.com/reference/android/app/Activity.html#onPause()">onPause()</a>, <a href="https://developer.android.com/reference/android/app/Activity.html#onStop()">onStop()</a>, and <a href="https://developer.android.com/reference/android/app/Activity.html#onDestroy()">onDestroy()</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/513/0*PdnpBcon_cbEfRx2.png" /></figure><h4>3. What is the difference between LiveData and MutableLiveData?</h4><p>LiveData is immutable(will not change) while MutableLiveData is mutable(reliable to change). MutableLiveData extends LiveData and provides methods like setValue() and postValue().</p><h4><strong>4. What is the different Between Parcelable and Serializable?</strong></h4><p><a href="https://stackoverflow.com/questions/3323074/android-difference-between-parcelable-and-serializable"><strong>Parcelable</strong></a> is going to convert object to byte stream and pass the data between two activities. <strong>Parcelable</strong> is faster than serializable.</p><p><a href="https://stackoverflow.com/questions/3323074/android-difference-between-parcelable-and-serializable"><strong>Serializable</strong></a> does the same thing but it is a slow process compare to parcelable.</p><h4>5. What is a data class in kotlin?</h4><p><em>A data class refers to a class that contains only fields and CRUD(</em>CREATE, READ, UPDATE and DELETE)<em> methods for accessing them (getters and setters).</em></p><h4>6. What is the difference between Lateinit and Lazy in kotlin?</h4><p>These are both used for kotlin property initialization. This option is often preferred if you don’t intend to initialize a property immediately.</p><p><strong><em>lateinit</em></strong> is used for late initialization.</p><p><strong><em>lazy</em></strong> is used lazy initialization.</p><p>lazy() is a function that takes a lambda and returns an instance of lazy which can serve as a delegate for implementing a lazy property: the first call to get() executes the lambda passed to lazy() and remembers the result, subsequent calls to get() simply return the remembered result.</p><h3>Example</h3><pre><strong>public</strong> <strong>class</strong> <strong>Example</strong>{<br>  <strong>val</strong> name: String <strong>by</strong> lazy { “test name” }<br>}</pre><p><a href="https://ahsensaeed.com/differences-between-kotlin-lazy-lateinit-delegate/">Read more here</a></p><h4><strong>7. How to create a static method in Kotlin?</strong></h4><p>Static methods is Kotlin are created inside object declaration that are marked with the companion keyword: The method will be annotated with @JvmStatic</p><pre>class foo{</pre><pre>companion object{<br>//all static methods are declared here</pre><pre>@JvmStatic<br>fun move(){</pre><pre>  }</pre><pre>}</pre><h4><strong>8. What is the difference between replace() and add() in Android fragments?</strong></h4><p>replace() removes the existing fragment and adds a new fragment..</p><p>add() retains the currently displayed fragment and adds a new fragment onto the fragment stack. This means existing fragment will still be active and will be in the ‘paused’ state as such when a back button is pressed onCreateView() will not be called for the existing fragment(the fragment which was there before new fragment was added)</p><h4><strong>9. What is the difference between flowable, Observable and Single in RxJava?</strong></h4><h4>Observable</h4><p>This is the simplest of the three. It can emit one or more values.</p><h4>Flowable</h4><p>Using Flowables become feasible when an Observable is emits a huge volume of values than can be consumed by an Observer.</p><p>In this case, the Observable needs to skip some values on the basis of some strategy else it will throw an exception.</p><p>The Flowable Observable handles the exception with a strategy.</p><p>The strategy is called <strong>BackPressureStrategy</strong> and the exception is called <strong>MissingBackPressureException</strong>.</p><h4>Single</h4><p>Single is used when an Observable has to emit only one value like a response from a network call.</p><h4>10. Difference between == &amp; ===?</h4><p><strong>==</strong> is used for comparison for values if(name == “nsikak”). This will return true if the values are the same and false if not</p><p><strong>=== </strong>is used to compare reference. if(&quot;first_name&quot; === &quot;last_name&quot;). first_name and last_name are string variables. This will only return true if the reference are of the same type.</p><h4><strong>11. Why is onSetContentView called in OnCreate() not in OnResume()?</strong></h4><p><strong>setContentView()</strong> handle heavy work of drawing the view on the device screen. To prevent slowing the device , this method is preferable called in the <strong>onCreate()</strong> because is triggered once and not multiple time like the <strong>onResume().</strong></p><h4><strong>12. </strong>How does Android Studio generate an APK?</h4><p>The build process involves many tools and processes that convert your project into an Android Application Package (APK). The build process is very flexible, so it’s useful to understand some of what is happening under the hood.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/0*u4Ri-SQTWPcvZdPy.png" /></figure><p>There are not one size fits it all for interview questions, as such you must be prepared and be at the best of your game.</p><p>These should give you an overview of what to expect and even more.</p><p>All the best.</p><p>Thank you <a href="https://medium.com/u/a0622a7ddaee">Ememobong Akpanekpo</a> for proof reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=17119d647d41" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Uyo are you ready for DevFest 2019?]]></title>
            <link>https://medium.com/gdguyo/uyo-are-you-ready-for-devfest-2019-9e502f981cbb?source=rss-a78b50beb64b------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e502f981cbb</guid>
            <category><![CDATA[devfeststories]]></category>
            <category><![CDATA[gdg]]></category>
            <category><![CDATA[devfest]]></category>
            <dc:creator><![CDATA[Nsikak Thompson]]></dc:creator>
            <pubDate>Thu, 31 Oct 2019 15:04:06 GMT</pubDate>
            <atom:updated>2019-10-31T15:04:06.047Z</atom:updated>
            <content:encoded><![CDATA[<p>Largest community run technology event in Uyo. Always remarkable</p><p>DevFest is the largest community run technology event organized by local Google Developer Groups(GDG) around the world. Google Developer Group Uyo(GDG Uyo) have been privilege to host this event twice in November 2015 and November 2018.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IeO-H3dHx0nz_AbqjU4Evw.jpeg" /><figcaption>DevFestSS 2019</figcaption></figure><p>Last years edition was massive because it was a cluster event where GDG Uyo hosted other GDG chapters across South South Nigeria.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1014/1*PxjYXmWGE3D2xbM31pWvoA.gif" /></figure><p>We are excited to announce that DevFest will be happening a Uyo again for the 3rd time on 16th November 2019 at Ibom Elibrary Uyo, IBB Avenue, Uyo, Akwa Ibom State.</p><ul><li>500+ Attendees.</li><li>4 Tracks</li><li>10 Sessions</li><li>Swags and other goodies.</li></ul><p>Featuring: <strong>Skills for developers, Growth &amp; best Practices, Business growth, Impact in communities, Mental Health, Becoming world class and The future of technology.</strong></p><p>We will also be featuring rockstar speakers from top tech companies in Nigeria and abroad.<a href="https://devfest.gdguyo.tech/speakers/"> Check out here</a></p><h4>Reserve your seat <a href="https://devfest.gdguyo.tech/">here</a></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wilFs_0siA_nkWAX5Dz1aA.png" /></figure><p>DevFest has greatly contributed to the growth of attendees by bringing opportunities closer and sharing more insight about technology as the future. We are happy to share previous DevFest success stories with you.</p><h4>Here are success stories from few of our Attendees</h4><p><strong>Ekemini Sunday — Project Manager at Jiggle</strong></p><p>Being the first major tech event I attended, DevFest South South Uyo 2018, opened my eyes to vast opportunities abounding in the world of ICT. The event had five keynote talks by amazing speakers such as Mark Essien, Celestine Omin, Hanson Johnson who shared various technological insights and even their early days’ experience, hurdles and successes.</p><p>This was quite encouraging and I also attended break out a session on Web Development which turned out to be very informative. Asides the talks and sessions, getting to meet young people thriving in tech was really inspiring for me.</p><p>This was a big turn around in my career as it motivated me to get an offer as a Project Manager at a Fintech Startup called Jiggle.</p><p><a href="https://twitter.com/drumzminister"><strong>Elisha Ukpong </strong></a><strong>— Full Stack Web developer</strong></p><p>My name is Elisha Ukpong, a web developer working with an agric-tech company, Globetrot <a href="https://farmsponsor.com.ng/">Farmsponsor </a>located in the city of Port Harcourt, Rivers State, Nigeria.</p><p>I have had the opportunity to attend more than one Devfest Event, one of which (DevFestSS, Uyo) stands out greatly for me, and has had a lasting impact on me and my career in software development till date.</p><p>I was a live-support volunteer member on the DevFestSS, Uyo which gave me access to top members of the community, mentorship and training whose effects has endured far beyond the event. Also the joy of wearing a volunteer tag in an event that had more than 1000 people in attendance, the feeling is amazing.</p><p>On the event day, apart from meeting a lot of people on the registration desk, I also listened to inspiring and touching talks by super-star speakers who graced the conference, which I might not have met naturally over the course of my career, but was made possible by DevFestSS, Uyo, the likes of <a href="https://medium.com/u/9e13edbcb55f">Prosper Otemuyiwa</a>, <a href="https://medium.com/u/df09f3e198b4">Celestine Omin</a>, <a href="https://medium.com/u/1160b6eab3c3">Samson Goddy</a> and <a href="https://medium.com/u/fb80690688e0">Ada Nduka Oyom</a> to name a few.</p><p>To crown it all, I also got an opportunity to meet a recruiter while attending to issues on the live support platform who was willing to hire from the volunteers team and got hired after a successful interview process. I am glad to have attended devfest and volunteered for it, I not only ended up with more knowledge, I also got a nice placement to put all my leaning to work.</p><p>Big thanks to GDG for making this possible.</p><p><a href="https://twitter.com/bella_mfonobong"><strong>Mfonobong Umondia</strong></a><strong> — UI/UX Designer and Figma Africa Advocate</strong></p><p>Hello, my name is Mfonobong Umondia UI/UX Designer and Figma Africa Advocate. I attended my first DevFest in November 2015 😁… Yeah, that’s quite a long time. So let me give you a walkthrough my tech journey, I became a tech enthusiast in 2014 after a 1-week Game Development Boot camp which was organized by Start Innovation Hub, my eyes were popped open and I was amazed at what I could do with just my laptop and internet. In that one year, I learned so much that it transitioned me into a full-time woman in tech, I explored fields like Android Development etc before finally landing in User Interface/ User Experience Design and my experience in design has been amazing since then.</p><p>Attending DevFest 2015 was the beginning of an awesome journey for me because I met lots of people into different fields in tech, established contacts, as well as learn from others, especially the speakers that came in. This, in fact, had set me on the right path to know what works best for me in what I do.</p><p>Last year, as a result of how passionate I was about teaching other people design. I met with one of the speakers in the person of Namnso Ukpannah who gave me a guide on how to apply to the team to become a Figma Advocate in my community. I did and it was successful. So currently, I lead a team of Awesome designers in Uyo.</p><p>DevFest last year was mind blowing. We had quality speakers who came to impact great knowledge on the attendees, I also learnt about Open Source. The whole place was packed with people desiring to be in tech. DevFest I would say is not just an event, it brings together lots of people with different experiences in tech.</p><h4>You can be more. Join this years #DevFestUyo</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e502f981cbb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/gdguyo/uyo-are-you-ready-for-devfest-2019-9e502f981cbb">Uyo are you ready for DevFest 2019?</a> was originally published in <a href="https://medium.com/gdguyo">gdgUyo</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[2018 in Review: My best Year in Tech]]></title>
            <link>https://medium.com/@nsikakthompson73/2018-in-review-my-best-year-in-tech-d28375660155?source=rss-a78b50beb64b------2</link>
            <guid isPermaLink="false">https://medium.com/p/d28375660155</guid>
            <category><![CDATA[review]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[best]]></category>
            <category><![CDATA[gdg]]></category>
            <dc:creator><![CDATA[Nsikak Thompson]]></dc:creator>
            <pubDate>Mon, 31 Dec 2018 18:27:37 GMT</pubDate>
            <atom:updated>2018-12-31T19:01:43.056Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QSnAlhj_ZdRzPGrE" /></figure><p>All the plans I had for this year were focused on improving my programming skills and other self development activities.</p><p>Yea, it’s been my best year so far. You know why?</p><p>More than what I planned for happened and that blew my mind.</p><p>Every single friend I met this year was amazing and most of them thinking <em>”He’s a genius”.</em></p><p>The amazing part was, everyone I did look up to, had this strong believe that I could do amazing stuffs and were willing to give me the opportunity.</p><blockquote>“When something is important enough, you do it even if the odds are not in your favor.” — Elon Musk</blockquote><p>I know this is just the beginning of the journey.</p><h4>Building Products with Android (work)</h4><p>I spent the whole year working at Start Innovation Hub and <a href="https://medium.com/u/43122648eb90">Alta Labs</a>. The process became more deeper and interesting as I did try my hands on more newer technologies, worked on-site and remotely with amazing teams and managers on awesome products. I understood more about the importance of communications, feedback and team spirit in growing a strong technical team.</p><h4>Few technical articles <em>(I believe this will improve in 2019)</em></h4><p>I really wanted to write more than I did this year but I believe I was able get a few out.</p><blockquote>No knowledge is too little to share. Your little can save a life</blockquote><p>checkout my medium publication <a href="https://medium.com/droidplate"><strong>droidplate</strong></a></p><h4><strong>Travel &amp; Community Building</strong></h4><p>It was a breathtaking experience attending local and international events, contributing to <a href="https://twitter.com/gdg_uyo"><strong>GDG Uyo</strong></a> community and the tech ecosystem as a whole.</p><p>Let the throwback begin..</p><ul><li>March 8 , I received an invitation to attend Google IO 2018 at<strong> San Francisco California</strong>. This email gave me the shock of my life and I was more confused.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qConC3ceB-BlYhQAPSn8AA.png" /><figcaption>This email was really shocking</figcaption></figure><ul><li>May 6, I attended Global GDG Summit at <strong>San Francisco , <em>California </em></strong>where I met other <strong>GDG leads, Community Managers </strong>and mentors across the globe. It was more fun with fellow Africans <a href="https://medium.com/u/d577797eda40">Chizoba Ogbonna</a> <a href="https://medium.com/u/aefb5f359b56">Aniedi Udo-Obong</a></li><li>Spike riding suddenly became a hobby</li><li>Showing the Nigerian dance moves…lol</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6Fz6wseNYEKXqOnp" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/0*-aT9qXxaxH4qWbAq" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8S5mOJbedIfSM6zG" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iHPUYGhWonObWmk0" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/0*lr4_xlYnp5D65zFp" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9xrgSC5gDQvMHIry" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/462/0*W76KX9AZh1kJRej3" /></figure><ul><li>May 7, I attended Google IO 2018 at <strong>Mountain View , San Francisco, California </strong>the yearly festival for developers. I spent sometime interacting with some Android Engineers at Google like <a href="https://medium.com/u/8ddd94878165">Jake Wharton</a></li><li>Met the CEO of <a href="https://medium.com/u/49cf3ccf2c84">Meetup</a> .com. This guys are already building the future for gathering people with ease.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rM90aQUfumqB4vE3" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*c7Dght2EHSnozs0D" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SMnJki7tLXBSAjsw" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PSB9nMO61lnPQwgU" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ifiXcKoUhrt29Cvx" /><figcaption>Amphitheater Mountain View</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ScHHl9CJKa79FJV5" /></figure><ul><li>May 9, I got special invitation to <a href="https://medium.com/u/2929690a28fb">Udacity</a> headquarters at <strong>Mountain View , San Francisco, California </strong>with other graduates of <a href="https://medium.com/u/f7c33bb5301c"><strong>Andela Learning Community</strong></a><strong> Google Scholarship </strong>where I met<strong> </strong><a href="https://medium.com/u/696aff678e4"><strong>Nate Ebel</strong></a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hmqyX9TIuVsWBfEQ" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jeErYE-9ToCjKCYj" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6kYViTooMD0xSEXl" /><figcaption>Shots at Udacity Headquaters</figcaption></figure><ul><li>August 17, I gave a talk on<strong> building Android apps the cleanway</strong> at <strong>forloopPH at Port Harcourt , Nigeria. T</strong>hanks to<strong> </strong><a href="https://medium.com/u/5454fdb188e7"><strong>Arerosuoghene Wisdom</strong></a><strong> </strong>for organizing this. <a href="https://medium.com/u/a9a81c42da8f">Tiku Okoye</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*omZsa-99jhJ7PT7a" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JupInOHRld4dfSAE" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rTtds7h94JECGhdy" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MXFmJHUudUy2DMhA" /></figure><ul><li>November 16, I was privileged to host <strong>#DevFestSSUyo </strong>and also gave the welcome address<strong> . </strong>This was the biggest technology event in South South Nigeria with 1000+ attendees, featuring experts like <a href="https://medium.com/u/9e13edbcb55f">Prosper Otemuyiwa</a> Open source Advocate, <a href="https://medium.com/u/fb80690688e0">Ada Nduka Oyom</a> of <a href="https://medium.com/u/489ebb71da">Interswitch Engineering</a>, <a href="https://medium.com/u/f20aa2adc5b8">Mark Essien</a> of <a href="https://medium.com/u/6b77eba6b8b7">Hotels.ng</a>, <a href="https://medium.com/u/1160b6eab3c3">Samson Goddy</a> of <a href="https://medium.com/u/44f32cc79724">Sugar Labs</a> , <a href="https://medium.com/u/bdc3414d797a">Namnso Ukpanah</a> <a href="https://medium.com/u/bf1152b11387">Figma</a> Ambassador, <a href="https://medium.com/u/13fa7ebba9f0">Belvi Nosakhare</a> of <a href="https://medium.com/u/3bbf5e6f1384">Intelia</a>, <a href="https://medium.com/u/aaa1fed5b491">Auwal MS</a> Program Assistant <a href="https://medium.com/u/f7c33bb5301c">Andela Learning Community</a>, <a href="https://medium.com/u/c0b03dc5e50e">cO</a> of <a href="https://medium.com/u/74c2b489ce4">Paystack</a>. Thank you <a href="https://medium.com/u/aefb5f359b56">Aniedi Udo-Obong</a> and <a href="https://medium.com/u/51e5c4a1301d">Hanson Johnson</a> for giving me this opportunity.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/359/0*3xUfL99cnBC717qx" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/453/0*4IQSQ0_9ARjkmBLB" /><figcaption>Developers New Year</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dKEq4GLKe9XFX6q3" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*k3RTB1igvT_O4FJJ" /><figcaption>Crowd of Passionate Techies</figcaption></figure><ul><li>I spoke at<strong> DevFest Abuja. </strong>Thanks to<strong> </strong><a href="https://medium.com/u/aaa1fed5b491"><strong>Auwal MS</strong></a></li></ul><h4>Designing for Fun</h4><p>I so much love designing in my spare time and trying out new features on this amazing design tool called <a href="https://medium.com/u/bf1152b11387">Figma</a>.</p><ul><li>I came 3rd in the global <strong>Cinema App design Challenge</strong> by <a href="https://medium.com/u/559b0105cd29">Uplabs</a>. Check out the design <a href="https://www.uplabs.com/posts/cinema-app-43e827d0-5f14-45e3-9ede-9c5c62075dd0"><strong>here</strong></a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JMIc2L0I7jZjSvuquAu2Ug.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/916/1*JfqUAhDbWoMJgf6haBvk6w.png" /></figure><ul><li>Designed <a href="https://medium.com/u/dc3f591543d9">GetYourGuide</a> Android app Rethink with <a href="https://medium.com/u/bf1152b11387">Figma</a>. Thank you <a href="https://medium.com/u/bdc3414d797a">Namnso Ukpanah</a> for your support through Figma Africa Community</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*e-KAiQ7rlnZC9SjE.png" /></figure><h4>Gadgets Freak</h4><ul><li>Got a new Macbook Pro</li><li>Got a new Android Wear Smart watch</li><li>Got my first 32&quot; Monitor</li><li>Got a new Android Device (Motorola)</li></ul><p><em>These devices drive my daily productivity(i am not showing off)</em></p><h4>My Life off the PC</h4><p>My life of the PC in 2018 did revolve around few things:</p><ul><li><strong>Sing and Pray</strong></li><li><strong>Watching movies</strong></li><li><strong>Playing Guitar</strong></li><li><strong>Having fun with friends</strong></li><li><strong>Making other laugh</strong>(Some friends say i am a savage)</li><li><strong>Making new friends</strong></li></ul><p>I thank God most especially and also many thanks to everyone who did contribute to making 2018 an awesome year for me . <a href="https://medium.com/u/51e5c4a1301d">Hanson Johnson</a> <a href="https://medium.com/u/5bec829336">David Inyang-Etoh</a> <a href="https://medium.com/u/aefb5f359b56">Aniedi Udo-Obong</a> <a href="https://medium.com/u/c0b03dc5e50e">cO</a> <a href="https://medium.com/u/fb80690688e0">Ada Nduka Oyom</a> <a href="https://medium.com/u/aaa1fed5b491">Auwal MS</a> <a href="https://medium.com/u/9f96e9614042">Annyce Davis</a></p><h4>Looking at 2019</h4><p>I believe 2019 will be more fruitful and rewarding. Therefore, I will do my best to be a better me, travel more, impact more lives, build more awesome products and do more business.</p><p>I will devote time to feature at tech scenes like meetups or conferences, locally and internationally. Also contribute to open source projects when time permits.</p><p>Feel free to invite me to yours. Send <a href="http://nsikakthompson73@gmail.com/">email</a> or follow me on twitter <a href="https://twitter.com/thompson_nsikak">@thompson_nsikak</a>. For those that love code, check me out on<strong> </strong><a href="https://github.com/Nsikaktopdown"><strong>github</strong></a></p><h4>Let’s Cheer to 2019 -&gt; Year of more Awesomeness</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d28375660155" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ViewModels: Persistence, onSaveInstanceState(), Restoring UI State]]></title>
            <link>https://medium.com/droidplate/viewmodels-persistence-onsaveinstancestate-restoring-ui-state-2fcf5a2a7ede?source=rss-a78b50beb64b------2</link>
            <guid isPermaLink="false">https://medium.com/p/2fcf5a2a7ede</guid>
            <category><![CDATA[presentations]]></category>
            <dc:creator><![CDATA[Nsikak Thompson]]></dc:creator>
            <pubDate>Thu, 30 Aug 2018 12:27:01 GMT</pubDate>
            <atom:updated>2018-08-30T12:27:01.976Z</atom:updated>
            <content:encoded><![CDATA[<p>This was my talk at Android Nigeria Meetup. I talked about restoring UI-related data using ViewModel and local persistence libraries.</p><p>See slides <a href="https://speakerdeck.com/nsikaktom/viewmodels-persistence-onsaveinstancestate-restoring-ui-state">here</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2fcf5a2a7ede" width="1" height="1" alt=""><hr><p><a href="https://medium.com/droidplate/viewmodels-persistence-onsaveinstancestate-restoring-ui-state-2fcf5a2a7ede">ViewModels: Persistence, onSaveInstanceState(), Restoring UI State</a> was originally published in <a href="https://medium.com/droidplate">DroidPlate</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[New Android Architecture Components with MVVM]]></title>
            <link>https://medium.com/droidplate/new-android-architecture-components-with-mvvm-ec7fc69b4d7e?source=rss-a78b50beb64b------2</link>
            <guid isPermaLink="false">https://medium.com/p/ec7fc69b4d7e</guid>
            <category><![CDATA[presentations]]></category>
            <dc:creator><![CDATA[Nsikak Thompson]]></dc:creator>
            <pubDate>Thu, 30 Aug 2018 12:16:48 GMT</pubDate>
            <atom:updated>2018-08-30T12:16:48.210Z</atom:updated>
            <content:encoded><![CDATA[<p>This presentation highlights the new architecture libraries released by the Google during this year Google IO. It was presented during forLoopUyo maiden Edition.</p><p>See slides <a href="https://speakerdeck.com/nsikaktom/new-android-architecture-components-with-mvvm">here</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ec7fc69b4d7e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/droidplate/new-android-architecture-components-with-mvvm-ec7fc69b4d7e">New Android Architecture Components with MVVM</a> was originally published in <a href="https://medium.com/droidplate">DroidPlate</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Material Design at DevFestSE16]]></title>
            <link>https://medium.com/droidplate/material-design-at-devfestse16-3a448676e4d3?source=rss-a78b50beb64b------2</link>
            <guid isPermaLink="false">https://medium.com/p/3a448676e4d3</guid>
            <category><![CDATA[material-design]]></category>
            <category><![CDATA[presentations]]></category>
            <dc:creator><![CDATA[Nsikak Thompson]]></dc:creator>
            <pubDate>Thu, 30 Aug 2018 12:14:40 GMT</pubDate>
            <atom:updated>2018-08-30T12:15:06.556Z</atom:updated>
            <content:encoded><![CDATA[<p>I was glad to speak at Devfestse2016 on Google Material Design and practices. It was an awesome session with 100+ attendees.</p><p>Checkout slides <a href="https://speakerdeck.com/nsikaktom/material-design">here</a></p><p>Let me know if this was helpful</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3a448676e4d3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/droidplate/material-design-at-devfestse16-3a448676e4d3">Material Design at DevFestSE16</a> was originally published in <a href="https://medium.com/droidplate">DroidPlate</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to join ALCwithGoogle3.0 Group #Channel on Slack workspace]]></title>
            <link>https://medium.com/@nsikakthompson73/how-to-join-your-group-channel-on-slack-ba85ccc2c494?source=rss-a78b50beb64b------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba85ccc2c494</guid>
            <category><![CDATA[alcs]]></category>
            <category><![CDATA[slack]]></category>
            <dc:creator><![CDATA[Nsikak Thompson]]></dc:creator>
            <pubDate>Mon, 21 May 2018 09:50:58 GMT</pubDate>
            <atom:updated>2018-05-21T10:55:51.391Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*dAUOvTmJT6mL1xhcbwa5vg.png" /><figcaption>ALCwithGoogle3.0</figcaption></figure><p>Some weeks ago, You were all invited to ALCwithGoogle3.0 Slack workspace, which is the official communication Channel for the program.</p><p>Thereafter , All learners were assigned to Teams and Groups to collaborate with other learners in program.</p><p>So in this article , i will be showing you how to join your Group Channel or Team on Slack .</p><ol><li>Login to Slack with your Credentials</li><li>From the top left corner click on <strong>Channels</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/214/1*yoqW-6eFKpZuqEH_svrPwA.png" /></figure><p>3. On the <strong>Browse Channel</strong> window. Search for your Group Channel using it name. e.g ab-group-10.</p><p>You should see the channel from the result list, if it was created by the admin.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/981/1*dEmS_eMXVOYJnR0FmqsFIQ.png" /></figure><p>4. From the search result list, Click on the Channel you wish to join. This will take you to the channel Message window. Click on the Join Channel button to join .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/470/1*2dItcHck9eXDatkY9U3Ncw.png" /></figure><p>At this point , You have successfully joined your desired channel. You can now post and receive messages and react with emojis on this channel.</p><p>Hope this helped</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba85ccc2c494" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Serverless API Service with Webtask.io for Android]]></title>
            <link>https://medium.com/droidplate/article-api-with-webtask-io-for-android-b06ff8a3141c?source=rss-a78b50beb64b------2</link>
            <guid isPermaLink="false">https://medium.com/p/b06ff8a3141c</guid>
            <category><![CDATA[auth0]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[webtask]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Nsikak Thompson]]></dc:creator>
            <pubDate>Thu, 22 Feb 2018 22:14:48 GMT</pubDate>
            <atom:updated>2018-05-02T21:14:31.873Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eDY3ldUGDimw2FENO4TQbg.png" /></figure><p>The Serverless Framework helps you develop and deploy serverless applications.</p><p>Introducing Auth0 Webtasks. The Serverless CLI offers structure, automation and best practices out-of-the-box. And with Auth0 Webtasks it’s simple and easy to deploy code in just seconds.</p><p>In this article we will be build a simple article-api service for our Android App. The Article App will be feeding from the api based on webtask.io. This api will be used to perform basic CRUD task with the following HTTP methods . POST, GET, PUT, DELETE.</p><p>Article fields</p><ul><li>Title</li><li>Author</li><li>Content</li><li>ThumbUrl</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*e-QTgYRnLKPDdF3Yxb7xew.png" /></figure><h3>Getting Started with Webtask.io</h3><p>Webtasks is a simple, lightweight, and secure way of running isolated backend code that removed or reduces the need for a backend.</p><p>Webtask is owned by Auth0 an internally key element of their identity management platform. You can play with the service and read more about it <a href="https://webtask.io/">here</a>,</p><h4>Setup</h4><p>Firstly your need to install the command line tool with the following command. This will get all you need set.</p><pre><strong>$ npm i -g wt-cli </strong></pre><pre><strong>$ wt init</strong></pre><p>To test if it working. Create hello.js file and add this functions</p><pre><strong>module.exports = function (done) { </strong></pre><pre><strong>done(null, ‘Hello!’);</strong></pre><pre><strong> }</strong></pre><p>The simply create a function on the webtask server that returns Hello! when the function is triggered. Just run</p><pre><strong>$ wt create hello.js</strong></pre><p>This will return a URL on your terminal . Test the URL with your browser any console of your choice.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jB_6sYIuJ_f2FMo5OB0Kwg.png" /><figcaption>Test results</figcaption></figure><p>Coooooool!!! You Deserve some accolades …</p><p>Now that we have made it work. Let get into creating the Full Article API</p><h4>API Structure</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/204/1*8JmParg9vc8SM8sU9Gq-YA.png" /></figure><p>Package.json -&gt; this contains all the project dependencies that will be needed to get our project ready for Webtask.io.</p><pre><strong>{</strong></pre><pre><strong>&quot;name&quot;: &quot;article-api&quot;,</strong></pre><pre><strong>&quot;version&quot;: &quot;1.0.0&quot;,</strong></pre><pre><strong>&quot;description&quot;: &quot;Article tes api&quot;,</strong></pre><pre><strong>&quot;main&quot;: &quot;index.js&quot;,</strong></pre><pre><strong>&quot;scripts&quot;: {</strong></pre><pre><strong>&quot;start&quot;: &quot;npm run create -- --watch&quot;,</strong></pre><pre><strong>&quot;create&quot;: &quot;wt create index --bundle&quot;</strong></pre><pre><strong>},</strong></pre><pre><strong>&quot;author&quot;: &quot;&quot;,</strong></pre><pre><strong>&quot;license&quot;: &quot;MIT&quot;,</strong></pre><pre><strong>&quot;dependencies&quot;: {</strong></pre><pre><strong>&quot;body-parser&quot;: &quot;^1.18.2&quot;,</strong></pre><pre><strong>&quot;express&quot;: &quot;^4.15.2&quot;,</strong></pre><pre><strong>&quot;mongoose&quot;: &quot;^4.9.5&quot;,</strong></pre><pre><strong>&quot;webtask-tools&quot;: &quot;^3.2.0&quot;</strong></pre><pre><strong>}</strong></pre><pre><strong>}</strong></pre><h4>Webtask Programming &amp; Express</h4><p>An app is simply created on webtask by exporting a function and an app is created.</p><p>Webtask has a utility tool, webtask-tools, to help you bind your express app to a Webtask context. Therefore, rather than exporting a simple function, you can export an express app bound to Webtask using webtask-tools:</p><p>body-parser parse incoming request bodies in a middleware before your handlers, available under the req.body property.</p><pre><strong>var Express = require(&#39;express&#39;);</strong></pre><pre><strong>var Webtask = require(&#39;webtask-tools&#39;);</strong></pre><pre><strong>var bodyParser = require(&#39;body-parser&#39;);</strong></pre><pre><strong>var app = Express();</strong></pre><pre><strong><br>app.use(bodyParser.urlencoded({ extended: true }))</strong></pre><pre><strong>app.use(bodyParser.json());<br></strong></pre><pre><strong>//database connection/disconnection and routes</strong></pre><pre><strong>app.use(require(&#39;./middleware/db&#39;).connectDisconnect);</strong></pre><pre><strong>require(&#39;./route/articles&#39;)(app);</strong></pre><pre><strong>module.exports = Webtask.fromExpress(app);</strong></pre><h3>Database &amp; Connections</h3><h4>Mongolab Database</h4><p><a href="https://mlab.com/">Mongolab</a> by Object Labs is a good choice for cloud database because they eliminate the challenges of knowing how to setup a Cloud DB by just giving you a URL after choosing where you want your database to be hosted. To get started:</p><ul><li>Quickly <a href="https://mlab.com/signup">Sign up</a>.</li><li>Create a database. (Take note of the Database url)</li><li>Create a user to authenticate the database. You can do this by clicking on the just created database, selecting the Users’ tab and clicking <strong>Add database user</strong>.</li></ul><h4>Creating Mongoose Schema</h4><p>Mongoose is a JavaScript framework that is commonly used in a Node.js application with a MongoDB database. It will create an interface for performing CRUD functions.</p><pre><strong>const mongoose = require(&#39;mongoose&#39;);</strong></pre><pre><strong>module.exports = new mongoose.Schema({</strong></pre><pre><strong>author: String,</strong></pre><pre><strong>content: String,</strong></pre><pre><strong>title: String,</strong></pre><pre><strong>imageurl: String,</strong></pre><pre><strong>created_at: Date,</strong></pre><pre><strong>id: mongoose.Schema.ObjectId</strong></pre><pre><strong>})</strong></pre><h4>Db Connection</h4><p>At this point we need a middleware to connect and disconnect the database a certain point.</p><p>This middleware handles both connecting and disconnecting to a Mongolab database. The connection is achieved by passing a connection URL(<strong>req.webtaskContext.secrets.MONGO_URL)</strong> to the createConnection method</p><pre><strong>var mongoose = require(&#39;mongoose&#39;);</strong></pre><pre><strong>// import Story schema</strong></pre><pre><strong>const ArticleSchema = require(&#39;../models/Article&#39;)</strong></pre><pre><strong>module.exports = {</strong></pre><pre><strong>// Connect/Disconnect middleware</strong></pre><pre><strong>connectDisconnect: (req, res, next) =&gt; {</strong></pre><pre><strong>// Create connection using Mongo Lab URL</strong></pre><pre><strong>// available in Webtask context</strong></pre><pre><strong>const connection = mongoose.createConnection(req.webtaskContext.secrets.MONGO_URL);</strong></pre><pre><strong>// Create a mongoose model using the Schema</strong></pre><pre><strong>req.articleModel = connection.model(&#39;Article&#39;, ArticleSchema);</strong></pre><pre><strong>req.on(&#39;end&#39;, () =&gt; {</strong></pre><pre><strong>// Disconnect when request</strong></pre><pre><strong>// processing is completed</strong></pre><pre><strong>mongoose.connection.close();</strong></pre><pre><strong>})</strong></pre><pre><strong>// Call next to move to</strong></pre><pre><strong>// the next Express middleware</strong></pre><pre><strong>next()</strong></pre><pre><strong>},</strong></pre><pre><strong>}</strong></pre><p>The Connection url will be created from your terminal before deploying your functions.</p><h3>Express CRUD Routes</h3><p>We will be creating the various route to help handle all the API request.</p><pre><strong>var mongoose = require(&#39;mongoose&#39;);</strong></pre><pre><strong>const Article = require(&#39;../models/Article&#39;);</strong></pre><pre><strong>//Webtask funtions</strong></pre><pre><strong>module.exports = (app) =&gt; {</strong></pre><pre>//fetch all the articles from the db using a GET</pre><pre><strong>app.get(&#39;/articles&#39;, (req, res) =&gt; {</strong></pre><pre><strong>req.articleModel.find({}).sort({&#39;created_at&#39;: -1}).exec((err, articles) =&gt; res.json(articles))</strong></pre><pre><strong>});</strong></pre><pre>//Create new Article using a POST</pre><pre><strong>app.post(&#39;/articles&#39;, (req, res) =&gt; {</strong></pre><pre><strong>const newArticle = new req.articleModel(Object.assign({}, req.body, {created_at: Date.now()}));</strong></pre><pre><strong>newArticle.save((err, savedArticle) =&gt; {</strong></pre><pre><strong>res.json(savedArticle)</strong></pre><pre><strong>res.json(req.body)</strong></pre><pre><strong>})</strong></pre><pre><strong>})</strong></pre><pre>//Update articles from the db with {id} using PUT</pre><pre><strong>app.put(&#39;/articles&#39;, (req, res) =&gt; {</strong></pre><pre><strong>const idParam = req.webtaskContext.query.id;</strong></pre><pre><strong>req.articleModel.findOne({_id: idParam}, (err, storyToUpdate) =&gt; {</strong></pre><pre><strong>const updatedArticle = Object.assign(articleToUpdate, req.body);</strong></pre><pre><strong>updatedArticle.save((err, article) =&gt; res.json(article))</strong></pre><pre><strong>})</strong></pre><pre><strong>})</strong></pre><pre>//Delete an articles from the db with {id} DELETE<strong><br>app.delete(&#39;/articles&#39;, (req, res) =&gt; {</strong></pre><pre><strong>const idParam = req.webtaskContext.query.id;</strong></pre><pre><strong>req.articleModel.remove({_id: idParam}, (err, removedArticle) =&gt; res.json(removedArticle));</strong></pre><pre><strong>})</strong></pre><pre><strong>}</strong></pre><ul><li>GET: /articles route uses mongoose to fetch all the <strong>articles</strong> stored in the database and sort them by date created in descending order</li><li>POST: /articles is used to create a new <strong>article</strong></li><li>PUT: /articles gets an id query string which it uses to find <strong>article </strong>and updates the <strong>article</strong> based on the id reference</li><li>DELETE: /articles PUT, expects an id as well and removes an entry from the database collection based on the id</li></ul><p>Great</p><h4>Deploying your App</h4><p>We will now deploy our webtask functions. MONGOLAB-CONNECTION-URL should be replaced with your Mongolab DB URL.</p><pre>wt create index --secret MONGO_URL=&lt;MONGOLAB-CONNECTION-URL&gt; --bundle</pre><p>TEST your Webtask function with the return URL from your terminal. With POSTMAN or any other console of your choice.</p><p><a href="https://wt-e681794554391ac97c69e1539e0c67df-0.run.webtask.io/article-api/articles">https://wt-e681794554391ac97c69e1539e0c67df-0.run.webtask.io/article-api/articles</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DNTwakfQm5LedJR7EgGgag.png" /><figcaption>Articles returned from Postman</figcaption></figure><p>This API was actually consumed by Android using <a href="http://square.github.io/retrofit/">Retrofit Network Library</a>. Hope this helped.</p><p>Webtask is actually a great serverless backend tool.</p><p>See full source code <a href="https://github.com/Nsikaktopdown/ArticleApi-webtask-Android"><strong>here</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b06ff8a3141c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/droidplate/article-api-with-webtask-io-for-android-b06ff8a3141c">Serverless API Service with Webtask.io for Android</a> was originally published in <a href="https://medium.com/droidplate">DroidPlate</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build Android CI with Bitbucket Pipeline and HockeyApp Part 1]]></title>
            <link>https://medium.com/droidplate/build-android-ci-with-bitbucket-pipeline-and-hockeyapp-part-1-8e3b00c2a4ca?source=rss-a78b50beb64b------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e3b00c2a4ca</guid>
            <category><![CDATA[bitbucket]]></category>
            <category><![CDATA[continuous-integration]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Nsikak Thompson]]></dc:creator>
            <pubDate>Thu, 01 Feb 2018 01:30:45 GMT</pubDate>
            <atom:updated>2018-02-16T15:33:44.258Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d2YG1hKP7zav-p_KCFVcPg.png" /></figure><h4>Continuous Integration (CI) is the process of automating the build and testing of code every time a team member commits changes to version control.</h4><blockquote>“Continuous Integration doesn’t get rid of bugs, but it does make them dramatically easier to find and remove.”</blockquote><blockquote>— Martin Fowler, Chief Scientist, ThoughtWorks</blockquote><p>Configuring a CI can be tricky for Android apps. But let’s see how quick it is to build an Android app with Bitbucket Pipeline and deliver it with Hockey app.</p><h4>What is Bitbucket pipelines?</h4><p>Bitbucket Pipeline is a continuous integration service that Atlassian geniously integrate in their git solution Bitbucket last year. It’s based on Docker container technology and require only a YAML file to start using it.</p><h4>Create a Repo on Bitbucket</h4><p>To begin this process you should have a repository(hosting your Android project) on bitbucket. If you have one already Skip this step. For new users you have to sign up <a href="https://bitbucket.org/"><strong>here</strong></a></p><p>Click on the + button on the left Nav bar , Select-&gt;Repository</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DvcPF81XYWfk_G20Go2dqw.png" /></figure><p>Follow <a href="http://tech.chitgoks.com/2015/09/15/how-to-upload-android-studio-project-to-bitbucket/">here</a> to complete the process and have your Android project uploaded to your just created repo.</p><p>Yea!. back to the business of the day.</p><h3>Enable Bitbucket Pipeline</h3><p>To start using Bitbucket Pipeline, you simply need to go to your repository, and under the Pipeline menu , choose a language template. In this case Java(Gradle), then click on commit this will automatically create a YAML file to start with under your <em>master</em> branch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lHBMnUmKpp2uUorTg0VrfA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/931/1*UhvwzDs6GZWLcLf2vtdS1Q.png" /></figure><h4>Configure Docker</h4><p>Here you’ll need a Docker image to to build your app. It has to include your Android build environment to be able to compile it. To simplify it, Uber dev team created one for this purpose that you can use <a href="https://hub.docker.com/r/uber/android-build-environment/">here</a>.</p><p>For those familiar with docker, you can go ahead and create your own docker light image. incase you don’t need all packages included in the Uber image.</p><p>But for this post , we will be using the Uber image.</p><pre># — — — # You can specify a custom docker image from Docker Hub as your build environment.</pre><pre>image: uber/android-build-environment:latest</pre><pre>pipelines:</pre><pre>  default:</pre><pre>    — step:</pre><pre>      script: # Modify the commands below to build your repository.</pre><pre>        — echo “Start default step”</pre><pre>        — ./gradlew assembleDebug</pre><p><strong>NOTE:</strong></p><p>You build will fail if the YAML file is not right indented . So help handle this use <a href="https://bitbucket-pipelines.prod.public.atl-paas.net/validator"><strong>Bitbuck-pipeline validator</strong></a></p><p>First, I specify the image that is going to be used to build the app. Then by default, for any branches, it will execute commands. Here I build a debug APK using Gradle wrapper. Our continuous integration is ready!</p><p>Now we will create a build.sh file to house our reusable script. Make sure you give it the right permissions.</p><pre>#!/bin/sh<br><br><em># Add Android SDK license in a default file</em><br>mkdir &quot;${ANDROID_HOME}/licenses&quot; <strong>||</strong> true<br>echo &quot;8933bad161af4178b1185d1a37fbf41ea5269c55&quot; &gt; $ANDROID_HOME/licenses/android-sdk-license<br>echo &quot;d56f5187479451eabf01fb78af6dfcb131a6481e&quot; &gt; $ANDROID_HOME/licenses/android-sdk-license<br><br><em># Build the app</em><br>./gradlew assembleDebug</pre><p>To give the file the permission to execute . Run this on your terminal(Make sure your currently in the your project root folder)</p><pre>git update-index --chmod=+x build.sh</pre><p>Then check to see if it has 0755</p><pre>git ls-files --stage</pre><pre>100755 58b61dd2872df1ba7a0ad96f81e801a788c46502 0 build.sh</pre><p>Update the Bitbucket-pipeline.yml file to point to the build.sh file. This file contains your Android SDK license</p><pre># — — — # You can specify a custom docker image from Docker Hub as your build environment. <br>image: uber/android-build-environment:latest <br>pipelines: <br>   default: — step: script: # Modify the commands below to build your repository. <br>       - unset ANDROID_NDK_HOME # To unset the NDK env if not needed<br>       — echo “Start default step” <br>       — ./build.sh<br>       - echo &quot;Amazing&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MrnIsi8dHyk9FpePvmLwCg.png" /></figure><h4>Coooool!!!</h4><p>Our Continuous Integration build and test is Successful</p><p>once built and tested, for a specific branch, you can actually deploy it somewhere. That’s what we’re going to do with HockeyApp in the Part 2 of this post.</p><p>Thank you for reading. Please comment in case of any difficulty.</p><p>I will be glad to help.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e3b00c2a4ca" width="1" height="1" alt=""><hr><p><a href="https://medium.com/droidplate/build-android-ci-with-bitbucket-pipeline-and-hockeyapp-part-1-8e3b00c2a4ca">Build Android CI with Bitbucket Pipeline and HockeyApp Part 1</a> was originally published in <a href="https://medium.com/droidplate">DroidPlate</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What’s New in Kotlin 1.2.10]]></title>
            <link>https://medium.com/droidplate/whats-new-in-kotlin-1-2-10-a196a55ae74d?source=rss-a78b50beb64b------2</link>
            <guid isPermaLink="false">https://medium.com/p/a196a55ae74d</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[kotlin]]></category>
            <dc:creator><![CDATA[Nsikak Thompson]]></dc:creator>
            <pubDate>Wed, 24 Jan 2018 00:00:31 GMT</pubDate>
            <atom:updated>2018-01-24T00:00:31.147Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9br8CbqqSaRC0mCBjj_eiA.png" /></figure><p>The Kotlin 1.2.20 update release was announce on <em>January 17, 2018</em>, a new bugfix and tooling update for Kotlin 1.2.</p><p>This updates:</p><ul><li>Adds support for Gradle build cache</li><li>Improves incremental compilation for Android and mixed Kotlin/Java projects</li><li>Provides IDE support for the new Kotlin style guide</li><li>Adds inlay hints in the editor for implicit parameters and receivers of lambdas, as well as values returned from lambdas</li><li>Supports development mode in JavaScript DCE Gradle task</li><li>Introduces new inspections, performance improvements and bug fixes in the IntelliJ plugin</li></ul><p>The update is compatible with all versions of IntelliJ IDEA from 2017.1 until 2017.3, as well as with Android Studio 3.0 and 3.1 Canary.</p><h3>Compilation Performance Improvements</h3><p>Compilation performance continues to be a major focus for the kotlin team, and in this release we’ve mostly delivered improvements related to the Gradle plugin.</p><p>The first improvement is the support for <a href="https://guides.gradle.org/using-build-cache/">Gradle build cache</a>. If you’re using Gradle 4.3 or newer and the build cache is enabled (it’s not by default, requires --build-cache or org.gradle.caching=true), the plugin will reuse compilation results from previous executions of the Kotlin compile task. For example, if you build the master branch of your code, then switch to a different branch, build again, and switch back to master, the code will not be recompiled – previous results of master compilation will be reused.</p><p>Build caching for Kotlin annotation processors is disabled by default, because the dependencies of annotation processors cannot be tracked precisely by Gradle, so it may incorrectly reuse results of a previous execution of an annotation processors. To enable caching anyway, add the following lines to the build script:</p><h3>Kotlin Style Guide</h3><p>The <a href="http://kotlinlang.org/docs/reference/coding-conventions.html">new official Kotlin style guide</a>, covering the formatting of Kotlin code and the idiomatic use of language and library features was released also.</p><h4>Source File name</h4><ul><li>Kotlin file with single class should be named after the class name with the <strong>.kt</strong> extention appended to it.</li><li>If file contains multiple classes choose the name that best describes the file contain.</li><li>Use camel case with Upper case as the first letter e.g. ProcessDeclarations.kt</li></ul><h4>Class layout</h4><p>Generally, the contents of a class is sorted in the following order:</p><ul><li>Property declarations and initializer blocks</li><li>Secondary constructors</li><li>Method declarations</li><li>Companion object</li></ul><h4>Naming rules</h4><p>Names of classes and objects start with an upper case letter and use camel humps:</p><pre><strong>open</strong> <strong>class</strong> DeclarationProcessor { ... }<br><br><strong>object</strong> EmptyDeclarationProcessor : DeclarationProcessor() { ... }</pre><p>Get a full picture of the new style guide from <a href="http://kotlinlang.org/docs/reference/coding-conventions.html"><strong>here</strong></a></p><h4>Check for Update in Android Studio</h4><p>Kotlin update will alway pop up requesting for permission to install the lastest version on the kotlin plugin</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/469/1*VQS3ARywgJo3GBQDhCx60Q.png" /></figure><p>Reference</p><p><a href="https://blog.jetbrains.com/kotlin/2017/12/kotlinnative-plugin-update/">Kotlin/Native Plugin Update</a></p><p><a href="http://kotlinlang.org/docs/reference/coding-conventions.html">http://kotlinlang.org/docs/reference/coding-conventions.html</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a196a55ae74d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/droidplate/whats-new-in-kotlin-1-2-10-a196a55ae74d">What’s New in Kotlin 1.2.10</a> was originally published in <a href="https://medium.com/droidplate">DroidPlate</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>