In some case, you might want to check your app is running in background or foreground, such as you want to show push notification message only when the app is in background. The following method will be very easy to know app running state.
...
We are sharing the best books for learning Java, which are read by almost every Java Developer, make you different and give an extra edge against the students who have just basic knowledge java.
...
In this post, I will show you How to count number of Words in the String. It's easy via array and string class.
For example : "Hello World"
Result : 2.
Coding:
public class StringDemo
{
static int i,c=0,res;
static int wordcount(String s)
{
char...
In this post, I will show you The difference between String, StringBuffer and String Builder. As you will find that there are minor differences between the above classess.
...
This question is mostly used as a start up question by Interviewers testing deep roots of the Collection. Some differences between ArrayList and Vector.
...
Now, Google Inc removed
GCM and start using FCM to push notification.
We 'll instruction to
you How to intergrate Firebase to your backend, so that you can send messages
from your server.
...