Back to project page Projectile.
The source code is released under:
Apache License
If you think the Android project Projectile 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 org.nicktate.projectile; //w w w . j a v a 2 s .com import com.android.volley.NetworkResponse; import com.android.volley.toolbox.HttpHeaderParser; import java.io.UnsupportedEncodingException; /** * Convenience listener that returns a string */ public abstract class StringListener implements ResponseListener<String> { @Override public String responseParser(NetworkResponse networkResponse) { String response; try { response = new String(networkResponse.data, HttpHeaderParser.parseCharset(networkResponse.headers)); } catch (UnsupportedEncodingException e) { response = new String(networkResponse.data); } return response; } }