<?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 Emmanuel  Ozibo on Medium]]></title>
        <description><![CDATA[Stories by Emmanuel  Ozibo on Medium]]></description>
        <link>https://medium.com/@emmanuelpromiseozibo?source=rss-f6b0c2f83f8d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*PiualTY7cV_IF0EnbhExlw.jpeg</url>
            <title>Stories by Emmanuel  Ozibo on Medium</title>
            <link>https://medium.com/@emmanuelpromiseozibo?source=rss-f6b0c2f83f8d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 06:37:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@emmanuelpromiseozibo/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[How to use android fingerprint API]]></title>
            <link>https://medium.com/@emmanuelpromiseozibo/how-to-use-android-fingerprint-api-4f719fb0308c?source=rss-f6b0c2f83f8d------2</link>
            <guid isPermaLink="false">https://medium.com/p/4f719fb0308c</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[fingerprint]]></category>
            <dc:creator><![CDATA[Emmanuel  Ozibo]]></dc:creator>
            <pubDate>Wed, 10 Jan 2018 07:16:28 GMT</pubDate>
            <atom:updated>2018-01-10T07:16:28.160Z</atom:updated>
            <content:encoded><![CDATA[<p>Starting from Android M, fingerprint api was released, this actually ease the stress of typing password,pins or even patterns..</p><p>In this article I will go through the basics on how to use fingerprint api..</p><p>Basically, fingerprint api is just another implementation of Cryptography,which is encrypting a message with a key..</p><p>For anyone to read the message, he has to decrypt the message with that key/his keys(depending on the configuration of the cryptography), to learn more about cryptography, you can follow this <a href="https://en.m.wikipedia.org/wiki/Cryptography">link</a>..</p><p>In Android, for you to make use of the fingerprint api, you have to also provide another security measure(thats is you will have to provide either a PIN, Password or pattern.So this implies that we have to check if there is any other security measures before we can use the fingerprint api..</p><p>So, let’s dive straight into it..</p><h4>Step 1:</h4><p>Create a new project and set the mini sdk to api level 23(your app can only work on Android 6.0 and above..Ask for Permission to use fingerprint print in appManifest.xml file</p><p>as</p><h4>Step 2:</h4><p>Before using the fingerprint api, we have to check if this three conditions are meet, these are:</p><ol><li>Check if there is another security measures(password,pin or pattern): this can be done by obtaining a reference of keyGuardManager.</li><li>Check if the fingerprint hardware is present: this can be done by obtaining a reference to the fingerprint manager class..</li><li>Check if there is at one fingerprint enrolled: this can also be done by getting a reference to the fingerprint manager class</li></ol><p>If this three conditions are meet, we are now ready to explore the fingerprint api.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/33055ae0bbca8470c5af5c0fa1309b81/href">https://medium.com/media/33055ae0bbca8470c5af5c0fa1309b81/href</a></iframe><p>Like I earlier said this is another implementation of cryptography, study this image below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/1*9f_IhygiyIrELYAMrwhy2g.png" /></figure><p>This is asymmetry cryptography, A system known as the cipher encrypts the the message with a key, when this message gets to the receiver, this same key is then use to decrypt the message.Two questions immediately comes to mind:</p><ol><li>How can we create a secure key</li><li>Where do we store that key for later use..</li></ol><p>Fortunately Android framework provides a keystore facility(to securely store our keys) and a keyGenerator mechanism..So we are going to first generate this keys, store them in the keystore before using this keys to create a cipher for encryption.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1b556f96bff758fb00d454f5e08fb54e/href">https://medium.com/media/1b556f96bff758fb00d454f5e08fb54e/href</a></iframe><h4>Step 3:</h4><p>To create a keyStore, we first get a new instance, you call a static method getInstance passing in the String parameter “AndroidKeyStore&quot;, this equally throws an exception so ensure u catch those exceptions.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1b556f96bff758fb00d454f5e08fb54e/href">https://medium.com/media/1b556f96bff758fb00d454f5e08fb54e/href</a></iframe><p>Also create an instance of the keyGenerator class, you do this by passing a key algorithm as the first parameter.</p><h4>Step 4:</h4><p>Load the keystore and also initialize the keyGenerator, You initialise keyGenetator by calling the init method and passing a keyGenParameterSpec object.a keygenParameterObject sets up some encryption parameters such as the purpose(encrption or decryption), the block modes(in this case I used CBC), also the encryption padding(i used PKCS7 padding)..All this parameters will be used to generate the keys..</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/456a68512d092d575cd78e3e62f30957/href">https://medium.com/media/456a68512d092d575cd78e3e62f30957/href</a></iframe><p>Finally create the key:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4d560e534bab5bf4d218eba538f6e49a/href">https://medium.com/media/4d560e534bab5bf4d218eba538f6e49a/href</a></iframe><h4>Step 5:</h4><p>Create the cipher object, you can do this by calling Cipher.getInstance() method and passing a string called the transformation(parameter used for encryption and this should correspond to the keyGenParameterSpec params)..the transformation string consists of three parts namely:The algorithm, the block and the padding(algorithm/block/padding)..After doing this, get the secrectKeys stored in the Android key store and initialise the cipher by calling the init method on the cipher object and pass the secret key as the second parameter..</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/58a425e81b9eca79671c4a085569a548/href">https://medium.com/media/58a425e81b9eca79671c4a085569a548/href</a></iframe><h4>Step 6:</h4><p>Create a CryptoObject using the cipher you just created, this CryptoObject will be passed into one of the overloaded constructor of FingerprintManager.CryptoObject class(other constructors accept Mac and Signature object).</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/690f9e74bd8e87dae152cfc3c77be0df/href">https://medium.com/media/690f9e74bd8e87dae152cfc3c77be0df/href</a></iframe><h4>Step 6:</h4><p>Create a FingerprintManagerHelper class that extends FingerprintManager.AuthenticationCallback, also override the onAuthenticationSuccreded and onAuthenticationFailed methods.. This class is where you make your Fingerprint authentication call, if the users fingerprint matches any fingerprint recorded on the device, then onAuthenticationSucceeded is called, if it doesn&#39;t match anyone onAuthenticationFailed is called..You can also override onAuthenticationError this allows you to handle any error(s) encountered during authentication..</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/26eee07e38f3f0a62993b11b6db76a37/href">https://medium.com/media/26eee07e38f3f0a62993b11b6db76a37/href</a></iframe><p>So, you can now handle any other authentication logic in onAuthenticationSucceeded method..This will be all for now, to get the full demo code follow this:</p><p><a href="https://github.com/Emeecodes01/fingerprint-api-demo">Emeecodes01/fingerprint-api-demo</a></p><p>You can also check out the official documentation of fingerprint Api <a href="https://developer.android.com/reference/android/hardware/fingerprint/FingerprintManager.html">here</a>.</p><p><strong>Thank you</strong>….</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f719fb0308c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Basic I/O in Java.]]></title>
            <link>https://medium.com/@emmanuelpromiseozibo/basic-i-o-in-java-4a721abe6a?source=rss-f6b0c2f83f8d------2</link>
            <guid isPermaLink="false">https://medium.com/p/4a721abe6a</guid>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Emmanuel  Ozibo]]></dc:creator>
            <pubDate>Sun, 01 Oct 2017 18:03:12 GMT</pubDate>
            <atom:updated>2017-10-01T18:03:12.355Z</atom:updated>
            <content:encoded><![CDATA[<p>Firstly, what is I/O? These are classes that helps you perform input and output operations in your computer..</p><p>So in this lesson I won’t go into the Java.io package I will only explain the basic part..</p><p>In one of the previous lessons we looked at writing hello, world from the command prompt..I will explain what some of those code do..</p><pre>public class HelloWorld {<br><br>    public static void main(String[] args){<br>        System.<em>out</em>.print(&quot;Hello, World&quot;);<br>    }<br>}</pre><p>Whenever you write code, You run it inside the main method..As you see The code that produce Hello, World was written inside the main mathod..</p><pre>System.out.println(&quot;Hello, world&quot;);</pre><p>The code above is one aspect of basic input in java, so let me explain how,The word “System” is your computer, also the word “out” means you want to get something out of your computer..the other last word there is “println(“ hello, world”) this is a method(methods performs a task) so the println() method prints out anything you put inside its brackets..All this joined together is called a statement and in java every statement ends with a semi colon(;)..When you combine all I explained, you can say that the function of that statement above is to print out something(what ever you put inside the brackets) on the screen..</p><p>You can move over to your IDE and run the code, you will see that it will print out hello, world on the screen..This is the basic output in java..</p><p>Now, we already know how to print something out on the screen.The question now is how can I receive input from the keyboard? This is also very simple</p><pre>public static void main(String[] args){<br>    Scanner scanner = new Scanner(System.<em>in</em>);<br>    System.<em>out</em>.println(&quot;Enter your name&quot;);<br>    String myName = scanner.nextLine();<br>    System.<em>out</em>.println(&quot;Enter your age&quot;);<br>    int age = scanner.nextInt();<br>    System.<em>out</em>.println(&quot;My Name is &quot; + myName + &quot;, I am&quot; + &quot; &quot; + age +&quot; Years old&quot; );<br>}</pre><p>Scanner is a class in java scans input from the keyboard, from the code snippet above, nextLine() takes only String(words), nextInt() takes in only integers(1, 2, 3, 4 ……)form the keyboard..</p><p>if you run the code above it will create something like this</p><blockquote><em>My Name is Emmanuel, I am 10 Years old</em></blockquote><p>So, That’s all for this lesson, Check out the practice questions below:</p><ol><li>Exercise 2.18</li><li>Write a simple program that can take two integer from the user, adds them up and then print the result…</li><li>You can still try out other exercise from the book..if you have any problem message me..</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a721abe6a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lesson 3: Setting up your IDE]]></title>
            <link>https://medium.com/@emmanuelpromiseozibo/lesson-3-setting-up-your-ide-bcff47d54ebd?source=rss-f6b0c2f83f8d------2</link>
            <guid isPermaLink="false">https://medium.com/p/bcff47d54ebd</guid>
            <category><![CDATA[intellij]]></category>
            <dc:creator><![CDATA[Emmanuel  Ozibo]]></dc:creator>
            <pubDate>Mon, 25 Sep 2017 05:52:18 GMT</pubDate>
            <atom:updated>2017-09-25T05:52:18.702Z</atom:updated>
            <content:encoded><![CDATA[<p>IDE means integrated development environment.</p><p>IDEs makes development easy for programmers,it also increase their productivity. some benefit of using IDEs are:</p><ol><li>Most IDEs simplify programming by helping you complete syntax.</li><li>It helps debug your code(find logical errors in your code)</li><li>It makes coding fun by syntax highlighting(colors your code)</li><li>It runs programs by just hitting a button..</li></ol><h4>How does an IDE looks?</h4><p>This is a screenshot of my Android studio IDE(Used for making android Apps)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u9u_OaC5CYqPVv7j7PDJ2Q.png" /></figure><p>There are different IDEs used for Java programming some are:</p><ul><li>Netbeans</li><li>IntelliJ IDEA</li><li>BlueJ</li><li>jEdit</li><li>Eclipse</li></ul><p>But throughout out this program I will be using intelliJ IDEA(which happens to be my favourite).you can check out the <a href="https://www.jetbrains.com/idea/features/">preview here</a></p><p>To get this installed in your computer you have to download it using this <a href="https://www.jetbrains.com/idea/download/">Link</a>,select your os and download the community version or if you have more money to pay for the ultimate you can 😀..</p><p>Download and set it up..you can message me to tell you how to change your theme to dark and also how to make it prettier..</p><p>In case you have any problem during the installation also message me…</p><p>That will be all for now.. Good luck</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bcff47d54ebd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lesson 2: Hello World straight from the command prompt]]></title>
            <link>https://medium.com/@emmanuelpromiseozibo/lesson-2-hello-world-straight-from-the-command-prompt-82abda51f687?source=rss-f6b0c2f83f8d------2</link>
            <guid isPermaLink="false">https://medium.com/p/82abda51f687</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[command-prompt]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Emmanuel  Ozibo]]></dc:creator>
            <pubDate>Mon, 25 Sep 2017 05:49:03 GMT</pubDate>
            <atom:updated>2017-09-25T07:28:20.532Z</atom:updated>
            <content:encoded><![CDATA[<p>If you already have java installed in your computer you can follow this lesson but if you don’t follow <a href="https://medium.com/@f6b0c2f83f8d/b8629bf4d6bc">this link</a> to get it installed</p><p>A command prompt is a windows os tool that is used to execute command (such as opening a file)..its equivalent in other operating systems are Terminal for Mac os or Shell in Linux..</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*RQuu54q3NaTyZkbFEypvKA.png" /></figure><p>In this lesson we are going to run java programs using the command prompt, this is aimed at making you understand how java executes programs.</p><p>Let me first outline how java executes programs, Java executes programs following these five steps:</p><ul><li>Edit</li><li>Compile</li><li>Load</li><li>Verify</li><li>Execute</li></ul><h4>Step 1:</h4><p>Edit: This simply means to write the program, This writing program Is know as source code..there are several tools to do this, we have:</p><ol><li>TextEdit for Mac</li><li>Notepad or Notepad++ for windows</li><li>Emacs for Linux</li><li>Or you can use an IDE(Integrated development environment) such as eclipse, netbeans or inteliJ IDEA..I will explain how to set up an IDE in the next lesson..</li><li>Other text editors such as sublime</li></ol><p>I am working from a windows computer so I will be using Notepad.. All windows users should have this already installed in their computers..</p><p>Firstly, you will create a new folder called Java Programs</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/522/1*rXhE7BRFtrQPa2HuIpvpPw.png" /></figure><p>Open the folder and create a new file, name it Hello.java. Notice the file extension name(.java) this tells your computer that this file is a java file..</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/860/1*HeWPNRxmIqP2M4yj8goLjA.png" /></figure><p>Whatever program you are writing should be in this java file..</p><p>Copy and paste this code snippet into your Hello.java file..I will explain in future lesson what each of them actually does..</p><p>Follow this <a href="https://gist.github.com/Emeecodes01/59815b4ef198386380fb66b61bd4927e">LINK</a> to see the code</p><p>That’s it for the editing step..</p><h4>The question: How does java turn this source code into program?</h4><h4>Step 2:</h4><p>Java is a complied language, what this means is that any program you write will first be complied/broken down into bytecode(This is a .class file).The java compiler(javac) is responsible for this..A part of the java jdk is the JVM(java virtual machine) what the JVM does is that it reads this bytecode(.class file) and executes the program..</p><h4>How do we practically compile a program?</h4><p>Using the command prompt:</p><ol><li>Open the command prompt</li><li>type ‘cd desktop’ to enter into the desktop directory,click enter</li><li>Type ‘cd Java Program&#39; to enter into the folder</li><li>Type ‘javac Hello.java’(this tells the java compiler to compile Hello.java file into bytecodes) if the compilation is successful, a bytecode file(.class file)will be created..</li><li>Type ‘java Hello’(This tells the java virtual machine to read the bytecode file called Hello..</li><li>If this works out fine you should see Hello, world!!printed on the command prompt..</li></ol><p>Note that the java virtual machine is responsible for compile, load, verify and execute stage..</p><h3>Congrats you have just run your first java program</h3><h4>please let me know how you fell about this lesson In the comments session…Thanks</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=82abda51f687" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lesson 1: Setting up your Java jdk]]></title>
            <link>https://medium.com/@emmanuelpromiseozibo/lesson-1-setting-up-your-java-jdk-b8629bf4d6bc?source=rss-f6b0c2f83f8d------2</link>
            <guid isPermaLink="false">https://medium.com/p/b8629bf4d6bc</guid>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Emmanuel  Ozibo]]></dc:creator>
            <pubDate>Mon, 25 Sep 2017 05:34:22 GMT</pubDate>
            <atom:updated>2017-09-25T05:34:22.392Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/212/1*5P1-QRhGkHPV_kEWEGPzhQ.jpeg" /></figure><h4>What is JDK?</h4><p>JDK stands for Java development kit, This is what you need to run java programs..</p><p>The jdk also contains Java APIs(java Application programming interface) which are packages that contains pre defined classes(For now don’t worry about what a class or package is, you will understand them in future lessons but let me try to explain somethings)..</p><p>An example of a Java package is Java.lang package, one of the classes in this package is the Math class this helps you to do some mathematical computation such as square root, exponentials etc..</p><p>Another package in the java.utils, one of the classes is the Date class which helps you to manipulate date in Java</p><p>With these examples I am sure you will have an idea of what java APIs are..</p><h4>Steps to download and install Java JDK</h4><ol><li>Download the Java jdk <a href="http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html">here</a> you will find several downloading options choose the one that suits your computer.. I am using a windows 32bits computer so I will choose “windows x86&quot; option..</li><li>Follow the installation prompt and install it..</li><li>If you are done installing you can test it by opening the command prompt and type the following command ‘java -version’ This command should result to this:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*Z0jxBbbXY4xpHF855keyVA.png" /><figcaption>command prompt</figcaption></figure><p>That’s it!!!! you have installed java development kit on your computer, so can start writing code..</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*7lCILb2po9XEPwawtdjyhg.gif" /><figcaption>Geek</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b8629bf4d6bc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Retrofit more than just an API Client]]></title>
            <link>https://medium.com/@emmanuelpromiseozibo/retrofit-more-than-just-an-api-client-dd074faab48a?source=rss-f6b0c2f83f8d------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd074faab48a</guid>
            <category><![CDATA[api-client]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[retrofit]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[rest]]></category>
            <dc:creator><![CDATA[Emmanuel  Ozibo]]></dc:creator>
            <pubDate>Fri, 22 Sep 2017 21:26:12 GMT</pubDate>
            <atom:updated>2017-10-07T04:46:39.451Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/297/1*K7pcpfqfdMoEULpTUYJXKw.jpeg" /><figcaption>image credit <a href="http://shaoniiuc.com/category/android/">Android Archives — Coding Hunt</a></figcaption></figure><p>In this article i will be talking about how you can use retrofit to connect your Android app to the internet to get data..</p><p>Most Android App rely on receiving data form the internet, Retrofit provides a very convenient and easy way to do that..</p><p>Retrofit is a REST Api Client for Android and Java it is developed by Square.it sends its request with OkHTTP(Which is also developed by square)..Retrofit makes it easy to upload or recieve JSON(or XML Data)via Rest request..This JSON data is then converted into Pojos which can then be used anywhere in your program..</p><h4>Setting up your project to use retrofit</h4><ul><li>add the following dependancies to your app level build.gradle file</li></ul><pre>//retrofit dependency<br>compile &#39;com.squareup.retrofit2:retrofit:2.3.0&#39;<br>//Gson converter<br>compile &#39;com.squareup.retrofit2:converter-gson:2.3.0&#39;<br>//ok http dependency(This is compulsory if you are using retrofit below 2.0)<br>compile &#39;com.squareup.okhttp3:okhttp:3.9.0&#39;</pre><ul><li>Request for internet permission in your AndroidManifest.xml file</li></ul><pre>&lt;uses-permission android:name=”android.permission.INTERNET”/&gt;</pre><ul><li>Sync your project(Ensure you are connected to the internet)</li></ul><p>You need three java classes, These are:</p><ol><li>Model Class</li><li>Api Interface</li><li>Retrofit instance class</li></ol><p>So let me explain each of these classes further and also show some code snippet.</p><h4>Model class</h4><p>The model class should be constructed in such a way that it will have fields which corresponds to the data received from the REST request..so this means that you have to know the schema/sample of the data you will get after the API call..lets say we have a json data like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/739/1*4pj1bIwdLRUkDl1Jg-z9hA.png" /></figure><p>To create a model class for this json data, you can follow this simple rule:</p><ul><li>every key-value pair is a field(This field must be public and the type should correspond to the type in the json data.</li><li>every json object is a java class</li><li>every json array is a java list (List&lt;T&gt;)</li></ul><p>after doing this you should get a result like this</p><p>N:B ResultList is another class that represent a json object. You can also include getters and setters.</p><pre>public class MovieResponse{<br>    @SerializedName(&quot;page&quot;)<br>    public int page;<br>    @SerializedName(&quot;total_results&quot;)<br>    public int results;<br>    @SerializedName(&quot;total_pages&quot;)<br>    public int pages;<br>    @SerializedName(&quot;results&quot;)<br>    public List&lt;ResultList&gt; resultListList;</pre><pre>}</pre><h4>Api Interface</h4><p>This is an interface that contains methods that represent each API Call that you want to make. It must have a HTTP annotation (GET, POST, etc.) to specify the request type and the relative URL.The parameter of this method gives the remaining part of the URL(Such as path, query params)..The return type of this method should be a java model that corresponds to the JSON data recieved when you make the API call..look at the code snippet below</p><pre>public interface ApiInterface{<br>    <em>/**<br>     * movie/popular is the api end point <br>     * </em><strong><em>@param </em></strong><em>apiKey is the your api key from the site(not compulsory)<br>     * */<br>    </em>@GET(&quot;movie/popular&quot;)<br>    Call&lt;MovieResponse&gt; getPopularMovies(@Query(&quot;api_key&quot;) String apiKey);<br>}</pre><h4>Retrofit Instance class</h4><p>This class contains a static method with the return type retrofit, this method is used to construct a retrofit object..See the code snippet below</p><pre>public class RetrofitInstance {<br>    public static final String <em>BASE_URL </em>= &quot;https://api.themoviedb.org/3/&quot;;<br><br>    <em>/**<br>     * This client class i added some codes to increase the connection time out<br>     * */<br>    </em>private static OkHttpClient getClient(){<br>        OkHttpClient.Builder builder = new OkHttpClient.Builder()<br>                .connectTimeout(60, TimeUnit.<em>SECONDS</em>)<br>                .readTimeout(60, TimeUnit.<em>SECONDS</em>);<br>        return builder.build();<br>    }<br><br>    <em>/**<br>     * This return the retrofit instance<br>     * */<br>    </em>public static Retrofit getRetrofit(){<br>        Retrofit.Builder builder = new Retrofit.Builder()<br>                .baseUrl(<em>BASE_URL</em>)<br>                .addConverterFactory(GsonConverterFactory.<em>create</em>())<br>                .client(<em>getClient</em>());<br>        return builder.build();<br>    }<br>}</pre><h4>The last But not the least Connecting everything together</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/287/1*7BF3DrMlqFAS-mmDIKoFNw.jpeg" /><figcaption>photo credit <a href="https://www.linkedin.com/pulse/happiness-kyle-morgan">Happiness | Kyle Morgan | Pulse | Linked</a></figcaption></figure><p>This a very simple code, and you do this were you need the data, it might be in your activity, fragment, or presenter class(if you are using MVP design pattern)..code snippet below</p><pre>ApiInterface apiInterface = RetrofitInstance.<em>getRetrofit</em>().create(ApiInterface.class);<br>Call&lt;MovieResponse&gt; responseCall = apiInterface.getPopularMovies(&quot;put your api key here&quot;);<br>responseCall.enqueue(new Callback&lt;MovieResponse&gt;() {<br>    @Override<br>    public void onResponse(Call&lt;MovieResponse&gt; call, Response&lt;MovieResponse&gt; response) {<br>        MovieResponse movieResponse = response.body();<br>        populateViews(movieResponse);<br>    }<br><br>    @Override<br>    public void onFailure(Call&lt;MovieResponse&gt; call, Throwable t) {<br>        Toast.<em>makeText</em>(MainActivity.this, &quot;Sorry something went wrong Try again&quot;, Toast.<em>LENGTH_LONG</em>).show();<br>    }<br>});</pre><p>To get the full code for this article follow the link below:</p><p><a href="https://github.com/Emeecodes01/Retrofit-Demo">Emeecodes01/Retrofit-Demo</a></p><p>This is all for now, Thanks..Watch out for my next article on MVP Architectural pattern for Android..</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd074faab48a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Keynote/welcoming message]]></title>
            <link>https://medium.com/@emmanuelpromiseozibo/keynote-welcoming-message-5bcd854adf16?source=rss-f6b0c2f83f8d------2</link>
            <guid isPermaLink="false">https://medium.com/p/5bcd854adf16</guid>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Emmanuel  Ozibo]]></dc:creator>
            <pubDate>Thu, 21 Sep 2017 14:56:25 GMT</pubDate>
            <atom:updated>2017-09-21T18:03:21.615Z</atom:updated>
            <content:encoded><![CDATA[<p>Good evening everyone, hope your day was awesome.. I will start by introducing myself my name is Emmanuel Ozibo..I am a student of university of Benin(UNIBEN), Department of mechanical Engineering..I do Android/Java programming..</p><p>I started Java programming back in February 2016, it wasn’t really easy when I started, this is because I was completely new to programming and I don’t have anyone to really guide or coach me, so for some months I was just lost in the Forest of knowledge I don’t know which way to go, no one to tell me what to do so I found myself memorising codes(which is not good in programming)..</p><p>After few months I started getting the light, I started finding my way through that forest, I started understanding the concepts of Java programming, things like: why we use methods and classes, I began to understand Object oriented programming (OOP)..</p><p>What I want you all to get is that assuming I had someone that guided me I would have learnt Java programming faster.. There are key things in programming that you must know to become Good at it, without knowing all these things you will just find yourself memorising things..</p><p>What this program is all about is to create that platform where I(and some other people) will guide you guys/ladies through this language called Java.</p><p>We will be starting officially next week Monday this is to enable me get more people into the program so they can still benefit from it..</p><p>Although this period I will be writing some blog post and also referring you to materials/video series that will help you learn faster, I will also be inviting some people like Samson Goddy — a Nigerian teenager who has traveled to different countries to give talks on programming.This will help motivate you guys to keep pushing..</p><p>I will also be answering all your questions as regards to Java programming so fell free to contact me anytime via WhatsApp or slack..</p><p>I planed this program to run for 6 weeks and afterwards I will start another one just for Android programming so that you can apply your java skills to start building Android apps..</p><h3>Rules</h3><ol><li>Do not post things not related to computer programming..</li><li>Always use DM for private conversation</li></ol><p>WhatsApp won’t be our permanent home we will be moving to a move conducive environment.. It is called SLACK you will have to send me your emails via DM so that I can send an invite to you..</p><p>Alright people this will be all for now and I can’t wait to start seeing you guys “geeking” down Code..Good night all..</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5bcd854adf16" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to Java programming language]]></title>
            <link>https://medium.com/@emmanuelpromiseozibo/introduction-to-java-programming-language-41b435725358?source=rss-f6b0c2f83f8d------2</link>
            <guid isPermaLink="false">https://medium.com/p/41b435725358</guid>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Emmanuel  Ozibo]]></dc:creator>
            <pubDate>Wed, 20 Sep 2017 23:36:25 GMT</pubDate>
            <atom:updated>2017-09-20T23:37:02.167Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/337/1*vbzan78Lg1bFMIOSmhcHnA.png" /></figure><p>Before I go into Java programming, let me explain what programming is all about..</p><p>From Oxford advanced learners dictionary programming is defined as:</p><blockquote>The process of writing and testing programs for computers</blockquote><p>So the question now is, what is a program? In my own words,</p><blockquote>A program is a set of instruction a computer executes in order to carry out a task</blockquote><p>A task can be telling your computer to add two numbers or to play a music or to open a video file..so in this case, the process involved in telling your computer to play a music or to add two numbers is know as programming.</p><p>So,</p><blockquote>Programming is the process of sending instructions to your computer in order for it to perform a task..</blockquote><p>From the explanation giving above, it means that programming is all about talking to a computer and making it do some work..</p><p>Humans have different language to communicate with(Igbo, French, Hindi etc)in the same way computers also have different languages some of them are:</p><ol><li>Java</li><li>Python</li><li>Ruby</li><li>JavaScript</li><li>PHP</li></ol><p>The list just keep going…</p><p>So in this series I will be walking you through the basis of Java programming language…</p><p>I want to make this article as short as possible so I won’t be explaining so much about computers and programming , but if you still wish to learn more about that you can use this link <a href="https://medium.freecodecamp.org/a-gentler-introduction-to-programming-707453a79ee8">https://medium.freecodecamp.org/a-gentler-introduction-to-programming-707453a79ee8</a></p><p>Alright, you have learnt a lot already if you follow that link..This is the content I will be working with:</p><h3>Contents</h3><ol><li>Introduction to Java programming</li><li>Hello, world program form the command prompt</li><li>Installing and working form your IDE</li><li>Variables and data types</li><li>Control flows</li><li>Methods</li><li>Classes</li><li>Concept of inheritances (OOP)</li><li>Polymorphism and interfaces</li></ol><h3>SO NINJAS LET THE JOURNEY BEGIN</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/225/1*ItnQp0CsEvuQ4-ASF3Y7SA.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41b435725358" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>