<?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 Pranav Pandey on Medium]]></title>
        <description><![CDATA[Stories by Pranav Pandey on Medium]]></description>
        <link>https://medium.com/@pranavpandeydev?source=rss-c2633c9fba2e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*1VdS0MgcfOw3laOJLLCRiA.jpeg</url>
            <title>Stories by Pranav Pandey on Medium</title>
            <link>https://medium.com/@pranavpandeydev?source=rss-c2633c9fba2e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 05:31:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pranavpandeydev/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[Dynamic Ads]]></title>
            <link>https://medium.com/@pranavpandeydev/dynamic-ads-ced339fce7b6?source=rss-c2633c9fba2e------2</link>
            <guid isPermaLink="false">https://medium.com/p/ced339fce7b6</guid>
            <category><![CDATA[google]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[admob]]></category>
            <category><![CDATA[libraries]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[Pranav Pandey]]></dc:creator>
            <pubDate>Thu, 07 Sep 2023 05:44:43 GMT</pubDate>
            <atom:updated>2023-09-07T05:54:00.418Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Header" src="https://cdn-images-1.medium.com/max/1024/1*y5_AVUf0WHdVVy2Q7jMcwA.png" /></figure><p>The initial setup and later experiences of using Google AdMob on Android.</p><h3>Background</h3><p>I have been publishing apps on <a href="https://play.google.com/store/apps/dev?id=6608630615059087491">Google Play</a> since 2013 and like any other person, always disliked the idea of implementing ads into my own apps as I believed that it would ruin the user experience. Although it&#39;s true in most cases, if done correctly it can help in generating some revenue from the non-paying users which eventually adds up to the motivation to keep working for them.</p><blockquote><em>Four years later, in 2017, I started exploring this domain but that was not an easy ride as I expected and it took rigorous efforts to setup and keep things on track.</em></blockquote><h3>A world of bots</h3><p>I already had a Google account which I was using to publish apps on Play Store and tried to sign up with it for AdMob as well. As expected for a beginner when working on Google technologies (just like their interviews), the account was rejected straight away with a message that <em>an AdSense verification was rejected for this account, please check in the AdSense console</em>.</p><p>I was wondering what’s AdSense doing here. Later, I realized that these services appear to be separate but somehow connected to each other. I dug deeper and found that I once applied for AdSense verification for my website but got rejected due to <em>insufficient content</em> and that was interfering with the AdMob account creation. There was no way to archive or remove that rejection from the account history, so I wrote several emails to the support team but either got automated or no response at all. I am an independent developer and handle most of the things by myself, due to this initial <strong>disappointment</strong> I decided to hold the idea for a while as I was up for some other more important stuff.</p><blockquote><em>I am curious to know why a trillion-dollar company’s one of the major businesses (advertisement) is operated mostly by bots and one can get nightmares when trying to get connected with an actual person in case of any issues.</em></blockquote><h3>A rare encounter</h3><p>In August 2017, I attended the first-ever <strong>App Excellence Summit</strong> in Bengaluru, India. This is the only tech-related event I have ever attended physically until now as an individual. Fortunately enough, they had a talk on AdMob and after that, I discussed my issue with the speaker. During that conversation, I got a hint about trying with some other Google account which I did later and beyond my expectations, the account got approved within a jiffy.</p><blockquote><em>As you can see, these technology events can be beneficial as still everything is not available online. So, I encourage you all to attend such events if you have supporting circumstances.</em></blockquote><figure><img alt="Badge for App Excellence Summit 2017" src="https://cdn-images-1.medium.com/max/1024/0*lV-DMEud304vEtnx.jpg" /><figcaption>Badge for App Excellence Summit 2017</figcaption></figure><p>Initially, I didn’t try with any other account because I refrain from creating multiple accounts for business-related stuff and always try to keep the source of truth minimum. Recently, I was able to close that older (rejected) account and now my AdMob and AdSense are connected with a single source as this blog is now approved via AdSense.</p><blockquote><em>Please do not ever try to use another account if you were, unfortunately, </em><strong><em>suspended</em></strong><em> due to policy violations as it will be </em><strong><em>banned</em></strong><em> again.</em></blockquote><h3>Implementation</h3><p>This Ad world is a complex system and requires various policy compliance and going through lots of not-so-user-friendly documentation to execute things correctly. That was my first encounter and I tried to take baby steps to at least understand the flow first. It took me a course of 2-3 years to be able to understand most of the stuff but that eventually turned out to be the most appropriate path to take in my case.</p><p>I was somewhat relieved after being able to create the AdMob account successfully. Now, I was figuring out the ways of showing ads in my apps. Most of my apps at that time were Sony small app which appeared on top of any task within a resizable window. There was the least possibility of showing ads there without affecting the user experience, so I decided to keep them ad-free forever.</p><p><a href="https://techtics.xyz/2019/11/08/rotation-orientation-manager">Rotation</a> was my only major app during that period and had been going through a rough <a href="https://techtics.xyz/2022/06/22/rotation-campaign">phase</a>. I suspected that introducing ads at this critical juncture would make things even worse, so I waited for some time and tried to build a strategy for a better future.</p><blockquote><em>I already had a future plan for Rotation, and it was about to see the light of day in early 2018. The ads were part of that </em><a href="https://techtics.xyz/2022/07/20/rotation-epilogue"><em>reboot</em></a><em> without compromising the user experience.</em></blockquote><h3>Banner</h3><p>Somewhere around 2018, I was about to release the <em>Beta</em> version of my app Rotation rebuilt from scratch to make things even better. Although the stable version was months away from its release, I decided to try and test ads as well to prepare for the future. Banner ads are the most suitable ones if the user experience is the top priority and I decided to put one at the very bottom of the screen.</p><figure><img alt="Banner Ad in Rotation, Palettes and Everyday" src="https://cdn-images-1.medium.com/max/1024/0*3aqhX8MfEfb5cxAc.png" /><figcaption>Banner Ad in Rotation, Palettes and Everyday</figcaption></figure><p>The whole user interface was built in such a way that it will shift the UI up only if an ad is available, otherwise, the whole screen will be used for the app interface. That approach helped in keeping the banner ad separate from the app components and I never received a single criticism related to them.</p><blockquote><em>For about 2 years, I kept using this only form of an ad in my apps until it started generating considerable amount of requests.</em></blockquote><h3>GDPR</h3><p>In 2019, GDPR privacy laws came into effect and there were lots of policy changes going on in the Ad world as well. The code I had written a year ago was not supportive enough to handle this major change and cumbersome migration path. Google was also aware of that and they had a dedicated library to detect the GDPR regions which I used to disable ads there and that cost a considerable amount of revenue.</p><p>I was in trouble again as until then I had three major apps available on Google Play serving ads in a similar way. Rather than updating all one by one, I decided to build a <strong>generalized</strong> path that would work as a plug-and-play system to handle these continuous changes in a better way.</p><blockquote><em>Software development is a dynamic environment where we have to embrace change all the time but when you work with Google technologies inside the mobile world, brace yourself for the toughest migrations as well.</em></blockquote><h3>Dynamic Ads</h3><p>In 2020, during the pandemic, the downloads of Rotation had seen a considerable amount of growth due to the lack of service centers for physically damaged devices. It turned out that the people were using it to fix the partially broken screen temporarily by forcing their devices to work in a particular orientation for important stuff like accepting calls. I am glad that out of nowhere, Rotation suddenly became a useful companion for people in the toughest times of this generation.</p><blockquote><em>Until then, I already had a set of open-source </em><a href="https://dynamic.pranavpandey.com/"><em>dynamic libraries</em></a><em> to make Android development better and this unexpected event gave me further reassurance to start working on a full-fledged library to display ads throughout the app with minimum effort.</em></blockquote><figure><img alt="Downloads of Rotation in 2020" src="https://cdn-images-1.medium.com/max/642/0*LgivWp8GU9uXOn-l.png" /><figcaption>Downloads of Rotation in 2020</figcaption></figure><p>I started developing a generalized interface in the form of <a href="https://github.com/pranavpandey/dynamic-ads">dynamic-ads</a> library with support for different ad types so that they could be placed within an activity just like any other view or component. It also had support for GDPR regions with the ability to show <strong>consent</strong> forms to the users if available. The whole architecture was designed in such a way that it would never make any ad request without doing proper checks based on the device and region. It had abstracted a lot of overhead from the app and all the major stuff related to ads now works silently in the background controlled by a separate module.</p><blockquote><em>Initially, it had only Banner and Native ads followed by a complete overhaul recently in 2022 with support for all kinds of ad types (Interstitial, Rewarded, etc.) served by AdMob.</em></blockquote><p>Although the development of the library took a lot of time while going back and forth through the documentation, after that I was able to implement it quickly in all of my three major apps and the results were more than satisfactory.</p><blockquote><em>By default, it uses a </em><em>G rating to cover most of the use cases and to avoid any policy violations due to the mature content but it is fully customizable as a whole or on a per-ad basis.</em></blockquote><h3>Native</h3><p>Native ads are the best when we have to blend them well with the user interface but that’s not an easy task either. AdMob servers just provide data in the form of text (JSON) which a developer has to place on the screen according to the requirements. As I already had developed a <a href="https://github.com/pranavpandey/dynamic-support">dedicated library</a> to build user interfaces, I decided to extend it further and designed a built-in generalized layout to show native ads. It is fully customizable and also has the ability to provide a different layout on demand.</p><p>During that period, I was also working on my next major app <a href="https://techtics.xyz/2022/01/15/barquode-matrix-manager">Barquode</a>, which is a tool to create, capture and manage various matrix codes including QR codes. It has a preview activity to show the code along with various sharing options and I decided to put a native ad at the top of the preview for the non-paying users which helped me in testing the library as well.</p><blockquote><em>Native ads should be placed where the possibilities of generating eCPM are high.</em></blockquote><h3>Interstitial</h3><p>These are the full-screen ads that navigate away from the app and reward most as a developer. We should always use them carefully as they are one of the major reasons for limited ad-serving enforcements or even account suspension if used incorrectly. Google recommends that these ads should be shown at a special event or at certain intervals but tracking them is still an overhead that needs to be maintained apart from the core app functionality.</p><p>I built a dedicated system to track various events within the library with the ability to trigger ads on demand if available for the user. This led to the introduction of interstitial ads into my apps recently, shown at certain intervals and special events like <a href="https://techtics.xyz/2021/08/13/zerocros-tictactoe-game">game completion</a>.</p><blockquote><em>Interstitial ads should be introduced after gaining a considerable amount of users and always use them carefully. They can be limited within the AdMob console to avoid any invalid traffic.</em></blockquote><h3>Others</h3><p>There are even more ad types including <strong>Rewarded</strong> ads which a developer can use to unlock some features for a limited period as a reward after watching a video. Please visit the official <a href="https://developers.google.com/admob/android/quick-start">quick-start guide</a> for more info.</p><h3>Good luck!</h3><p>I hope this post will help you in implementing things better in your apps. When working with AdMob…luck, I mean a lot of luck is required to set things up correctly and keep them stable. From my experiences, I have learned some key points that I am following for my apps for the last 4 years:</p><ul><li>Do not show more than one ad type on a single screen.</li><li>Do not request ads before opening the app or drawing the screen.</li><li>Disable personalized ads if the app is targeted to children of age below 13.</li><li>Always take consent from the user if required before requesting ads from the server.</li><li>Configure Ad rating within the console and while making the ad request on the device according to your target audience.</li><li>Introduce various ad types gradually rather than in one go to analyze the traffic properly.</li><li>Be careful when working with interstitial ads and introduce them later at certain intervals or special events.</li><li>Be careful when giving access to some other account as it may affect yours if it has any policy violations.</li><li>Avoid sharing ad-supported versions with family members or try to add their advertising ID as test devices in the AdMob console to suppress possible invalid traffic from them.</li><li>Always try to be compliant with both the policies, the AdMob and the platform on which you are distributing your app like Google Play.</li><li>Use <a href="https://developers.google.com/admob/android/mediate">mediation</a> to serve ads from multiple sources and to keep things going in case of any issues like limited ad serving.</li></ul><p><em>Originally published at </em><a href="https://techtics.xyz/dynamic-ads"><em>https://techtics.xyz</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ced339fce7b6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Rotation | Prologue]]></title>
            <link>https://medium.com/@pranavpandeydev/rotation-prologue-b6d1b2c7d6f9?source=rss-c2633c9fba2e------2</link>
            <guid isPermaLink="false">https://medium.com/p/b6d1b2c7d6f9</guid>
            <category><![CDATA[product-development]]></category>
            <category><![CDATA[androiddev]]></category>
            <category><![CDATA[product-design]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Pranav Pandey]]></dc:creator>
            <pubDate>Wed, 26 Jan 2022 18:30:17 GMT</pubDate>
            <atom:updated>2023-09-07T06:00:49.729Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Header" src="https://cdn-images-1.medium.com/max/1024/1*JMyggw6hGHuFWtjz-U31_A.png" /></figure><p>A development story depicting some technical aspects of my app <a href="https://play.google.com/store/apps/details?id=com.pranavpandey.rotation">Rotation</a>, which has proudly served the Android community since 2014.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*na2GRk2sRR1J3PiE.png" /><figcaption>Latest Design for Rotation</figcaption></figure><h3>Origin</h3><p>In early 2014, I was about to complete my bachelor’s degree and published around 10 apps on Google Play. Although I had only just completed the foundational early phases of Android development, my excitement and passion motivated me to tackle a much bigger dream. Hence, <strong>Rotation</strong> became the forefront of such technical ambitions which I wanted to tackle and deliver to the world. The combination of drive, passion and other aspects of this relatively young mobile industry, collectively inspired me to begin my ambitious project. However, I could never have imagined that Rotation would lead to an endless, exciting, and challenging career path.</p><h4>A bug in the system</h4><p>Prior to Rotation, I had developed a small app for Sony devices to toggle the system auto-rotation. However, due to a bug in their system, I was unable to write the system settings properly on certain devices. This led me to begin wondering if there might be some way to control the device orientation regardless of the app, and hence the vision was born. I tried to go deeper and found that it is possible by using the <strong>overlay</strong> via WindowManager API. Fortunately, I had been familiar with these APIs, as Sony&#39;s small app framework was also using them under the hood.</p><h4>Devices getting larger</h4><p>Controlling app orientation has always been a challenge for users having larger devices. I was fully aware of this situation and sometimes an app changes orientation unexpectedly which can ruin the user experience. I begin realizing that developing a per-app-based system would be highly beneficial to users, and would also encourage other app developers to support various orientations if the popularity of apps like Rotation were to increase. This intuition is precisely what ended up happening over the years. That is, as the popularity of mature and robust apps like Rotation skyrocketed to the top of the charts, increasingly we have seen other developers begin their own journey in this arena.</p><h4>A room for competition</h4><p>As additional research, I had done some quick searches on Play Store to find and analyze any existing solutions. Interestingly enough, I found a few orientation apps, with not-so-modern user interfaces. In those earlier years, many such developers were still focused more on the <strong>U</strong>ser <strong>I</strong>nterface (and not the <strong>U</strong>ser e<strong>X</strong>perience). Hence, this discovery added further confidence in the planning and moving forward of Rotation as there was room for <strong>survival</strong>. I was confident that if I designed Rotation to be aesthetically modern and abiding by the latest design guidelines of Google, then Rotation would carve a great new path and gain that much more desirability and popularity on modern worldwide devices, and this is precisely what we witnessed happening for Rotation on Google Play.</p><h4>Some existing users</h4><p>Some users from my prior apps had also contributed great suggestions by recommending a solution that would extend the functionality of my Sony small app further, just as I had been thinking of doing all along. This of course helped add further reassurance that my ideas for Rotation were heading the right way for consumers.</p><blockquote><em>I sometimes still get surprised when people send an email or provide Play Store reviews hinting at the unexpected use case scenarios for Rotation, which even I had no idea about at the time of development.</em></blockquote><h3>Initialize</h3><p>Interestingly enough, I have never designed a mock-up for my own apps. Therefore, the reader is likely wondering how I can be managing so many challenging aspects of my apps in real-time and all alone? Well, initially it would have been a time-consuming overhead for me to code in terms of design mock-ups. However, designing a mock-up is the ideal and recommended way for development, if one has a team of dedicated full-time developers assigned to various aspects of a project. However, as I am an independent developer and faced with the challenge of handling many things by myself, naturally my workflow and ways of tackling various challenges are unique and different. I generally start by designing a product icon and selecting the branding colors and themes, and then it becomes easier for me to code with respect to these two aspects in mind.</p><blockquote><em>It’s also important to note that since the inception of Rotation, the engineering infrastructure for all of my apps has been meticulously crafted to be ready for compliance with the dynamic theming capabilities introduced since Android 12.</em></blockquote><h4>Icon</h4><p>The initial icon of Rotation was just a rectangle surrounded by two arrows and was built using a combination of Microsoft <em>Paint</em> and <em>PowerPoint</em>. Wait…what? Yes, you read that correctly. Since I was using these two things a lot when creating presentations for my college, I did not try to break the flow. As I was still kind of a beginner in designing graphics, the earlier designs were not as impressive as they would become later but were still good enough to get things started.</p><blockquote><em>A great engineer should take a pledge to never judge anyone based on the technology stack or tools they are using. You never know their perspective and circumstances! So just try to find the best ways that suit the situation.</em></blockquote><p>Today, we have a lot of great free tools available that are easily accessible to everyone. Hence, chances are rare that one would ever need to resort to extreme workflows. I simply share my own personal experience for educational and motivational purposes, as a means to show that even one person can accomplish a lot! Many developers may complain about the languages, tools, stack, etc. But in the technical world, experience has proven to me that:</p><h4>Nothing is perfect but can be better!</h4><blockquote><em>It’s very easy to be critical and start finding issues in a software product or tools. You just need time and motivation to begin the change!</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*-l0ZQmyzdWEghsFl9Fzpzg.png" /><figcaption>Original Branding for Rotation</figcaption></figure><h4>Design</h4><p>The original <em>Material Design</em> was announced at Google I/O in 2014 and we had a glimpse of the upcoming overhaul with Android L or 5.0 (Lollipop). The official support libraries were nowhere near their current state and all the developers were trying to mimic the mock-ups by using the existing resources. There were lots of changes in Android 5.0 and what you see today is all started with that iconic release which had its own flaws leading to a rewrite of the animation system in Android 6.0 (Marshmallow).</p><blockquote><em>Coincidently, we have another </em><em>L (Android 12L) release around the corner when I am writing this journey.</em></blockquote><p>The major innovation from a design perspective has been a light system theme, similar to Android 2.2 (Froyo). However, in those days we had a habit of using a darker theme which we were used to since Android 2.3 (Gingerbread). As an indie developer, such design shifts were challenging because I already had several apps on Google Play which were using a dark theme. I just wanted to build my next app around the same look and feel that I had engineered. Finally, I decided to include both light and dark themes available from the onset of the release of Rotation. I was unaware that this emotional decision would cost me a considerable amount of time as my expectations were quite high and I did not want to limit that to just a few static colors.</p><h4>Inspiration</h4><p>Since the engineering concepts behind Rotation were quite technical in nature, I wanted to keep the design closer to the system which would thereby also help minimize the learning curve for the users. The initial results were adequate for a while but later followed by a complete overhaul in 2018.</p><blockquote><em>Such deep analyses paved the way for the development of the </em><a href="https://theme.pranavpandey.com/"><em>Dynamic Theme</em></a><em> engine, which I am using in my apps since 2019.</em></blockquote><h3>Commit</h3><p>I had a design in mind and was figuring out the best development approach to make that happen. The fortunate thing back then was that we didn’t have a plethora of choices to consider. Although choices can sometimes provide certain advantages and options for development, beginners can get quite lost if there is no clear path of knowing <strong>when to choose what</strong>.</p><h4>Eclipse with ADT</h4><p><em>Android Studio</em> (the official IDE for Android) was still in the beta stages even after a year of its official announcement in 2013. Fortunately, I already had a fair amount of experience with <em>Android Developer Tools</em>, which enabled me to continue using that for my next app. The other reason for not being an early adopter was not having a powerful machine, especially an SSD. The <em>Gradle</em> build system was new to us and it had its own conveniences, but some shortcomings too. The significant amount of time required just to initialize, open or build a project was difficult to bear and demoralizing. Additionally, when you are a self-taught independent developer, even the smallest distractions and inefficiencies take away a lot of motivation and can lead one to often wonder if our code has some inherent inefficiencies, or might be entirely impossible to build on our available development machine.</p><p>The <em>Eclipse</em> IDE had a lot better experience at that time, so I just created a new project inside that for the sake of better stability and productivity. It also loaded my projects instantly and was working quite well on my machine with average specifications.</p><blockquote><em>Last time I used Eclipse with ADT was in 2020 (for my initial projects), but later I migrated everything to Android Studio.</em></blockquote><h4>The Java programming language and XML</h4><p>I think it’s difficult to imagine Android without Java and an app like Rotation would not be possible with <em>hybrid</em> or any other approach. I still rely heavily on Java for my major projects and they all are working quite nicely even on Android 12L devices.</p><p>XML is another thing that is still prominent in the Android ecosystem and back then we had this only choice to design the layouts too. It took me fairly less time to design some complex layouts by just using the XML system and they still play a vital role in my apps and open-source projects. Now, we have various alternatives, and they all have certain advantages; however, choosing the right one according to requirements can be a time-consuming endeavor, so I am still following the good old base I have built (over the course of 8 years) and gradually trying to update with better alternatives.</p><blockquote><em>Resisting a major change is human nature and it’s even more evident in the technology world where so many intricate components are linked together. Fortunately, I think this is also the major reason all my apps still support Android 4.1 (API 16) all the way up to the latest Android 12L (AP 32). Sometimes, not re-inventing the wheel keeps us more productive as well.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*_0TbTrFkVQd0S4ML.png" /><figcaption>Original Design for Rotation</figcaption></figure><h3>Publish</h3><p>After some rigorous experimental labor and efforts, I was able to build an initial version of Rotation which managed to surpass even my own expectations! It had so many features apart from its core functionality (orientation manager) like the various customization possibilities, dark/light themes, backup/restore, floating head, notification, widgets, shortcuts, automation and many more. This is why Rotation has not only become very popular on Google Play (although I still work hard for continued success), but Rotation also serves as a rich reservoir of experience that I can draw from and apply to other important projects.</p><h4>7-day trial with a Key to unlock</h4><p>In July 2014, Rotation went live on Google Play as a 7-day trial with a separate paid app (Key) to unlock it for an unlimited time period. This decision was unexpected as I was moving along with the competition and later I switched to the <strong>freemium</strong> path to make it even more accessible. That transition was tough and it left me in the dilemma, even today I am not sure which of the path was actually better but the amount of time I have invested in Rotation is just beyond the limits.</p><blockquote><em>I still wonder how I built Rotation from scratch with just barely over a year of programming experience. Sometimes, you just need to keep doing things that you like the most and I still aspire to create more Android apps with even better experiences.</em></blockquote><h4>A storm was waiting</h4><p>That was exactly the launch I was expecting but it’s still difficult to predict the outcome without building the product. Things were good in the beginning and I was happy with what I did in a short span of a few months. It even got featured on various blogs including XDA but the business model could be better and the constant Android API changes were also demoralizing for an app like Rotation. It took endless efforts to keep it live on Google Play and I wish to share that <a href="https://techtics.xyz/2022/06/22/rotation-campaign">struggle</a> someday.</p><p><em>This post was reviewed by </em><strong><em>Alexander Madani</em></strong><em>, the developer of the </em><a href="https://play.google.com/store/apps/details?id=com.pristineusa.android.speechtotext"><em>EZ Notes</em></a><em> app which is indirectly connected to this world. I hope you will be able to experience that journey too.</em></p><p><em>Originally published at </em><a href="https://techtics.xyz/rotation-prologue"><em>https://techtics.xyz</em></a><em> on January 27, 2022.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b6d1b2c7d6f9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Host static websites for free on GitHub]]></title>
            <link>https://medium.com/@pranavpandeydev/host-static-websites-for-free-on-github-9af67b5d6449?source=rss-c2633c9fba2e------2</link>
            <guid isPermaLink="false">https://medium.com/p/9af67b5d6449</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[website]]></category>
            <category><![CDATA[hosting]]></category>
            <category><![CDATA[web]]></category>
            <dc:creator><![CDATA[Pranav Pandey]]></dc:creator>
            <pubDate>Fri, 07 Jul 2017 08:17:14 GMT</pubDate>
            <atom:updated>2023-09-07T05:56:05.853Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Header" src="https://cdn-images-1.medium.com/max/1024/1*xCoVyg3EEvcNVArYm8pVMA.png" /></figure><p>Having our own website can be beneficial to get a better opportunity or to make us stand out and shout in this overcrowded market, but there are very few people who want to spend money to make one and keep it running. If I say <strong>there is no need to pay extra money</strong> to make your personal website or portfolio with full control then, what would you say? <em>Please read below to know more and how you can make it happen.</em></p><h3>Prerequisites</h3><ul><li>A GitHub account to host your website. You can register for a GitHub account <a href="https://github.com/">here</a>.</li><li>Git to push your website on GitHub. You can install git from <a href="https://git-scm.com/download">here</a> depending on your platform (Linux, Mac or Windows).</li><li>A good code editor to build or edit the website. You can download <a href="https://atom.io/">Atom</a> or <a href="https://notepad-plus-plus.org/">Notepad++</a> depending on your platform.</li><li>A static website which we are going to host. This is optional and you can develop or update the website later.</li></ul><h4>Custom domain</h4><ul><li>A domain which you want to connect with the website. This step is optional and only required if you want to use your own personalized domain. You can buy a domain name on <a href="https://godaddy.com/">GoDaddy</a>, <a href="https://www.namecheap.com/">Namecheap</a>, or <a href="https://www.google.com/#q=buy+domain+name">anything else</a>. Please don&#39;t buy their hosting service as we are going to host the website for free on GitHub.</li></ul><h3>Background</h3><p>Above, I have discussed git which is a version control system used to maintain code or source code. Here, we are going to use some of its commands but it is a very useful and powerful tool making the developer&#39;s life easier in every software industry. If you want to learn more about git, you can take a very well-written and free course at <a href="https://in.udacity.com/course/how-to-use-git-and-github--ud775/">Udacity</a>.</p><p>Here, I have written static website, what does it really mean? Static websites are simple HTML pages that cannot perform server-side operations. So, you cannot host your PHP blog, Node.js or web app with this method, you can use <a href="https://jekyllrb.com/">Jekyll</a> for blogging or convert your WordPress blog into a static website by using this <a href="https://wordpress.org/plugins/simply-static/">generator</a>.</p><p>So, there are some limitations but I think we can live with that as still we can do enough amount of work with static websites. Still not sure? Please check out <a href="https://pranavpandey.com/">my personal website</a> which is completely a static website built with <a href="https://www.polymer-project.org/">Polymer</a> and can be hosted by using this technique.</p><h3>Prepare the website</h3><p>First of all, we need to initialize the website structure which we can put on our GitHub account. For this, you can use any static website with an index.html page in its root directory.</p><p>If you have not created the website yet then, just follow the steps below to create a website for testing, you can update it with the actual website later.</p><ul><li>Create a new folder or directory, say website.</li><li>Create an index.html file inside this folder.</li><li>Place the below code in it and save.</li></ul><pre>&lt;head&gt;<br>  &lt;title&gt;My website&lt;/title&gt;<br>&lt;/head&gt;</pre><pre>&lt;body&gt;<br>  &lt;h1&gt;My website, Coming Soon!&lt;/h1&gt;<br>&lt;/body&gt;</pre><h3>Create a repository</h3><p>We have successfully created our website, now we need to place or push this collection of codes called as source code on GitHub. For this, we first need to create a repository or repo with our registered account.</p><ul><li>Login with your <a href="https://github.com/login">GitHub account</a>.</li><li>Create a <a href="https://github.com/new">new repository</a> with the name username.github.io. Here, username is your GitHub account user name.</li><li>Now, we have successfully created a repo, it is just a place on a server that will store our website to serve it globally.</li></ul><h3>Push the website</h3><p>Now, we are going to push our website on GitHub. For this, we first need to commit the code locally. Please follow the steps below to make your first commit.</p><ul><li>Open a terminal or command prompt in the website folder.</li><li>Add all the files in the staging area by running the below command.</li></ul><pre>git add -A</pre><ul><li>Now, type a commit message and commit.</li></ul><pre>git commit -m &quot;Initial commit&quot;</pre><blockquote>If you are running git for the first time then, you need to setup your git username and email to do your first commit. It can be done by using the below commands.</blockquote><pre>// Configure name<br>git config --global user.name &quot;Your Name&quot;</pre><pre>// Configure email<br>git config --global user.email &quot;<a href="/service/mailto:email@example.com">email@example.com</a>&quot;</pre><p>We have successfully committed our website code. Now, we will add origin so that we can push this code to our GitHub repo. To add origin, go to your GitHub repo page and click on Clone or download button. It will show a URL something like https://github.com/username/username.github.io.git. Copy this URL and run the below command in your website directory to add the origin.</p><pre>// Add origin<br>git remote add origin <a href="https://github.com/username/username.github.io.git">https://github.com/username/username.github.io.git</a></pre><p>Now, we have added the origin and are ready to push the code on the server. Run the below command to push the code in the master branch of the origin.</p><pre>git push origin master</pre><p>It will push our local code to the GitHub repo which you can check by visiting the repo page in the browser. It will show all your committed files.</p><h3>See it running</h3><p>Now, we are done and you can check your website running at the following link.</p><pre><a href="https://username.github.io/">https://username.github.io</a></pre><p>Did you like it? It is the easiest and fastest method to make a website live for free! Now, a question arises, what if I want to use my own domain called as custom domain? The answer is pretty simple, it is also possible with GitHub and you don&#39;t need to pay any extra money. Sounds great? Let&#39;s try to integrate your custom domain to give it a more personalized feel.</p><h3>Connect with a custom domain</h3><p>To connect our website with a custom domain we need to modify our website files and DNS configurations.</p><ul><li>First, go to your website folder and create a new file CNAME. Please make sure that don&#39;t give it any extension.</li><li>Now, edit this file and paste your domain in it and save.</li></ul><pre>yourdomain.xyz</pre><ul><li>Again, commit the code and push it to GitHub.</li></ul><pre>git add -A<br>git commit -m &quot;Add CNAME&quot;<br>git push origin master</pre><p>Now, we have modified our website so that it can point to our custom domain. Similarly, we need to modify the DNS configuration so that it can point to the GitHub server. For this, we need to add A records and CNAME in the DNS configuration.</p><ul><li>Log in with your domain registrar account (GoDaddy, NameCheap, etc.).</li><li>Select your domain and go to the DNS management or configuration.</li><li>Delete any previous A records and add these two A records. You can read more on this <a href="https://help.github.com/en/articles/setting-up-an-apex-domain">here</a>.</li></ul><pre>// 1st A record<br>type: A <br>name: @ <br>IPv4: 185.199.108.153<br>Automatic TTL</pre><pre>// 2nd A record<br>type: A <br>name: @ <br>IPv4: 185.199.109.153<br>Automatic TTL</pre><pre>// 3rd A record<br>type: A <br>name: @ <br>IPv4: 185.199.110.153<br>Automatic TTL</pre><pre>// 4th A record<br>type: A <br>name: @ <br>IPv4: 185.199.111.153<br>Automatic TTL</pre><ul><li>Save and done.</li><li>Here, we are just pointing our domain to the GitHub servers by using their IP addresses.</li></ul><p>Now, check the website at your custom domain. It should work or wait for 2–3 minutes.</p><h3>Conclusion</h3><p>Great! We have successfully hosted our website on GitHub without any extra cost. Please keep in mind that this is not the only way, there are several other possibilities like <a href="https://firebase.google.com/docs/hosting/">Firebase Hosting</a> which I will discuss later. We can also partially secure our website by using <a href="https://www.cloudflare.com/">Cloudflare</a> free SSL. Please ask questions or share your feedback in the comments section to make it better.</p><blockquote>This is not the end, keep exploring to find out the better possibilities and stay tuned to know more about such tactics of web!</blockquote><p><em>Originally published at </em><a href="https://techtics.xyz/host-static-websites-for-free-on-github/"><em>techtics.xyz</em></a><em> on July 7, 2017.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9af67b5d6449" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>