Code example for JSONException

Methods: printStackTrace

0
 
			/* currently not handled in Android */ 
			// boolean optionAllowOldDates = obj.getBoolean("allowOldDates"); 
 
		} catch (JSONException e) { 
			e.printStackTrace(); 
		} 
 
		// By default initalize these fields to 'now' 
		final int mYear = year == -1 ? c.get(Calendar.YEAR) : year; 
		final int mMonth = month == -1 ? c.get(Calendar.MONTH) : month - 1; 
		final int mDay = day == -1 ? c.get(Calendar.DAY_OF_MONTH) : day; 
		final int mHour = hour == -1 ? c.get(Calendar.HOUR_OF_DAY) : hour; 
		final int mMinutes = min == -1 ? c.get(Calendar.MINUTE) : min; 
 
		if (ACTION_TIME.equalsIgnoreCase(action)) { 
			runnable = new Runnable() { 
				public void run() { 
					final TimeSetListener timeSetListener = new TimeSetListener(datePickerPlugin, callBackId); 
					final TimePickerDialog timeDialog = new TimePickerDialog(currentCtx, timeSetListener, mHour, 
							mMinutes, true);