Back to project page SipgateInfo.
The source code is released under:
GNU General Public License
If you think the Android project SipgateInfo listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package net.skweez.sipgate.api.xmlrpc; /* www . j ava 2 s . c o m*/ import android.net.Uri; public abstract class SipgateUriHelper { /** * Sipgate sends "URIs" without the "//", so we have to insert them. * * @param uriString - the URI string from Sipgate (without "//") * @return A Uri object */ public static Uri createUriFromString(String uriString) { Uri uri; if (uriString.startsWith("sip://")) { uri = Uri.parse(uriString); } else { StringBuilder uriBuilder = new StringBuilder(uriString); uri = Uri.parse(uriBuilder.insert(4, "//").toString()); } return uri; } }