java - Can't conenct to a url -
i have link i'm providing 2 parameters , php server side script executing query , writing them databae. the problem in specific case, seems can't connect teh url. here button xml file: <button android:layout_width="match_parent" android:layout_height="wrap_content" android:includefontpadding="@+id/btnsubmit" android:text="@string/btnsubmit" android:onclick="submitnewj" /> here click "listener": public void submitnewj(view view){ new submitj().execute(); } and here submitj code: public class submitj extends asynctask<void, integer, void>{ @override protected void doinbackground(void... params) { try{ string encodedname = urlencoder.encode(name,"utf-8"); string encodedbody = urlencoder.encode(body,"utf-8"); url url = new url("http://site123.com/android/j/sj.php?name=...