Different Ways to Store Data in Android

Each application will need to store data in one way or another. Such data can be user settings, application settings, user data, images, or a cached data

Shared Preferences

Shared preferences is used to save primitive data in key-value pairs. Android platform stores Shared Preferences in an xml file in a private directory. An app can have multiple Shared Preferences files. Ideally, you want to store application preferences in Shared Preferences.

Internal (Private) Storage

Internal Storage is used to store persisted data to the device filesystem, but you do not want any other app or user to read this data. The data stored using the Internal Storage method is completed private to your application and are deleted from the device when your app is uninstalled.

External Storage

The user can view the file and data saved with this method.

For write permission, you must request WRITE_EXTERNAL_STORAGE permission.

For read permission, you must request READ_EXTERNAL_STORAGE permission

Beginning with Android 4.4, you can actually write to a “private” external storage folder without requesting WRITE_EXTERNAL_STORAGE. The “private” folder can be read by other applications and by the user, however, data stored in these folders are not scanned by the media scanner. This app_private folder is located in the Android/data directory, and is also deleted when your app is uninstalled.

Beginning with Android 7.0, you can request access to a particular directory (such as picture directory or documents directory) instead of entire external storage. This is referring to as scoped directory access.

SQLite database

SQLite database are app specific. It is available to the app, but not to outside application.

What is React Native

React Native is a JavaScript framework for creating User Interfaces. It is created by Facebook.

You can use React Native to create Android, iOS, and UWP native apps.

Some benefits of using React Native:

  • Once you modify the code, you can quickly view the change on mobile device.
  • React Native interacts with the native components of the devices and renders code to native APIs
  • Opensource
  • Ready-made components – reduce app development process
  • Reliable and stable – Big companies are using it such as Facebook, Instagram, Airbnb, etc.

How to Remove NoFollow From Links in WordPress Comments

By default, any links you have in your WordPress comment section have nofollow attribute. Removing nofollow attribute from links in comment section would encourage your visitors to post comments. That is because it provides backlinks to their websites. Would you remove nofollow attribute from links in comments? If the answer is yes, this tutorial is for you. This tutorial will show you how to do this without install a WordPress plugin.

Dofollow commentluv
[Continue Reading…]

8 Ways to Optimize Images for Search Engine (SEO)

Using images in your article provides better user experience and engagement. Image can also bring good traffic to your website from search engine. Thus, image plays an important role to your website’s SEO and help you rank higher. In this article, you will learn how to optimize your image for your website.

Image optimization for search engine
[Continue Reading…]

How to Install a WordPress Plugin – Step by Step

What is WordPress Plugin? A WordPress plugin is a piece of software that contains functions that can be added to your WordPress easily to enhance and customize your WordPress site.

After you installed your WordPress, you can search for a WordPress plugin to add to your website. There are thousands WordPress plugin available in the official WordPress Plugin directory. You can search for the one that you want to add. This instruction will show you 2 ways to add those plugin to your WordPress site.

Method 1: Install WordPress plugin inside the WordPress admin area.

[Continue Reading…]

How to Delete Old Twitter Tweets

Twitter is a great social network that can help you promote your services, gain more traffic to your website. But, for any reasons, you want to delete your old Twitter Tweets, yes, you can delete them one by one. What about if you have hundreds or thousands tweets. It would be a tedious job if you have to delete all those tweets manually.

Luckily, there is an online service that helps you to delete all your old Tweets for free.

Before you delete any of your Tweets, it is recommended that you backup all your Tweets. You can login into your account , scroll down, and click on “Request your archive” to request an archive of all your Tweets.

Twitter will email you a link to download your archive of tweets

Now, you can use Tweetdelete to delete your old tweets. This service is free and it can delete all your tweets at once (up to 3,200 tweets). It also allows you to set a time when to delete your tweets on a regular basic. For example, you can choose to delete all tweets that is older than 1 year old. All you have to do is to signup and give it a permission to access to your account. You can revoke this access anytime (in your Twitter account) after you delete all your old tweets if you want to.

If you have more than 3,200 tweets, you can try to run this many times until you delete them all.

How to Add the Official Twitter Follow Button to Your Website

Adding Twitter Follow Button on your website makes it easy for your visitors to find your profile and follow you on Twitter directly with just a click. This will allow you to have more followers, more users, more traffic, and more engagement to your website.

What is this button do? When people click on this button, they will be able to see your twitter account information such as following/follower and a few Tweets, and then they can follow you on Twitter.

The following instruction will show you how to add this button to your website:

Step 1: Login to your Twitter account

Step 2: Go to https://publish.twitter.com/

[Continue Reading…]

How to Customize Your WordPress 404 Page

It’s important to ensure that all links on your website are accessible and functional. However, there’s always a possibility that your visitors may click on a non-existent link and end up on the 404 Error page.

When this happens, your visitors may become disoriented and leave your website, resulting in a loss of traffic. To prevent this, it’s a good idea to customize your 404 Error page with helpful information instead of relying on the default page or not having one at all.

[Continue Reading…]

How to change your WordPress password using phpMyAdmin

For any reason, you can’t access to your WordPress admin dashboard and you can’t reset your password using the WordPress UI interface. You lose control your WordPress site.

In this article, we will show you, how you can reset your WordPress password using phpMyAdmin interface. The steps are quick and easy to follow:

Step 1: Login to your phpMyAdmin dashboard

Step 2: Click on your WordPress database -> wp_users ->click on edit (the row with your WordPress username)

Update WordPress Admin Password using phpMyAdmin

Step 3: In the user_pass, change the function to MD5 and the value to your new password, then click Go

Now you should be able to login to your WordPress using your new password.

SEO Friendly URL Structure

According to Google, your website URL structure is displayed in a breadcrumbs-like format on mobile search result.

This is to help mobile searchers to understand your website better. Having a well URL structure is important. If you are using WordPress and your site is new, you should update your permalink to use the following link structure


To update your permalink, you can login and update at “Settings -> Permalinks” as follow and click “Save Changes

WordPress Custom Structure
Page 3 of 6 1 2 3 4 5 6