Implementing High Scores in Android

To implement high scores in an Android game, there are a few options- To use LocalStorage. To use a DB locally. To use a cloud based DB service, such as FireCloud. In this post I will be describing about how I have implemented highscores for my application QuizApp using LocalStorage. I will be talking about the other two in a later post. SharedPreferences is used to setup an acess to key-value pairs that can be stored locally on the device. A key needs to be supplied for identifying the StoredPreferences uniquely, here we are using myPrefsKey as the identifier. ...

August 13, 2017 · 2 min · Shreyash Agarwal

QuizApp! for Android- What I learned developing my own quiz app

I have been using Android for the longest time I can remember, and I have never owned an iPhone. I love the Android platform and the openness it provides. My current device is a OnePlus One that is running Slim7 ROM. Android development has been on and off for me, but I was pretty familiar with Android because of my experience working in Ionic framework and a course in my college Curriculum called Mobile Application Development. I thought of creating an App for myself, and here is QuizApp!. ...

July 28, 2017 · 3 min · Shreyash Agarwal

How I got HTTPS for free for my domain

Getting https in important in today’s world, it conveys authenticity and trust to the user visiting a website. From what Google has to say about HTTPS- HTTPS protects the integrity of your website HTTPS protects the privacy and security of your users HTTPS is the future of the web How can you get HTTPS for free? Go to Cloudflare.com and create a new account. After creating your account, register your domain name with Cloudflare. This can be done with a free plan for personal use. DNS Records will be imported to Cloudflare when the domain is added. We need to ensure that we have enabled DNS and HTTP proxy for our records. This (the orange cloud) means that we are using the CDN provided by Cloudflare for our domain. In this step, you will also need to update the nameservers of the domain name to the ones provided by cloudflare. To do this, you will need to go to the control panel of your domain name registrar and edit the nameservers. For my domain it looks like this in the Godaddy>Manage Domains>Manage DNS>Nameservers. This is how it looks on my GoDaddy Control panel ...

July 21, 2017 · 3 min · Shreyash Agarwal

Welcome to My Blog!

Hello and welcome to my blog! I have previously used blogs on wordpress and blogger. On wordpress to write a blog called Pi2Projects, where I wrote about my experiments with the Raspberry Pi 2. I have pulled the blog down, and now this blog will be my main blogging medium now. Speaking of medium, I also have a profile there, you can follow me @shreyashag. I am using Jekyll to write this blog, which is a new experience for me but the workflow is a lot of fun. The post is written in Markdown format, and a commit generates the site for me thanks to Github Pages. I may consider moving the blog off Github Pages, because of some of the limitations of using Jekyll on Github Pages, such as being able to use only gems that are whitelisted by GitHub Pages. However, that will only happen when I need such functionality. Moreover, Jekyll provides for programmability, so if the functionality is not too complex, I’ll probably code it myself or search for it on the net. ...

July 19, 2017 · 2 min · Shreyash Agarwal