APIJSON(Android)/APIJSON(AndroidStudio)/app/src/main/java/apijson/demo/ui/QueryActivity.java
/**request a query from server,and the result will be received by onHttpResponse method
	 */
request a query from server,and the result will be received by onHttpResponse method
request a query from server and the result will be received by onHttpResponse method
private void query() {
		setRequest();
		final String fullUrl = getUrl(type);
		tvQueryResult.setText("requesting...\n\n url = " + fullUrl + "\n\n request = \n" + JSON.format(request) + "\n\n\n" + error);
		pbQuery.setVisibility(View.VISIBLE);
		if (type < 10) {
			HttpManager.getInstance().post(fullUrl, request, this);
		} else {
			HttpManager.getInstance().get(fullUrl, request, this);
		}
	}
private void query ( ) { setRequest ( ) ; final String fullUrl = getUrl ( type ) ; tvQueryResult . setText ( "requesting...\n\n url = " + fullUrl + "\n\n request = \n" + JSON . format ( request ) + "\n\n\n" + error ) ; pbQuery . setVisibility ( View . VISIBLE ) ; if ( type < 10 ) { HttpManager . getInstance ( ) . post ( fullUrl , request , this ) ; } else { HttpManager . getInstance ( ) . get ( fullUrl , request , this ) ; } }
request a query from server,and the result will be received by onHttpResponse method
request a query from server and the result will be received by onHttpResponse method