APIJSON(Android)/APIJSON(AndroidStudio)/app/src/main/java/apijson/demo/ui/QueryActivity.java
/**open request URL String with a browser
	 */
open request URL String with a browser
open request URL String with a browser
public void openWebSite() {
		if (type < 10) {
			Toast.makeText(context, R.string.browser_can_only_receive_get_response, Toast.LENGTH_LONG).show();
		}
		setRequest();
		String webSite = null;
		try {
			webSite = StringUtil.getNoBlankString(getUrl(type))
					+ URLEncoder.encode(StringUtil.getNoBlankString(request), UTF_8);
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
		if (StringUtil.isNotEmpty(webSite, true) == false) {
			Log.e(TAG, "openWebSite  StringUtil.isNotEmpty(webSite, true) == false >> return;");
			return;
		}
		startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(webSite)));
	}
public void openWebSite ( ) { if ( type < 10 ) { Toast . makeText ( context , R . string . browser_can_only_receive_get_response , Toast . LENGTH_LONG ) . show ( ) ; } setRequest ( ) ; String webSite = null ; try { webSite = StringUtil . getNoBlankString ( getUrl ( type ) ) + URLEncoder . encode ( StringUtil . getNoBlankString ( request ) , UTF_8 ) ; } catch ( UnsupportedEncodingException e ) { e . printStackTrace ( ) ; } if ( StringUtil . isNotEmpty ( webSite , true ) == false ) { Log . e ( TAG , "openWebSite  StringUtil.isNotEmpty(webSite, true) == false >> return;" ) ; return ; } startActivity ( new Intent ( Intent . ACTION_VIEW , Uri . parse ( webSite ) ) ) ; }
open request URL String with a browser
open request URL String with a browser