Code example for JsonParseException

Methods: toString

0
import java.io.BufferedReader; 
 
public class CommitTransactionService extends IntentService
{ 
	private static final String EXTRA_TRANSACTION_JSON = "transaction_json";
	private static final String ENDPOINT_RESOURCE = "/transactions";
	private static final String TAG = "LedgerAndroid";
	private static final String DEFAULT_ENCODING = "UTF-8";
	private static final int NOTIFICATION_ERROR = 1;
 
	private String endpointUrl;
 
	@Override 
	public int onStartCommand(Intent intent, int flags, int startId)
	{ 
		SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
 
		endpointUrl = prefs.getString("wsuri", "http://10.0.2.2:9292");
 
		return super.onStartCommand(intent, flags, startId);