Pages

Monday 14 March 2016

Android SQLite DB Sample - INSERT, UPDATE, DELETE


Features:   -  Create SQLite DataBase, Tables, Columns
                 -  INSERT  Data
                 -  UPDATE Data
                 -  DELETE Data
                 -  Drop Table IF ALREADY  EXIST

Download

Source on GitHub


Step 1 : Create A class for get-set Contacts:


Step 2 : SQL Database Handler class:

Step 3 : For adding new Contacts and Updating existing contacts here's the class:

Step 4 : MainActivity:

Wednesday 2 March 2016

Nimbuzz Android MUC Bot Coded in Java using PURE JAVA SMACK 4.1.4 API



All Available Features in MUC Bot:

- mem user
- kick user
- ban user (ipban user)
- grant mod., admin, owner
- add bot commander
- remove bot commander
- users greeting., etc

Requirements:

- Android 4.0.4 (Ice Cream Sandwich) or Above

Download

Download Full Source Code Available on my Github
STEP 1 : Add following dependencies in app-level build.gradle

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'org.igniterealtime.smack:smack-android:4.1.4'
compile 'org.igniterealtime.smack:smack-tcp:4.1.4'
compile 'org.igniterealtime.smack:smack-extensions:4.1.4'
compile 'de.greenrobot:eventbus:2.4.0'
compile 'com.android.support:recyclerview-v7:23.1.1'
}

STEP 2 : Create a singleton class for making AbstractXMPPConnection universal throughout app

STEP 3 : Create a New Service class for creating xmpp connection to the server and connection Listener to handle connection state & other xmpp basic capabilities on Service Create and run this service in Foregroung as well: