Code example for Logger

Methods: info, severe

0
	} 
 
	@Override 
	public void onReceive(Context context, Intent intent) {
		Uri data = intent.getData();
		log.info("scheduler onReceive: " + data);
		 
		if(data == null)
			return; 
		 
		if(!data.getScheme().equals(URI_SCHEME))
			return; 
		 
		try { 
			int i = Integer.parseInt(data.getEncodedSchemeSpecificPart());
			Runnable r = tasks.get(i);
			r.run();
		} catch (Exception ex) {
			log.severe("task failed: " + ex.getMessage());
			ex.printStackTrace();
		} 
	} 
 
}