Month: June 2015

$_POST array empty? Using JSON with $_POST.

Despite its name, the $_POST array won’t always contain your POST data and can be easily found empty.It’s because PHP only parses a POST payload automatically when it has a content type of application/x-www-form urlencoded or multipart/form-data.let’s take an example. Assume that we make a server request with a jQuery.ajax() call as follows: $.ajax({    url: …

$_POST array empty? Using JSON with $_POST. Read More »

No Trash Notebook in Evernote for Android | Recover deleted notes

This is a serious anomaly of Evernote for Android. Delete a note accidently, it doesn’t go in the trash. Maybe because they were worried about the free storage space. But anyways if you want to recover your data that you accidentally deleted, you can go to their website EVERNOTE, and access your trash from their, login with the …

No Trash Notebook in Evernote for Android | Recover deleted notes Read More »

Difference between Bundle and putExtra of Intent

Using bundle will create negligible difference in your application. Using a bundle is slightly more manageable and clear. When you are using a putExtra, you are using a bundle anyway, you can see here that Intent store data passed through putExtra internally as Bundle- public Intent putExtra(String name, String value) { if (mExtras == null) { mExtras …

Difference between Bundle and putExtra of Intent Read More »

How to create a favorite button in Android. (Using toggle button)

You might have come across a favorite button in any dictionary app or android’s own contacts app. Today we will be learning how to create a favorite button with identical functionality to those apps. I did this using a toggle button. I used a toggle button as i wanted to use the setChecked() method of toggle button. …

How to create a favorite button in Android. (Using toggle button) Read More »