<?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 Damilola Omoyiwola on Medium]]></title>
        <description><![CDATA[Stories by Damilola Omoyiwola on Medium]]></description>
        <link>https://medium.com/@princessdharmy?source=rss-68a2b16fc497------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*uvWmnioVnVy_B3hFKgLJDw.jpeg</url>
            <title>Stories by Damilola Omoyiwola on Medium</title>
            <link>https://medium.com/@princessdharmy?source=rss-68a2b16fc497------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 17:01:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@princessdharmy/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[Installing Windows 11 on MacBook M1 (ARM64)]]></title>
            <link>https://princessdharmy.medium.com/installing-windows-11-on-macbook-m1-arm64-e1e7e0f52ce0?source=rss-68a2b16fc497------2</link>
            <guid isPermaLink="false">https://medium.com/p/e1e7e0f52ce0</guid>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[virtualisation]]></category>
            <category><![CDATA[mac]]></category>
            <category><![CDATA[windows-11]]></category>
            <category><![CDATA[pentesting]]></category>
            <dc:creator><![CDATA[Damilola Omoyiwola]]></dc:creator>
            <pubDate>Sun, 16 Apr 2023 17:47:16 GMT</pubDate>
            <atom:updated>2023-04-16T17:47:16.739Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9ytWwUBeAmb1WsE4vlNGAg.png" /><figcaption>Windows 11 Virtual Machine on UTM</figcaption></figure><p>Recently, I needed to set up a few virtual machines (VMs) on my Mac M1 and Windows 11 happened to be part. The very first virtualisation product that I learnt about was <strong>VirtualBox</strong>. While I tried to install Kali Linux—as my first VM setup, I ran into issues. I did extensive research but to no avail. Then, I discovered M1 does not support <strong>VirtualBox</strong> but <strong>UTM.</strong></p><p>Let’s understand a few terminologies before delving into the installation process.</p><blockquote>UTM<br>Employs Apple’s Hypervisor virtualization framework to run ARM64 operating systems on Apple Silicon at near-native speeds. It lets you run Windows 10 or higher, Ubuntu, or macOS(*) fully virtualized with maximum performance.</blockquote><blockquote>QEMU<br>A machine emulator that can run operating systems and programs for one machine on a different machine. It uses the hardware virtualisation technology to virtualise guests.</blockquote><p>*In short, <strong>UTM is the GUI on top of QEMU for MacBooks</strong>.</p><h3>Overview</h3><p>We need these in order to get Windows 11 running as a virtual machine:</p><ol><li>Homebrew</li><li>QEMU</li><li>UTM</li><li>Windows 11 VHDX Image</li><li>Create the Windows 11 VM</li></ol><h3>1. Installing Homebrew</h3><p><strong>Note</strong>: If you have HomeBrew installed, kindly proceed to the next step.</p><p>Open your Terminal and paste the following to install <a href="https://brew.sh/">Homebrew</a>:<br>/bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&quot;</p><h3>2. Installing QEMU</h3><p>Once the Homebrew installation is done, paste the following into your Terminal: brew install qemu to install QEMU.</p><h3>3. Installing UTM</h3><p>Download the UTM .dmg file from the <a href="https://mac.getutm.app/">official website</a>. Clicking the <strong>Download</strong> button gives you the free version while <strong>Mac App Store</strong> offers it at a price.</p><figure><img alt="UTM official website" src="https://cdn-images-1.medium.com/max/1024/1*TZMsUM9GmSzaVc9dIF_9_Q.png" /><figcaption>UTM Official Website</figcaption></figure><p>Double-click the downloaded file and drag the icon into the Application icon. The installation will then, proceed.</p><h3>4. Downloading Windows 11 VHDX Image</h3><p>There are a few resources where Windows 11 VHDX images can be downloaded but trust me, I found the official website more reliable and easier once you follow the process.</p><ol><li>Make sure to register for the <a href="https://insider.windows.com/en-us/getting-started"><strong>Windows Insider Program</strong></a></li><li>Once the above step is done, click <a href="https://www.microsoft.com/en-us/software-download/windowsinsiderpreviewARM64">here</a> to download the <strong>Windows Insider Preview ARM64</strong></li></ol><ul><li>On the page, the default download tip is to select the <strong>Dev Channel</strong> version but in <a href="https://blogs.windows.com/windows-insider/2023/03/06/whats-coming-for-the-windows-insider-program-in-2023/">this article</a>, it is advised to select the <strong>Canary Channel</strong>. Thanks to <a href="https://gist.github.com/wrmack/29d580a0bd665bace21609d5ef675ba1?permalink_comment_id=4499979#gistcomment-4499979">@wrmack</a> for pointing this out.</li><li>Confirm the Product Language</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ygvTLt6qJJrkakRh31Z71g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zR-pKX8qmohr57Z0eG3ahw.png" /></figure><p><strong>Note</strong>: the image size is pretty large—about 10GB. 👀</p><h3>5. Creating Windows 11 VM on UTM</h3><p>Now, this is the real deal but please calm down 😅. I will attach images to most of the steps for better visualisation and understanding.</p><ol><li>Launch your UTM application, and click “<strong>Create a New Virtual Machine”</strong>.</li><li>Select “<strong>Virtualize”</strong></li><li>Select “<strong>Windows”</strong> as the Operating System</li><li>Make sure <strong>“Install Windows 10 or higher”</strong> and <strong>“Install drivers and SPICE tools”</strong> are checked as shown below.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*UQp1Ii31tr-5l-K2MUpNeA.png" /></figure><p>Check the <strong>“Import VHDX Image”</strong>. Make sure to add the path to the downloaded Windows 11 VHDX file.</p><p>5. Increase your Memory to 4GB: 4096MB if not done automatically. Leave the CPU Cores to <em>Default</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/888/1*_K4FHU4HJW085NbbSa6pDg.png" /></figure><p>6. Leave the Shared Directory as it is. If needed, it could be modified on the Settings page later.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/876/1*gYpTFPVNAjnRnagOKhVHCg.png" /></figure><p>7. Rename your VM and check the <strong>“Open VM Settings”,</strong> click <strong>“Save”</strong> to create the VM, and this will immediately open the settings page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*9ONOOEs5hyw0xoRN40nRRw.png" /></figure><p>8. Make sure the contents of the images below conform with what you have especially in the <em>System, QEMU, Display, Network,</em> and <em>Drives </em>tabs. Click <strong>“Save”</strong> when you are done.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PEDgzYUNy7cJH7lrh9PHjA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RaU4hYQhihe3Sst2_mjYOA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LSQSpx10gyGKR7vJ5Y2OGg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gIuxf35_W3CpNwcMifsd8w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mzLx2AJ_JymFR1MFFeftFA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EZ7XP3y95EFZ7ZQ-P_fbKQ.png" /></figure><p>⚠️ While Windows 11 is being installed, to avoid being stuck on the page below, please consider step 9 very carefully.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TerPTv4KUh-vooMv0KVHUg.png" /></figure><p>9. Click the play icon to start the VM.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6sYb9x9vdTKZZD8OhlLIQA.png" /></figure><p>Once the VM starts to boot,</p><ul><li>press Shift + fn + F10 to launch the <strong>Terminal</strong></li><li>type cd oobe, press enter</li><li>type bypassnro, press enter</li></ul><p>You should see <strong><em>Operation was completed successfully</em></strong> in a flash while the Terminal exits.</p><p><strong>Note</strong>: This would show this screen while installing Windows 11 👇 and you would have the option to skip the <strong>Network Connection</strong> step. When you get to this screen, just click the <strong>“I don’t have internet”</strong> option to proceed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n5HrWG33sLOdaE-cO3Ma0Q.png" /></figure><p>10. When the Terminal exits, it will reboot and start the Windows 11 installation process. Follow the on-screen instructions.</p><p>Hmmm… Well done! 👏 👏</p><p>Once Windows 11 has been successfully installed, open your Microsoft Edge browser to see if you can access the internet. As seen below, mine did not connect.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fBzyyOlmZgdmE-1K2ZvLsg.png" /></figure><p>So, this takes us to install the SPICE tools that were initially mounted during the creation of the VM. You can find it here as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JB1JCOAZo-_kk6Vpm64FsA.png" /></figure><p>Click the <em>Application</em> file—mine is spice-guest-tools-0.164 to install it. Follow the on-screen instructions.</p><p>Check back your browser and you will have access to the internet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QMB01SO9Is9mQ6rdG19iSA.png" /></figure><p>Yay! 💃 💃 We have completed the installation of the Windows 11 VM on UTM.</p><h3>Possible Problems</h3><p>I would not say this process was as easy as it is written because I encountered several issues and retried the whole VM creation 3 times before it was a success.</p><ol><li>If you see this page during the installation, it means you had an oversight in the warning stated above. 😃 Kindly check back on Step 9 to fix it. However, you would definetly need to delete the VM and start the process again. 🤦‍♀</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TerPTv4KUh-vooMv0KVHUg.png" /></figure><p>2. This page shows up after VM creation once you start the VM. Close the VM, and make sure that the <strong>virtio-ramfb-gl (GPU Supported)</strong> is selected under <em>Display</em> tab in Settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GcgOZiMTY1WNJf_Bhrc4Pw.png" /></figure><p>3. This page also shows up after VM creation once you start the VM. Close the VM, and make sure that the <strong>UEFI Boot</strong> is checked in <em>QEMU</em> tab in Settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e6uateN8yErHYel9J7J-rA.png" /></figure><p>4. While I tried to follow the whole process on another MacBook M1, I encountered this error after the bypassnro operation on terminal:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KSTrnMYnk6WWvKCff1LUHw.png" /></figure><p><strong>Fix</strong>:</p><ul><li>click OK. Then, stop the VM and restart it</li><li>while booting, press Shift + fn + F10 to launch the <strong>Terminal</strong></li><li>type regedit , press enter and the image below will show up</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WyEjRyOlPNOWmRPS3iFoxQ.png" /></figure><p>Make sure to open the right directory:<br>HKEY_LOCAL_MACHINE/SYSTEM/Setup/Status/ChildCompletion</p><ul><li>double-click the setup.exe and change any value to <strong>3</strong>, click OK</li><li>close the Registry Editor and terminal, then, click OK on the error page to exit it</li><li>the windows will now boot properly</li></ul><p>You could join the <a href="https://discord.gg/Dx2fhUdj4q">UTM Discord</a> community if you have any issue—aside the ones noted in this article—in order to get help.</p><h3>Reference</h3><p><a href="https://www.youtube.com/watch?v=FWT5RGt26Ag&amp;t=1s">https://www.youtube.com/watch?v=FWT5RGt26Ag&amp;t=1s</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e1e7e0f52ce0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Would you keep the loop running?]]></title>
            <link>https://princessdharmy.medium.com/would-you-keep-the-loop-running-5fa3fa163773?source=rss-68a2b16fc497------2</link>
            <guid isPermaLink="false">https://medium.com/p/5fa3fa163773</guid>
            <category><![CDATA[ecosystem]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[mentorship]]></category>
            <dc:creator><![CDATA[Damilola Omoyiwola]]></dc:creator>
            <pubDate>Sat, 31 Jul 2021 19:57:01 GMT</pubDate>
            <atom:updated>2021-07-31T23:21:33.626Z</atom:updated>
            <content:encoded><![CDATA[<iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FieaUdBJJC19uw%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FieaUdBJJC19uw%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FieaUdBJJC19uw%2Fgiphy-downsized-large.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="326" frameborder="0" scrolling="no"><a href="https://medium.com/media/8e2b515690ba1cf373f9f099025fbc05/href">https://medium.com/media/8e2b515690ba1cf373f9f099025fbc05/href</a></iframe><p>They look out for the experienced<br> but do not embark on training or internship<br> they keep bouncing the interested and passionate<br> just the opportunity needed to prove their ability</p><p>They strove to meet up with requirements<br> struggled to get mentored<br> or perhaps, trained independently</p><p>Got their dream jobs<br> wants becoming insatiable<br> strive to go higher<br> change roles or companies<br> very impatient to mentor novices<br> or too busy to raise new ones<br> perhaps, to make them struggle like they did</p><p>They keep searching for the experienced<br> but “<strong><em>they</em></strong>” have advanced<br> who then is to train the upcoming ones<br> there is short of them in the ecosystem<br> the loop is almost halted<br> what do we do</p><p><strong><em>how do we keep the loop running?</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5fa3fa163773" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Migrating Dagger2 to Hilt in a Multi-module App using Clean Architecture]]></title>
            <link>https://princessdharmy.medium.com/migrating-dagger2-to-hilt-in-a-multi-module-app-using-clean-architecture-a64a96803304?source=rss-68a2b16fc497------2</link>
            <guid isPermaLink="false">https://medium.com/p/a64a96803304</guid>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[modularization]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[android-hilt]]></category>
            <category><![CDATA[dagger-hilt]]></category>
            <dc:creator><![CDATA[Damilola Omoyiwola]]></dc:creator>
            <pubDate>Sun, 22 Nov 2020 18:20:25 GMT</pubDate>
            <atom:updated>2020-11-22T18:20:25.093Z</atom:updated>
            <content:encoded><![CDATA[<p>Android Development community has rapidly grown with the improvement of libraries and components being released at short intervals. Consequently, we have experienced a lot of hassles with Dagger generally. Fortunately, Google recently released an improved version up to the <strong><em>hilt</em></strong>.</p><p>Following up on one of my recent articles on <a href="https://princessdharmy.medium.com/easy-setup-of-dagger2-and-other-components-in-a-multi-module-app-using-clean-architecture-8ebcc53e38aa">setting up dagger2 with clean architecture (CA) and multi-module</a>, I’m glad to say that I will be sharing how I <strong><em>migrated dagger2 to hilt</em></strong> using the same <a href="https://github.com/princessdharmy/FootballFixturesApp/tree/core/hilt">project</a>. Meanwhile, this is also useful when <strong><em>setting up hilt with clean architecture from scratch</em></strong>.</p><h3>Hilt Overview</h3><p>From the dagger.dev,</p><blockquote><strong>Hilt</strong> provides a standard way to incorporate Dagger dependency injection into an Android application.</blockquote><blockquote><strong>The goals of Hilt are:</strong></blockquote><blockquote>1. To simplify Dagger-related infrastructure for Android apps.</blockquote><blockquote>2. To create a standard set of components and scopes to ease setup, readability/understanding, and code sharing between apps.</blockquote><blockquote>3. To provide an easy way to provision different bindings to various build types (e.g. testing, debug, or release).</blockquote><p>Let me assure you that it’s very easy to set up once you understand some key points and the respective annotations 🙂</p><h3>Setting up Hilt in a few steps:</h3><h4>1. Add to the root project/build.gradle file</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3d3f1227f9bb1d8179b116633ef23fe0/href">https://medium.com/media/3d3f1227f9bb1d8179b116633ef23fe0/href</a></iframe><h4>2. Add to the app/build.gradle file</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e5eb1b4b2e97a9cce58743447065e0e4/href">https://medium.com/media/e5eb1b4b2e97a9cce58743447065e0e4/href</a></iframe><p>Notice the gradle plugin in the app module, we specify it in the app/build.gradle file by adding the plugin to the top of the file, below the kotlin-kapt plugin in order to use the hilt gradle plugin.</p><p>Another good news is its support with <em>ViewModel</em> and in order to integrate this, you need to add the above dependencies.</p><h4>3. Adding Hilt in the application class</h4><p>Remember that in the current project, we have a module called core where we had dagger2 components, modules, and application class MainApplication.kt. You will notice in the <a href="https://github.com/princessdharmy/FootballFixturesApp/tree/core/hilt">core/hilt branch</a>, there’s no core module again. This is the reason:</p><blockquote>All apps using Hilt <em>must</em> contain an <a href="https://developer.android.com/reference/android/app/Application.html">Application</a> class annotated with <a href="https://dagger.dev/api/latest/dagger/hilt/android/HiltAndroidApp.html">@HiltAndroidApp</a>. @HiltAndroidApp kicks off the code generation of the <a href="https://dagger.dev/hilt/components.html">Hilt components</a> and also generates a base class for your application that uses those generated components. Because the code generation needs access to all of your modules…</blockquote><p>Let me explain the statement above with respect to the current project used.</p><p>Initially, the app module does not depend on the <em>data, domain, presentation</em> modules because it has no business with them except with the feature modules (<em>competitions</em> and <em>competitiondetails</em> modules).</p><p>But with Hilt, “<strong><em>All apps… must contain an Application class…</em></strong>”, the <strong><em>Hilt components </em></strong>and co are generated and they need access to <strong>ALL</strong> modules used in the project.</p><p>So, with this, we do not need the core module since hilt does not need a component class unlike dagger2. Therefore, the MainApplication.kt class is moved to the app module and annotated with <em>@HiltAndroidApp</em>. This annotation triggers the code generation.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6461b38eac0832b1ef0c5e697f6c5b6c/href">https://medium.com/media/6461b38eac0832b1ef0c5e697f6c5b6c/href</a></iframe><p><em>See what we now have compared to the case of dagger2 😭 — All boilerplate codes </em><strong><em>GONE</em></strong><em>!</em></p><p><strong>Note</strong>: <em>We no longer need the dagger component classes at the feature module-level anymore.</em></p><p>Wait, we are not done yet 😃</p><h4>4. Inject instances with @Provides</h4><p>Since there are instances (such as interfaces) that are provided but cannot be injected via constructors, the <strong><em>Hilt Module</em></strong> provides a great way to achieve this by annotating with both <strong>@Module</strong> and <strong>@InstallIn</strong>.</p><blockquote>@Module tells Hilt this is a module</blockquote><blockquote>@InstallIn tells Hilt in which containers the bindings are available by specifying a Hilt Component.</blockquote><p>So, in the data module, we have <em>DatabaseModule, DataModule, NetworkModule </em>and are injected by Hilt Module as seen below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a8aa1118c48661b32e2affabc9fc66c1/href">https://medium.com/media/a8aa1118c48661b32e2affabc9fc66c1/href</a></iframe><p>In the DatabaseModule class, to access the database object, the field needs to be annotated with@ApplicationContext</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bd082b5bad5cf71f7858b456b4b0bca8/href">https://medium.com/media/bd082b5bad5cf71f7858b456b4b0bca8/href</a></iframe><h4>5. Inject dependencies to classes (activities and fragments)</h4><blockquote>Hilt currently supports the following Android types: <strong>Application</strong> (by using <strong>@HiltAndroidApp</strong>), <strong>Activity</strong>, <strong>Fragment</strong>, <strong>View</strong>, <strong>Service</strong> and <strong>BroadcastReceiver</strong>.</blockquote><blockquote>Hilt only supports activities that extend <a href="https://developer.android.com/reference/androidx/fragment/app/FragmentActivity"><strong>FragmentActivity</strong></a> (like <a href="https://developer.android.com/reference/kotlin/androidx/appcompat/app/AppCompatActivity"><strong>AppCompatActivity</strong></a>) and fragments that extend the Jetpack library <strong>Fragment</strong>, not the (now deprecated) <strong>Fragment</strong> from the Android platform.</blockquote><p>This is how it is injected in a fragment:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ae227e5db50cb7eea5fb0457d404b344/href">https://medium.com/media/ae227e5db50cb7eea5fb0457d404b344/href</a></iframe><p>We could see that there is no need for the code in the onAttach method any longer 👌.</p><h4>6. Inject ViewModel objects with Hilt</h4><blockquote>Provide a ViewModel using the @ViewModelInject annotation in the ViewModel object&#39;s constructor.</blockquote><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/18964d581187f5ccc01cede24f004cf9/href">https://medium.com/media/18964d581187f5ccc01cede24f004cf9/href</a></iframe><p>That’s all? Yea, that’s all! 😆</p><p>You can check out its <a href="https://developer.android.com/training/dependency-injection/hilt-jetpack">support for Jetpack libraries like WorkManager</a>.</p><p>Here are the links for its official documentation on <a href="https://developer.android.com/training/dependency-injection/hilt-android">Android developers official guide</a> and <a href="https://dagger.dev/hilt/">dagger.dev</a>.</p><h3>Conclusion</h3><p>I think the Google team deserves some accolades 👏 👏 This feels so relieving😌 and I love it.</p><p>However, Hilt uses more of a monolithic approach which defeats the essence of modularisation. Although, it makes dependency injection easy to set up and reduces boilerplate codes.</p><p>It is still in its alpha stage, and we hope for more improvements.</p><p><strong>Thanks for reading through!</strong></p><p>If you have any comment, kindly drop it in the comment section below and if you ❤️ this article, please feel free to 👏 and share.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a64a96803304" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Easy Setup of Dagger2 and other Components in a Multi-module App using Clean Architecture]]></title>
            <link>https://princessdharmy.medium.com/easy-setup-of-dagger2-and-other-components-in-a-multi-module-app-using-clean-architecture-8ebcc53e38aa?source=rss-68a2b16fc497------2</link>
            <guid isPermaLink="false">https://medium.com/p/8ebcc53e38aa</guid>
            <category><![CDATA[modularization]]></category>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[navigation-component]]></category>
            <category><![CDATA[dagger-2]]></category>
            <dc:creator><![CDATA[Damilola Omoyiwola]]></dc:creator>
            <pubDate>Sun, 22 Nov 2020 18:15:30 GMT</pubDate>
            <atom:updated>2020-11-22T18:22:21.364Z</atom:updated>
            <content:encoded><![CDATA[<p>In my <a href="https://princessdharmy.medium.com/android-modularisation-using-clean-architecture-and-other-components-9ee44b061e9f">last article</a>, I explained the migration of a <strong><em>single module to a multi-module using Clean Architecture</em></strong> and how it was structured.</p><p>In this part, I would like to share how I set up the codebase using <strong><em>Dagger2, Jetpack components (Navigation, Room), </em></strong>and<strong><em> Kotlin Coroutines </em></strong>in a simple process<strong><em>.</em></strong></p><h3>Scope</h3><p>Like I mentioned previously, I will try as much as possible to avoid long read rather nosedive into the main business of the day—<em>code setup</em>.</p><h3>Project Structure</h3><p>Now that we have our modules structured as described in the last article alongside their respective contents, I will explain the code according to the modules and/or layers.</p><h4><strong>Setting up of Dagger2 in the core module:</strong></h4><p>@Compnent.Factory provides an easy way to provide application context into an object graph by annotating its parameter in a single method instead of individual methods (like that of @Component.Builder).</p><p>Since this is a multi-module, aside from the core component in the core module, each feature module has its own component with the core component as a <strong>dependency</strong>. In the core module, there are just the CoreComponent and CoreModule as our dependency injection classes. Here we could provide the DatabaseModule the application context. Also, in this module, I have the MainApplication class.</p><p>Below are the snippets of the CoreComponent , CoreModule , and MainApplication classes respectively.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ae5f8355e8c092556a3f5a5d517d0207/href">https://medium.com/media/ae5f8355e8c092556a3f5a5d517d0207/href</a></iframe><p>The reason for initialising the repository class is that it is used across the feature modules, hence, it needs to publicly provided.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/10aa938867aaec6af1e2d906102f73d5/href">https://medium.com/media/10aa938867aaec6af1e2d906102f73d5/href</a></iframe><p>Here is how we create it in the application class:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cb8d0fcff8f19d416d0ae6bb1cf58bf1/href">https://medium.com/media/cb8d0fcff8f19d416d0ae6bb1cf58bf1/href</a></iframe><p>From the above code gist, the two methods are created in order to inject DaggerComponent in the Activity and Fragment classes of each module.</p><p>Check <a href="https://proandroiddev.com/dagger-and-the-shiny-new-component-factory-c2234fcae6b1">here</a> to learn more about the @Component.Factory and other old ways of providing application context into an object graph.</p><p>Does this look easier? I guess, yes. So, let’s dive into creating the dagger component for each module. I will provide for a module.</p><p>For the competition module, this is how the component looks like:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4883b3b9c1cb5d49ceb1767a6b997a9f/href">https://medium.com/media/4883b3b9c1cb5d49ceb1767a6b997a9f/href</a></iframe><p>The ViewModel classes are provided in the usual way in the CompetitionsViewModelModule class as seen below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2ec28dedd6f8d560769928880891c72c/href">https://medium.com/media/2ec28dedd6f8d560769928880891c72c/href</a></iframe><p>And this is how it’s injected in the fragment:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4aa9d7b8c00cb8ef9670d594bb61889c/href">https://medium.com/media/4aa9d7b8c00cb8ef9670d594bb61889c/href</a></iframe><h4><strong>Setting up the Navigation Graphs in the </strong><strong>navigation module:</strong></h4><p>I mentioned in my last article that all the navigation classes are pulled together in a module to be accessed across all the modules.</p><p>Now, let’s see how the design looks like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*KOrNq87InU2jOBUzl74JsA.gif" /></figure><p>On the first page (i.e. the fixtures and competitions fragments), the graph has a separate layout (for competitions module).</p><p>The second page (that contains the viewpager in the competitiondetails module) has only the viewpager fragment class nav graph while the respective fragments in the viewpager are implemented in the usual way.</p><p>See the implementation below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6c5caffd1f3870da2d7b774397fe3d57/href">https://medium.com/media/6c5caffd1f3870da2d7b774397fe3d57/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/310ae39272ce694a47b7717e757f0f39/href">https://medium.com/media/310ae39272ce694a47b7717e757f0f39/href</a></iframe><p>I know you’ve got some questions in mind like “<em>since there are many feature modules, which one hosts the navigation graph</em>”?</p><p>Well, the whole app uses a single activity pattern, so, the activity_main hosts the navigation graph in the app module. All settings relating to the navigation is done in the HomeActivity.kt class as shown below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/19983a0ed78af14902781910924ec8e5/href">https://medium.com/media/19983a0ed78af14902781910924ec8e5/href</a></iframe><h4>What is contained in the data module</h4><p>This module contains set up for <em>room</em>, <em>coroutine dispatcher,</em> <em>repository implementation</em> (which implements the repository interface defined in the domain layer/module) and of course where all these are provided (for dagger usage) in the <a href="https://github.com/princessdharmy/FootballFixturesApp/blob/develop/data/src/main/java/com/example/data/di/DataModule.kt">DataModule</a> and <a href="https://github.com/princessdharmy/FootballFixturesApp/blob/develop/data/src/main/java/com/example/data/di/NetworkModule.kt">NetworkModule</a> classes.</p><p>I’m not able to include all the codes in this article but rest assured that you will find them <a href="https://github.com/princessdharmy/FootballFixturesApp">here</a>.</p><h3>Conclusion</h3><p>With the above steps, we have been able to set up some components (dagger2, navigation, etc.) with CA in a multi-module app.</p><p>And yes, you can check out an article I wrote about how <a href="https://princessdharmy.medium.com/migrating-dagger2-to-hilt-in-a-multi-module-app-using-clean-architecture-a64a96803304">I migrated this project to using hilt</a>.</p><p><strong>Thanks for reading through!</strong></p><p>If you have any comment, kindly drop it in the comment section below and if you ❤️ this article, please feel free to 👏 and share.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8ebcc53e38aa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Android Modularisation using Clean Architecture and other Components]]></title>
            <link>https://princessdharmy.medium.com/android-modularisation-using-clean-architecture-and-other-components-9ee44b061e9f?source=rss-68a2b16fc497------2</link>
            <guid isPermaLink="false">https://medium.com/p/9ee44b061e9f</guid>
            <category><![CDATA[modularization]]></category>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[clean-architecture]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Damilola Omoyiwola]]></dc:creator>
            <pubDate>Sun, 22 Nov 2020 18:11:28 GMT</pubDate>
            <atom:updated>2020-11-22T18:17:45.382Z</atom:updated>
            <content:encoded><![CDATA[<p>For quite some time now, I have been in the quest of attempting the trends in Android Development. It was actually difficult to find an article that has most of the components I wanted. However, after so much study, I was able to come up with a concrete solution that I would like to share.</p><p>Here, I will discuss how I migrated a <strong><em>single module project</em></strong> to a <strong><em>multi-module using Clean Architecture (CA) </em></strong>alongside some other<strong><em> components </em></strong>and<strong><em> MVVM architectural design pattern</em></strong>.</p><h3>Scope</h3><p>This article:</p><ul><li>will be in parts and each part will showcase its intended purpose</li><li>will focus on the technical aspects to avoid long read</li><li>will provide references to understand the components used and the non-technical aspects of the codes</li></ul><p>In case you need an overview of what CA by Uncle Bob is, you could check <a href="https://clevercoder.net/2018/09/08/clean-architecture-summary-review/#review">this</a> out else, you should proceed to the next section. Perhaps, you just want to zoom straight to the code setup, <a href="https://princessdharmy.medium.com/easy-setup-of-dagger2-and-other-components-in-a-multi-module-app-using-clean-architecture-8ebcc53e38aa">here you have it</a> 😎</p><h3>Project Overview</h3><p>The project can be found <a href="https://github.com/princessdharmy/FootballFixturesApp">here</a>. The master branch contains the single module while the develop branch contains the refactored code.</p><p>The app uses a single activity pattern which comprises:</p><ol><li>List of daily fixtures</li><li>List of football competitions</li><li>List of teams, fixtures, tables, and players per competition</li></ol><p>So, how was this structured?</p><p>Based on the UI design, I decided to split these views into two features namely: <strong><em>competitions</em></strong> and <strong><em>competition details.</em></strong></p><h3>Project Structure</h3><p>Following the CA with its abstraction, each of the layers was placed in a separate module. The image below shows how I structured the modules.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*fxeb2dcYmCRyyBE7igXpAA.png" /><figcaption>Football Fixtures Modules</figcaption></figure><p>Now, let me explain the modules above.</p><p><strong>Presentation Layer:</strong></p><ul><li>App Module houses the HomeActivity since a single activity is used. Nothing else in this module.</li><li>Features Directory is a directory for all the different feature modules (this is different from the Dynamic Feature Module). The competitions module shows the fragments in the bottom navigation which displays a list of daily fixtures and competitions while the competitionDetails module shows a viewpager with its respective fragments that display the fixtures, tables, standings, and teams per competition.</li><li>Presentation Module is responsible for exposing data wrapped in entities that users observe via a LiveData perhaps in the ViewModel class.</li><li>Navigation Module helps with navigating through the app using the Jetpack’s Navigation Component. This module is accessible to all the feature modules. Instead of having different navigation graphs in all the modules, I decided to pull them together in this module for easy access amongst modules.</li></ul><p><strong>Domain Layer: </strong>This has the Domain Module which contains the usecase responsible for enclosing a particular task, repository interfaces, and entities I tag as DomainEntities . From the image above, we could see that other layers depend on the domain layer for successful transactions 😄. <em>I mean it serves as an errand boy or an intermediary </em>😏</p><p><strong>Data Layer: </strong>This includes the Data Module which is responsible for providing a <strong>single source of truth</strong> even when sometimes the origin may not be known (like I don’t want to know whether the data is coming from an API or a DB 🤷‍♀). It implements the repository interface defined in the domain layer.</p><p><strong>Secondary Modules: </strong>I call the Core and Common modules secondary because I chose to and they are not mandatory. The Core module is where all common setups like dependency injection, common classes like Database module, etc. are done.</p><p>In the Common module classes like base views, resources, utilities shared amongst modules are placed here. You could name it anything you want like some do call it <strong>Shared</strong>.</p><p>Here is how it looks like in the AS IDE:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/442/1*_pvh0jC5Sala85J-NU2fgQ.png" /><figcaption>Project Structure</figcaption></figure><p>In addition, the image below shows how the different modules depend on one another.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NPkshUzz8gNeogu0ngPVfg.png" /></figure><p><em>We could see that none depends on the app module and the common module depends on none.</em></p><p>To understand how the codebase is being set up, check out <a href="https://princessdharmy.medium.com/easy-setup-of-dagger2-and-other-components-in-a-multi-module-app-using-clean-architecture-8ebcc53e38aa">Easy Setup of Dagger2 and other Components in a Multi-module App using Clean Architecture</a>.</p><h3>Conclusion</h3><p>One of the reasons I like the CA with multi-module is that it makes code reuse easy in case the presentation layer changes due to users’ preferences on the looks and feel of the app. Also, it eases off the stress of code refactoring i.e. you could track your progress according to the modules.</p><p><strong>Thanks for reading through!</strong></p><p>If you want to tell me something 😄, kindly comment and if you ❤️ this article, please feel free to 👏 and share.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9ee44b061e9f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Implementing Modal Bottom Sheet in Fragment]]></title>
            <link>https://princessdharmy.medium.com/implementing-modal-bottom-sheet-in-fragment-5fe751b6dec4?source=rss-68a2b16fc497------2</link>
            <guid isPermaLink="false">https://medium.com/p/5fe751b6dec4</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[android-support-library]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[material-design]]></category>
            <dc:creator><![CDATA[Damilola Omoyiwola]]></dc:creator>
            <pubDate>Sun, 03 Mar 2019 19:58:22 GMT</pubDate>
            <atom:updated>2019-03-03T19:58:22.674Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zTSFvJHWdU7pA6Y9O-kZDQ.png" /></figure><p>It is an undisputed fact that a Sheet in android is modernly used in place of a Dialog. Its simplicity and amazing design gives it a head start. In <a href="https://material.io/design/components/sheets-bottom.html#">Material Design</a>, Sheets are explicitly categorised for different usages.</p><p>I will be more focused on <a href="https://material.io/design/components/sheets-bottom.html#modal-bottom-sheet">Modal Bottom Sheet</a> which</p><blockquote>renders a shadow on the content below it to indicate that it is a modal, essentially a dialog. If the content outside of the dialog is tapped then the bottom sheet is dismissed. Modal bottom sheets can be dragged vertically and dismissed by completely sliding them down.</blockquote><p>However, in this article, we will take a look at how a modal bottom sheet is being implemented in a fragment.</p><h3>Scope</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FI9ZMFTw8wxY%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DI9ZMFTw8wxY&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FI9ZMFTw8wxY%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/1aed87fe18a1e7afc06fd8cbc5f52c8c/href">https://medium.com/media/1aed87fe18a1e7afc06fd8cbc5f52c8c/href</a></iframe><p>A <a href="https://github.com/princessdharmy/FootballFixturesApp/">Football Fixtures</a> app was developed and will be used as a sample project. Few of the libraries used in this project include Databinding, Dagger 2, Retrofit, Glide, etc.</p><blockquote>Please note that some parts of the code will be extracted and will not be different.</blockquote><h3>Project Configuration</h3><p>Add the appcompat and support design libraries to your project</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7a4ca6501754de1d715ab9db1e0d4f10/href">https://medium.com/media/7a4ca6501754de1d715ab9db1e0d4f10/href</a></iframe><h3>Getting Started</h3><p>From the demo shown above, we could see that the modal bottom sheet is shown upon a click on a club team list item. Hence, we have the following views:</p><ol><li>Modal bottom sheet</li><li>TextView: to display the club name</li><li>ImageView: to display the close button and club logo</li><li>RecyclerView: to display the selected team/club players list</li></ol><h4>Creating Layouts</h4><p>We have two different layout files: team_line_names.xml and fragment_bottom_sheet.xml .</p><p><strong>Fragment file</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/42630aa7eb65bb2d697b30bc69cce750/href">https://medium.com/media/42630aa7eb65bb2d697b30bc69cce750/href</a></iframe><p>behavior_peekHeightdefines the initial height of the modal bottom sheet.</p><p><strong>Players list</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5e571776d481ab0efef2447387f2e4ed/href">https://medium.com/media/5e571776d481ab0efef2447387f2e4ed/href</a></iframe><h4>Dynamic Sections</h4><p>In this section, we are going to fetch and display the players and their respective roles from the <a href="https://www.football-data.org/">Football Data</a> API endpoint. The architecture used is MVVM. So, the data fetch is done in the repository and passed through the ViewModel to the views.</p><p>For quicker grasp,</p><ol><li>The data is fetched in the Repository.kt</li><li>Returned data is passed via the TeamViewModel.kt</li><li>Accessed in the TeamFragment.kt</li><li>In order to display the data in the modal bottom sheet fragment, the data from the fragment class is passed to the CompetitionDetailsActivity.kt through a callback.</li><li>Then, the modal bottom sheet fragment is called by the activity to display the received data.</li></ol><p><strong>TeamFragment.kt</strong> class</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2681807c98c06c3a45146ac0fea52b3d/href">https://medium.com/media/2681807c98c06c3a45146ac0fea52b3d/href</a></iframe><p><strong>CompetitionDetailsActivity.kt</strong> class</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/da49e93c1eb40a3f23197959629041ad/href">https://medium.com/media/da49e93c1eb40a3f23197959629041ad/href</a></iframe><p>The sendTeam method returns an object of PlayerResponse . A check is made whether a modal is opened or not to avoid calling multiple instances of the bottom sheet.</p><p><strong>BottomSheetFragment.kt</strong> class</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/54b112c84edfafa68a33913248bb9e2f/href">https://medium.com/media/54b112c84edfafa68a33913248bb9e2f/href</a></iframe><p>The updateContent method checks if the current activity that called the fragment is actually available to avoid app crash.</p><p>Then, the data is passed through the initRecyclerView method to the BottomSheetAdapter class to bind the data to the view.</p><p><strong>BottomSheetAdapter.kt</strong> class</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bbe5727f8121d718886ada1916408ad9/href">https://medium.com/media/bbe5727f8121d718886ada1916408ad9/href</a></iframe><h3>References</h3><ol><li><a href="https://material.io/design/components/sheets-bottom.html#">Material Design Components: Sheet</a></li><li><a href="https://www.androidhive.info/2017/12/android-working-with-bottom-sheet/">Android Working with Bottom Sheet</a></li></ol><p>Happy coding! :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5fe751b6dec4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dagger 2 with MVVM SIMPLIFIED!]]></title>
            <link>https://princessdharmy.medium.com/dagger-2-with-mvvm-simplified-3215b3cf4c96?source=rss-68a2b16fc497------2</link>
            <guid isPermaLink="false">https://medium.com/p/3215b3cf4c96</guid>
            <category><![CDATA[dagger-2]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[dependency-injection]]></category>
            <category><![CDATA[mvvm]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Damilola Omoyiwola]]></dc:creator>
            <pubDate>Tue, 29 Jan 2019 14:53:48 GMT</pubDate>
            <atom:updated>2019-12-17T04:43:20.209Z</atom:updated>
            <content:encoded><![CDATA[<h3>Using Dagger 2 with MVVM SIMPLIFIED!</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H3vXAnQTcJ53BlVvQYw7eg.png" /></figure><p>The word Dagger sounded weird the first time I heard about it as a developer. I avoided it for few months but had to embrace it because of it’s advantages as a <strong><em>Dependency Injection</em></strong> framework in software development. When I got started, I was stuck as I could not get explicit guidelines to setting up Dagger 2. I read many articles and codes with old and new implementations but yet became more confused. Somehow, I found my way through and I would like to share it.</p><h3>Update</h3><blockquote>Kindly note that <strong>Dagger-Android</strong> is deprecated while we now have <strong>Dagger in Android </strong>which is Dagger2 itself. Hence, the setup in this article might not be needful any longer. Thanks for reading!</blockquote><h3>Scope</h3><p>This article encompasses so much about android development but will be limited to just <strong>Setting up Dagger 2</strong> framework using MVVM architectural pattern.</p><p>If you find it difficult to understand DI or the MVVM architectural pattern, please check out these articles to have clearer understanding on:</p><ol><li><a href="https://tech.just-eat.com/2015/10/26/dependency-injection-on-android/">Dependency Injection on Android</a></li><li><a href="https://google.github.io/dagger/">Dagger</a></li><li><a href="https://android.jlelse.eu/dagger-2-part-i-basic-principles-graph-dependencies-scopes-3dfd032ccd82">Dagger 2. Part 1. Basic Principles, graph dependencies, scopes</a></li><li><a href="https://proandroiddev.com/dagger-2-annotations-binds-contributesandroidinjector-a09e6a57758f">Dagger 2 Annotations</a></li><li><a href="http://tutorials.jenkov.com/dependency-injection/dependency-injection-benefits.html">Dependency Injection Benefits</a></li><li><a href="https://proandroiddev.com/mvvm-architecture-viewmodel-and-livedata-part-1-604f50cda1">MVVM Architectural Pattern</a></li></ol><p>I developed a trivia quiz app called <a href="https://play.google.com/store/apps/details?id=com.app.horizon">Triviums </a>which will be used as a sample project in this article.</p><blockquote>Please note that some parts of the code will be extracted and will not be different.</blockquote><h3>Project Configuration</h3><p>Since Dagger 2 is a library, we need to add it as a dependency in the build.gradle file:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/431e437956211dd2629d14057b725523/href">https://medium.com/media/431e437956211dd2629d14057b725523/href</a></iframe><h3>Project Structure</h3><p>From the image below, many packages were created to separate modules according to features. For example, we have core, dagger, etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/441/1*EEraz-345PJkFeGGb5wzkA.png" /><figcaption>Project Pane</figcaption></figure><h3>Setting-up Core Classes</h3><p>In order to reduce boilerplate and the steps required to create new Activities and Fragments, Dagger provides some base classes called DaggerApplication,DaggerAppCompatActivity and DaggerFragment. These contain <strong>applicationInjector, AndroidInjection and AndroidSupportInjection </strong>respectively which were supposed to be included in all classes and fragments.</p><p>From the Project Pane, we have the following classes:</p><p>HorizonMainApplication: a class which extends the DaggerApplication class. This is a base class in android that contains all android components such as activities, services, broadcast receivers etc.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c14133417240fee70d68fa935e85b264/href">https://medium.com/media/c14133417240fee70d68fa935e85b264/href</a></iframe><p>BaseActivity: an abstract class created which extends the DaggerAppCompatActivity class. Per adventure you have some other methods that would be used in all activities, you could put them in this class while the activities extend it.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/681204a65425b4e644762ba49015fead/href">https://medium.com/media/681204a65425b4e644762ba49015fead/href</a></iframe><p>BaseFragment: an abstract class which extends the DaggerFragment class. Including methods as explained in BaseActivity also applies here.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fe088aaa31a2a7200b1b8303f4cfe62e/href">https://medium.com/media/fe088aaa31a2a7200b1b8303f4cfe62e/href</a></iframe><h3>Setting-up Dagger 2 Elements</h3><p>For better grasp, I designed a structure of Dagger 2 as shown below. As we move on, I will explain/quote some terminologies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KYKmrCCvLHzzAO5nTib6Fw.png" /><figcaption>Dagger 2 set-up with MVVM Representational Structure</figcaption></figure><p>This <a href="https://android.jlelse.eu/dagger-2-part-i-basic-principles-graph-dependencies-scopes-3dfd032ccd82">article</a> gave a very concise descriptions of the Dagger 2 elements:</p><blockquote><em>@Inject</em> — base annotation whereby the “dependency is requested”</blockquote><blockquote><em>@Module</em> — classes which methods “provide dependencies”</blockquote><blockquote><em>@Provide</em> — methods inside <em>@Module</em>, which “tell Dagger how we want to build and present a dependency“</blockquote><blockquote><em>@Component</em> — bridge between <em>@Inject</em> and @Module</blockquote><p>Now we can proceed to have a look of the code set up:</p><h4>HorizonMainComponent class</h4><p>This class combines all the module classes used in the app for compilation by the Dagger 2 library.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9568c8367750e4ae305727198e9bfd73/href">https://medium.com/media/9568c8367750e4ae305727198e9bfd73/href</a></iframe><h4>HorizonAppModule class</h4><p>This class contains classes that are accessed or called in any activity/fragment within the app. In other words, not attached to any particular activity/fragment.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/39aa5a8e97485d4336aec085c25a5dec/href">https://medium.com/media/39aa5a8e97485d4336aec085c25a5dec/href</a></iframe><h4>ActivityBuilder class</h4><p>This class houses all Activities and Fragment Modules.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0e376e1a07393f720c1d6d22ab432ffa/href">https://medium.com/media/0e376e1a07393f720c1d6d22ab432ffa/href</a></iframe><h3>Setting-up to use Dagger 2 in an Activity</h3><p>In the older implementation of Dagger 2, annotations (such asBinds ComponentBinds Subcomponent ActivityKey FragmentKey) were used to scope Application, User and Activity of an app. Like I said earlier, Dagger made it easier and reduced all boilerplate and introduced @ContributesAndroidInjector. Read <a href="https://proandroiddev.com/dagger-2-annotations-binds-contributesandroidinjector-a09e6a57758f">Dagger 2: @Binds and @ContributesAndroidInjector</a> for more details.</p><h4>MainActivity Class</h4><p>In the snippet below, the commented code was supposed to be included but remember we have our BaseActivity which extends DaggerAppCompatActivity.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/58937e7e36bee31aea87faaacdccc6cd/href">https://medium.com/media/58937e7e36bee31aea87faaacdccc6cd/href</a></iframe><h4>MainActivityModule class</h4><p>The @Provides annotation indicates that we will need the class MainActivityViewModel within the MainActivity Activity.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/95e99c83cf0b28948e396f688bc23338/href">https://medium.com/media/95e99c83cf0b28948e396f688bc23338/href</a></iframe><h4>MainActivityViewModel class</h4><p>The dependency is provided using the @Inject annotation via the constructor.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f0302f33b521b58efbdd2dc4af7f4744/href">https://medium.com/media/f0302f33b521b58efbdd2dc4af7f4744/href</a></iframe><h3>Setting-up to use Dagger 2 in a Fragment</h3><p>The concept described above for the Activity is same for Fragment but there are some slight differences which will be pointed out in this section of the article.</p><h4>CategoryFragment class</h4><p>Remember in the HorizonAppModule class discussed earlier, the Utils class injected in the code snippet was provided in the module class. Also, the ViewModelProvider class was injected for use.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e112f383e7a29a269c651825b2f27ddc/href">https://medium.com/media/e112f383e7a29a269c651825b2f27ddc/href</a></iframe><h4>CategoryFragmentModule class</h4><p>This class contains and provides all the methods and/or classes that would be used within the CategoryFragment class only.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a77b14fb9c0786b4713313b10d6029ae/href">https://medium.com/media/a77b14fb9c0786b4713313b10d6029ae/href</a></iframe><h4>CategoryFragmentProvider class</h4><p>Since a Fragment can not exist without an Activity, so it is that it can not be injected into the ActivityBuilder class except being provided indirectly to an Activity with the help of an abstract class called CategoryFragmentProvider.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/78d969dedbe6ffacfbf989fe3f330640/href">https://medium.com/media/78d969dedbe6ffacfbf989fe3f330640/href</a></iframe><h4>CategoryViewModel class</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3215750cf81b66142dc805462d971eb4/href">https://medium.com/media/3215750cf81b66142dc805462d971eb4/href</a></iframe><h3>Recommendations</h3><p>Check out the aforementioned references. Also, <a href="https://android.jlelse.eu/android-mvvm-with-dagger-2-retrofit-rxjava-architecture-components-6f5da1a75135">Android MVVM with Dagger2, Retrofit, RxJava and Android Architecture Components</a></p><h3>Conclusion</h3><p>Uhh! Well done… I believe you can now set up your next project using MVVM architectural pattern with Dagger 2 for DI.</p><p>Please feel free to comment and share.</p><p>You can find the full source code here:</p><p><a href="https://github.com/princessdharmy/triviums">princessdharmy/triviums</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3215b3cf4c96" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Machine Learning on Facial Recognition]]></title>
            <link>https://medium.datadriveninvestor.com/machine-learning-on-facial-recognition-b3dfba5625a7?source=rss-68a2b16fc497------2</link>
            <guid isPermaLink="false">https://medium.com/p/b3dfba5625a7</guid>
            <category><![CDATA[facial-recognition]]></category>
            <category><![CDATA[neural-networks]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[biometrics]]></category>
            <dc:creator><![CDATA[Damilola Omoyiwola]]></dc:creator>
            <pubDate>Fri, 26 Oct 2018 15:34:01 GMT</pubDate>
            <atom:updated>2018-11-06T10:50:05.961Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ES7PUAbTX-rqAylU_zkqJA.jpeg" /><figcaption>Image result for facial recognition</figcaption></figure><p>In machine learning, a <strong>Convolutional Neural Network</strong> (<strong>CNN </strong>or <strong>ConvNet</strong>) is a class of deep, feed-forward artificial neural networks that has successfully been applied to analyzing visual imagery. They have applications in image recognition (facial recognition) and video analysis, recommender systems and natural language processing. Here, <strong>facial recognition</strong> would be analysed.</p><h3>What is Facial Recognition?</h3><p>Facial recognition is a biometric software application capable of uniquely identifying or verifying a person by comparing and analyzing patterns based on the person’s facial contours. Facial recognition is mostly used for security purposes, though there is increasing interest in other areas of use. In fact, facial recognition technology has received significant attention as it has potential for a wide range of application related to law enforcement as well as other enterprises.</p><p>There are different facial recognition techniques in use, such as the <strong>generalized matching face detection method</strong> and the <strong>adaptive regional blend matching method</strong>. Most facial recognition systems function based on the different nodal points on a human face. The values measured against the variable associated with points of a person’s face help in uniquely identifying or verifying the person. With this technique, applications can use data captured from faces and can accurately and quickly identify target individuals. Facial recognition techniques are quickly evolving with new approaches such as 3-D modeling, helping to overcome issues with existing techniques.</p><p>There are many advantages associated with facial recognition. Compared to other biometric techniques, facial recognition is of a non-contact nature. Face images can be captured from a distance and can be analyzed without ever requiring any interaction with the user/person. As a result, no user can successfully imitate another person. Facial recognition can serve as an excellent security measure for time tracking and attendance. Facial recognition is also cheap technology as there is less processing involved, like in other biometric techniques.</p><h3>How to Use Machine Learning on Facial Recognition</h3><p>The approach we are going to use for facial recognition is very straight forward but you could check this out in the case of a <a href="https://medium.com/@ageitgey/machine-learning-is-fun-part-4-modern-face-recognition-with-deep-learning-c3cffc121d78">very complicated problem</a>. Let’s learn how modern face recognition works!</p><p>The goal here is to get deep neural network to output a person’s face with identification. This means that the neural network needs to be trained to automatically identify different features of a face and calculate numbers based on that. The output of the neural network can be thought of as an identifier for a particular person’s face — if you pass in different images of the same person, the output of the neural network will be very similar or close, whereas if you pass in images of a different person, the output will be very different.</p><p>Machine learning has solved many problems by choosing one machine learning algorithm, feeding in data, and getting the result. We do not need to build our own neural network. We have access to a trained model <a href="http://dlib.net/">dlib</a> that can be used. It does exactly what we need it to do — outputs a bunch of numbers (face encodings) when we pass in the image of someone’s face; comparing face encodings of faces from different images will tell us if someone’s face matches with anyone we have images of.</p><p>However, a facial recognition library called <a href="https://github.com/ageitgey/face_recognition#face-recognition">face recognition</a> is much easier to install and use. This would be use at some point here.</p><p>These are the steps we will be taking:</p><ol><li>Detect: Find faces in pictures</li><li>Landmark: Find and manipulate facial features in pictures</li><li>Compare: Identify faces in pictures</li></ol><h3>Steps on Facial Recognition</h3><ol><li>Preparing images</li></ol><p>Here, one image will be used for simplicity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/157/0*uq2_tDh0dEMyRmhq.png" /></figure><ol><li>Landmark</li></ol><p>Manipulations are done in the image by getting the locations and outlines of each person’s eyes, nose, mouth and chin.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/0*L02mLji3wI7CpC5x.png" /></figure><pre>import face_recognition</pre><pre>image = face_recognition.load_image_file(&quot;your_file.jpg&quot;)</pre><pre>face_landmarks_list = face_recognition.face_landmarks(image)</pre><p>Getting output from facial recognition is a little bit tedious and facial recognition features should be considered important to analyse.</p><ol><li>Identify faces in the pictures</li></ol><p>This is done by recognizing the faces of who appear in a photo.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/496/0*PzDQlpImPolctLAD.png" /></figure><pre>import face_recognition</pre><pre>known_image = face_recognition.load_image_file(&quot;biden.jpg&quot;)</pre><pre>unknown_image = face_recognition.load_image_file(&quot;unknown.jpg&quot;)<br></pre><pre>biden_encoding = face_recognition.face_encodings(known_image)[0]</pre><pre>unknown_encoding = face_recognition.face_encodings(unknown_image)[0]</pre><pre>results = face_recognition.compare_faces([biden_encoding], unknown_encoding)</pre><p>This outputs “Joe Biden” as the person in the photo.</p><p>The approach could also be used for several images in one photo and this is done by picking out faces appearing in the photo. Then the steps listed above are used to analyse the input of (n) to give outputs of (n).</p><h3>Conclusion</h3><p>We have been able to detect who the image represents in the photo using a simple approach by detecting, manipulating and identifying the contours of the face.</p><p>This clearly shows how machine learning has rapidly taken charge in the world of artificial intelligence. A day-to-day sample is Facebook, which automatically tags people found in a photo without tagging them manually. This was not achieved sometimes ago rather people in photos were tagged with suggestions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b3dfba5625a7" width="1" height="1" alt=""><hr><p><a href="https://medium.datadriveninvestor.com/machine-learning-on-facial-recognition-b3dfba5625a7">Machine Learning on Facial Recognition</a> was originally published in <a href="https://medium.datadriveninvestor.com/">DataDrivenInvestor</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting Started with JSOUP in Android]]></title>
            <link>https://princessdharmy.medium.com/getting-started-with-jsoup-in-android-594e89dc891f?source=rss-68a2b16fc497------2</link>
            <guid isPermaLink="false">https://medium.com/p/594e89dc891f</guid>
            <category><![CDATA[jsoup]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Damilola Omoyiwola]]></dc:creator>
            <pubDate>Wed, 22 Nov 2017 03:47:27 GMT</pubDate>
            <atom:updated>2019-12-17T04:51:57.403Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-TUM-hvgB3hxWvY4VAsYlg.png" /></figure><p>Jsoup is a Java html parser. It is a Java library that is used to parse html documents. Jsoup gives programming interface to concentrate and control information from URL or HTML documents. It utilizes DOM, CSS and Jquery-like systems for concentrating and controlling records.</p><p>In this tutorial, you will get to know few steps to start with in parsing html document in an android application interface using Jsoup.</p><h3>Update</h3><blockquote>Kindly note that this implementation <strong>might</strong> not be useful anymore. You can check out for articles that explain this with latest technologies. Thanks! :)</blockquote><h4>Example</h4><p>This simple android application shows details of <a href="https://firebase.google.com/">Firebase</a> with Jsoup used to parse the logo and title from the web page.</p><p>Let’s get started. Create a <a href="https://developer.android.com/studio/projects/create-project.html">new android project</a> with an Empty Activity.</p><p><strong>Step 1:</strong></p><p>Add Jsoup dependency to the app level of your build.gradle file since this is an external library.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5578a78a7581f6a032ba4272b98d7bc1/href">https://medium.com/media/5578a78a7581f6a032ba4272b98d7bc1/href</a></iframe><p><strong>Step 2:</strong></p><p>Add Internet permission to the Android Manifest file for internet access.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9958354ff09757a3311fe38b92b525d8/href">https://medium.com/media/9958354ff09757a3311fe38b92b525d8/href</a></iframe><p><strong>Step 3:</strong></p><p>Prepare a layout to display the data that will be fetched from the web page. For example, logo and title.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/96c6469f76766f6ecf6228ac8f71ccca/href">https://medium.com/media/96c6469f76766f6ecf6228ac8f71ccca/href</a></iframe><p><strong>Step 4:</strong></p><p>Go to your MainActivity.java class, in the OnCreate() method, initialize your views. Create an AsyncTask class that will be used to fetch the data in the background before displaying it on the main thread.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4206c6e089834630b1624d2d88047237/href">https://medium.com/media/4206c6e089834630b1624d2d88047237/href</a></iframe><p>Let me explain some lines of codes and elements of Jsoup before calling them in the AsyncTask class.</p><pre>//This is the Firebase URL where data will be fetched from<br>String <strong>url </strong>= <strong>&quot;https://firebase.google.com/&quot;</strong>;<br></pre><pre><em>//Connect to website<br></em>Document document = Jsoup.<em>connect</em>(<strong>url</strong>).get();</pre><pre><br><em>//Get the logo source of the website<br></em>Element img = document.select(<strong>&quot;img&quot;</strong>).first();<br><em>// Locate the src attribute<br></em>String imgSrc = img.absUrl(<strong>&quot;src&quot;</strong>);<br><em>// Download image from URL<br></em>InputStream input = <strong>new </strong>java.net.URL(imgSrc).openStream();<br><em>// Decode Bitmap<br></em><strong>bitmap </strong>= BitmapFactory.<em>decodeStream</em>(input);</pre><pre><br><em>//Get the title of the website<br></em><strong>title </strong>= document.title();</pre><p>In the above codes;</p><p><strong><em>Document document = Jsoup.connect(url).get(): </em></strong>Document is a Jsoup node API element used in connecting to the website.</p><p><strong><em>Element img = document.select(“img”).first()</em></strong> : allows the program check through the webpage to get the first &lt;img&gt; since logo is usually placed at the very beginning of the code.</p><p><strong><em>String imgSrc = img.absUrl(“src”): </em></strong>allows the program check through absolute attribute ‘src’ of &lt;img&gt; and get the respective URL.</p><p><strong><em>InputStream input = new java.net.URL().openStream(imgSrc): </em></strong>this downloads the logo from the url.</p><p><strong><em>Bitmap bitmap = BitmapFactory.decodeStream(input)</em></strong>: this code creates the logo bitmap.</p><p><strong><em>String title = document.title()</em></strong>: this automatically gets the title of the website.</p><p>These lines of codes work at the background process in the doInBackground() method and the respective results are displayed in the onPostexecute() method. Then the AsyncTask class is called to execute in the onCreate() method.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f67d7e641d6383191a35746e0f74c398/href">https://medium.com/media/f67d7e641d6383191a35746e0f74c398/href</a></iframe><p><strong>Step 5:</strong></p><p>Running the application gives;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/539/1*3gyvwXLuur8imIF1dvXKZA.png" /></figure><p>This brings us to the end of the tutorial… So far, Jsoup provides a very convenient API for extracting and manipulating data.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=594e89dc891f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Impact of Technology on Hotel Guest Experience in Nigeria]]></title>
            <link>https://princessdharmy.medium.com/the-impact-of-technology-on-hotel-guest-experience-in-nigeria-405504b8374a?source=rss-68a2b16fc497------2</link>
            <guid isPermaLink="false">https://medium.com/p/405504b8374a</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[hospitality]]></category>
            <category><![CDATA[hotel]]></category>
            <category><![CDATA[travel]]></category>
            <category><![CDATA[hotel-booking]]></category>
            <dc:creator><![CDATA[Damilola Omoyiwola]]></dc:creator>
            <pubDate>Tue, 21 Nov 2017 20:11:11 GMT</pubDate>
            <atom:updated>2017-11-21T20:11:11.040Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*47a3Z2NtCowqMweN.jpg" /></figure><p>Technology is a critical determinant in hotel guest experience. Hotels often utilize technology as a value-added amenity to help promote differentiation and enhance guest experience and satisfaction.</p><p>Many years back, Nigeria lagged some technological innovations due to cultural lag in the social system but the evolution of technology has brought changes for the convenience of the people. Technology is part of us as we make use of it in every aspect of our lives. Technology for consumers means an easy life and our appetite for this lifestyle is insatiable.</p><p>In a company where customers’ expectations for a positive experience run particularly high, technology may just provide the means for overcoming this challenge.</p><blockquote>“People want more control and we must give it to them,” said Sundar Swaminathan, a senior director of marketing at Oracle Hospitality.</blockquote><h3>Improved Experiences</h3><p>One of the impacts of technology in Nigeria is the experience people have before and during their stay in hotels. Fueled by technology and the immense power of the Internet of Things<a href="https://www.rentokil.com/blog/how-the-iot-and-big-data-can-improve-food-safety/"> </a>(IoT), consumers expectations are growing. IoT shows us that we no longer need to manage expectations because technology means anything is possible.</p><h3>Online Booking</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mhEEY1oyhZdowXNK.png" /></figure><p>The emergence of many and more hotel booking sites like <a href="http://hotels.ng/">hotels.ng</a> with it’s <a href="https://play.google.com/store/apps/details?id=ng.hotels.app">mobile application </a>are making it even easier for consumers to find the very best deals, the best adventures and the greatest experiences. The site helps customers book hotel rooms online, provide comprehensive help and support to clients and make the hotel booking process smooth and easy.</p><p>It also provides hotel recommendations and reviews, making sure that clients stay in good, clean and safe hotels all over the country. The site is a great news for travelers in Nigeria and even in <a href="http://hotel.africa/">Africa</a>.</p><h3>Flight Trip</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cvaD8BfTqcqHPG9T.jpg" /></figure><p>Technology has also helped in transportation system with different travel sites like <a href="http://fly.africa/">fly.africa</a> to help search and compare cheap flights from thousands of airlines, travel agents and travel sites.</p><p>Consumers can book flights from their locations to any airport in Nigeria, and around the world with this service. This site also helps in planning for leisure and business travel for ease and convenience.</p><p>Once a consumer arrives safely at the hotel, as a captive audience, technology can play a key role in setting great and first impressions. To satisfy growing needs, arriving guests could easily be lodged into their rooms of choice perhaps booked via the booking website or it’s mobile platform.</p><h3>In-Room Technology</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/774/0*8j3deJ_3PfF3E-O3.jpg" /></figure><p>The rise of the smart-homes with its connected light bulbs, thermostats, and smoke alarms, has inspired hotels to experiment with their own smart in-room technology. Yet, guest expectations of in-room technology are far more modest than hoteliers might imagine.</p><p>Once inside the hotel bedroom, guests are already able to access in-destination activity choices like internet access, TV etc. As hotel properties make the necessary WiFi enhancements, it helps to have a solution robust enough to withstand intermittent interruptions in connectivity.</p><h3>Conclusion</h3><p>While there is no doubt that technology has played a huge role in Nigeria, there are still some roles to play in shaping the hotels and transportation of the future. As hotels implement technological advances, there are new opportunities to get guests connected and deliver personalization. Travelers are willing to share their experiences to others during the stay.</p><p>To meet consumers’ high expectations, hoteliers need to know their interests, likes and dislikes to help deliver a unique and very personal experience. This can make a long-lasting impression and provide that sought-after memorable experience.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=405504b8374a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>