Android SQLite database step by step guide

SQLite database is an open source relational database and is a default database application for Android.

SQLite database is scaled down version of MySql, PostgreSql and popluar databases.

Every App has its own SQLite database.

This SQLite database is accessible by any class in the App, but not by other App.

Continue reading

Deep drive into Android storage

Android provides a variety of options for storage like, SharedPrefernces:- Stores data in key-value pairs SQLite:-Stores data in the relational database File Storage:- Store raw files on phone memory or SD cards Cloud Storage:- Any 3rd party or custom made external data storage API’s. Shared Preference It stores data in the key-value pair like in […]

Continue reading

API REST SOAP

API: Application program interface It is a way(code) that allows two different applications to communicate with each other. REST REpresentational State Transfer(Rest), is an architectural style for providing standards between computer systems on the web, making it easier for systems to communicate with each other. Do this: https://www.codecademy.com/articles/what-is-rest   SOAP is a protocol. It stands […]

Continue reading

Convert feeds to json

 

Continue reading

scraper using simple_html_dom.php

Let start with simple_html_dom.php, it an HTML DOM parser, which enables us to find tags on an HTML page and extract content from it. You can download the files from the officail link: link Example 1: To find all images on the website.

Example 2: To find the content of td with class name […]

Continue reading

Change detect in web page

Some time we want requires to detect change in website. It can done easily using few lines of php codes. Just generate md5, of complete website.

  By comparing old and new md5 values, we can detect change.  

Continue reading

MVC variance

You can build software application without using these pattern, but using you will achieve:- 1) separation of concerns design principle(https://en.wikipedia.org/wiki/Separation_of_concerns) 2) improves maintainability of the application 3) improves testability of the application MVC It helps you write better organised, and therefore more maintainable code. Instead of writing all code in one, MVC separated it into […]

Continue reading

Architecture vs Design pattern

In the software world, people often face same type problems repeated in n numbers of ways, So people tried to find patterns to generalise the problems. Pattern: A pattern means regularity, i.e. the same thing repeating in different ways. These Patterns are well-known methods for solving problems in a way that has proven itself many […]

Continue reading

Points to write an industry standard code

One can improve one’s handwriting by writing more and more. Similarly one can do with coding to improve it. In industry, people are coding for a long time, and they come up with few recommendations for efficient coding. In short, they called it “SOLID”. SRP: Single Responsibility Principle A class should have one and only […]

Continue reading

Android services tutorial-Do things in background

Services are long-running processes in the background. It doesn’t have the UI(user interface). By default, Services run on Main Thread. We should you thread for long-running operations. Independent of activity, i.e. it doesn’t matters whether the activity is running or destroyed. It runs beyond the life cycle of App. If your service need to run […]

Continue reading

3 Ways to maintain Seo ranking

You can improve website ranking, by just following few basic steps. 1)Content For visitor Content is most important. Keep posting new things and try to be original. Search engines prefer the website that contains in-depth information on any topic. Formatting of articles is also important Use only <H1> heading tag; you may use the other […]

Continue reading

Introduction to Seo?

What is Seo? According to Wikipedia “Search engine optimization (SEO) is the process of affecting the online visibility of a website or a web page in a web search engine’s unpaid results—often referred to as natural, organic, or earned results.” More visibility of websites more traffic. Need for Seo? Back in 2005 to 2010 there […]

Continue reading
Android Activity Lifecycle

Android Activity Lifecycle

Android activity LifeCycle is a sequence of callback methods provided by the Android system for the different stages of App life cycle.

Just like main() as a starting point in c/c++, java etc. we have onCreate() callback method in android.

Continue reading

Remove .php extension with .htaccess

You may have noticed that in certain websites don’t have any extension in its Url. Example: www.example.com/page.php www.example.com/page It can easily done using  .htaccess files. An .htaccess file is an ASCII file. It is a configuration file for use on web servers running the Apache Web Server software. When a .htaccess file is placed in […]

Continue reading

Date Time in PHP

Date/time is required in almost all the projects. This article is all about how to use date/time efficiently. First thing people often faces is setting timezone. To check default timezone:-

or

Output:-

To set timezone After finding timezone, sometime we want to change it.

Example: date_default_timezone_set(‘Asia/Kolkata’);// this will set timezone to’Asia/Kolkata […]

Continue reading