For long-running or CPU-intensive tasks, there are basically two ways to do this: Java threads, and Android's native AsyncTask.
Use AsyncTask for:
Simple network operations which do not require downloading a lot of data
Disk-bound tasks that might take more than a few milliseconds
Use Java threads...
Wednesday, October 26, 2016
Sunday, October 23, 2016
About XMPP Chat server
XMPP is Extended Messaging and Presence Protocol. As the name suggests it is used for (instant)
messaging. It gives the presence of the other users. Whatsapp, Google chat etc use XMPP Protocol.
I have used Smack API for client side coding and Ejabberd as the server.
If you want to add some...
About XMPP Chat server
XMPP is Extended Messaging and Presence Protocol. As the name suggests it is used for (instant)
messaging. It gives the presence of the other users. Whatsapp, Google chat etc use XMPP Protocol.
I have used Smack API for client side coding and Ejabberd as the server.
If you want to add some...
Tuesday, October 18, 2016
Inheritance
Inheritance is one of the concept in object oriented programming language.
Inheritance allows the class to use the methods and properties from another class
The class which inherits the derived class is called sub-class and Base class is also called asSuper-Class
A Super-Class can have...
Monday, October 17, 2016
Constructors
Constructor is a block of code that allows you to create object of class.
Difference between Constructor and MethodsConstructor do not have abstract, final, static and synchronised access modifiers can have only public, private Where methods can have all of thisConstructor do not have any return types...
Saturday, October 15, 2016
Types of errors occur in JAVA
System Errors
Syntax Errors
Semantic Errors.
RunTime Errors.System Errors : This errors occurs in console.Before running the applications first system would checks the wether the system path is checked or program is installed.Sytntax Errors :This errors are actual errors which prevent the compilation...
Types of errors occur in JAVA
System Errors
Syntax Errors
Semantic Errors.
RunTime Errors.System Errors : This errors occurs in console.Before running the applications first system would checks the wether the system path is checked or program is installed.Sytntax Errors :This errors are actual errors which prevent the compilation...
Abstract Classes and Abstract methods
Abstract ClassesA class that is declared using "abstract" keyword is known as abstract class.
It may or may not include abstract methods which is abstract class can have concrete methods
(Method which has implementation) along with abstract method(without implementation) followed by semicolon
An abstract...
Difference between Abstract class and Interface
In this post will discuss about difference between Abstract class and Interface
abstract Classes Interfaces
1 abstract class can extend only one class or one abstract class at a time interface can extend any number of interfaces at a time
2 abstract class can...