Here is list activity.
List Activity:
public class ListDataActivity extends ListActivity {
@Override
protected void onCreate(Bundle save
I dont know about php but If you are making API using Post Method, you should use httpPost rather than httpGet.
As you said that you are unable to parse the json string which is like "'B-','O-'" but you can successfully parse the string like "B,O".
It is due to the fact the single quote (') is considered as a special character for json and you may want to escape it like \' in your string before you parse it.
For more details refer : How to escape special characters in building a JSON string?