Skip to main content

Posts

Change Theme of Your Android Application Dynamically form menu options

In many  Android Application we are use that feature .User can set their theme color of Android Application  Dynamically .This feature helps to  make your App more Attractive.So, In this Tutorial we are create a basic application which helps to know about how it works and helps to use in your application So, Let's Get Start Now  1 .  Create a new Project and  take An Blank Activity  name as MainActivity  2 .  Create a One new  Java Class named as themeUtils.java where we are creating  Dynamic theme        on menu option click We are provided step by guide which helps to create dynamic themes on one click in Android Application Step-1 First we  define different  theme colors  in  color.xml file which helps to create styles of themes in your style.xml   your project  Insert this code in color.xml inside the <resource></resource> (res->values->co...

SQLite Database With Android

Android provides several ways to store user and app data. SQLite is one way of storing user data. SQLite is a very light weight database which comes with Android OS. In this tutorial I’ll be discussing how to write classes to handle all SQLite operations. SQLite is a opensource  SQL database that stores data to a text file on a device. Android comes in with built in SQLite database implementation. SQLite supports all the relation database features. In order to access this database you don't need to establish any kind of connections for it like JDBCODBC etc. In this tutorial I am taking an example of storing user Detail in SQLite database. I am using a table called UserMaster to store user detail. This table contains three columns  id (INT) , userid (VARCHAR) , username (VARCHAR) , password (VARCHAR) , address (VARCHAR) . Database- Package The main package is android.database.sqlite that contains the classes to mange your own database. In this Class we are creat...