Code example for Uri.Builder

Methods: appendPath, authority, build, scheme

0
		intent.setAction("com.googlecode.asmack.intent.XMPP.STANZA.SEND");
		intent.putExtra("stanza", stanza);
		intent.addFlags(Intent.FLAG_FROM_BACKGROUND);
		getApplicationContext().sendBroadcast(intent, "com.googlecode.asmack.intent.XMPP.STANZA.SEND");
 
		Builder builder = new Uri.Builder();
		builder.scheme("content");
		builder.authority("jabber-chat-db");
		builder.appendPath(this.from);
		builder.appendPath(this.to);
		getApplicationContext()
        	.getContentResolver()
        	.notifyChange(builder.build(), null);
		} 
 
//open the picture file and convert to base64 
 
	public static String image2Base64String(String locationOfImageToSend)
	{ 
		Log.d("MMMC", Media.class.getSimpleName() + " " + "trying to open file and convert to string...");