Detected 2 occurrence(s) of ‘http[s]*:\/\/[a-z0-9\-\.]+\.[a-z]{2,3}\/.*[\?&]user(name)*=\w+&pass(word)*=\w+’: /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); JSONObject json=JSONfunctions.getJSONfromURL("http://example.com/app/login.php?username=a&password=a"); Log.w("json: ", json.toString()); } } public class JSONfunctions { public static JSONObject getJSONfromURL(String url){ InputStream is = null; String result = ""; JSONObject jArray = null; Source: http://pastebin.com/raw.php?i=ZCJCNkWe
↧