Code example for DatagramPacket

Methods: setData

0
	 *            the message to send. 
	 */ 
	public void sendMessage(String message) {
 
		byte[] datagramData = message.getBytes();
		datagramPacket.setData(datagramData);
 
		try { 
			datagramSocket.send(datagramPacket);
		} catch (IOException e) {
			Log.e(TAG, "Failed to send datagram log " + e);
		} 
	} 
 
	/** 
	 * No effect. 
	 *  
	 * @see com.google.code.microlog4android.appender.AbstractAppender#clear() 
	 */ 
	@Override 
	public void clear() {