Mehedi Hasan Khan

Mehedi Hasan Khan

Programmer, Entrepreneur, Tech enthusiast.

2 posts
Securely store app data in Android - Android KeyStore to the rescue!

Securely store app data in Android - Android KeyStore to the rescue!

Storing app data

The go to option for Android developers for storing application data is the SharedPreferences and it serves its purpose very well. SharedPreferences stores all the data as plain text in a xml file. A capable user can get access to that file quite easily, hence it's discouraged to store sensitive data in SharedPreferences. But there are some

StepBuilder - Builder that guides you through the steps

StepBuilder - Builder that guides you through the steps

What is a Builder & Why?

Simply put, a Builder is a helper class whose sole purpose is to help build instances of a certain class. Now why would you need such a class? Let's see an example.


public class Server{
    final static int DEFAULT_PORT = 8080;

    private String protocol;
    private String url;
    private String ipAddress;
    private int port;
    private