根据已知网址链接发送请求并返回相应值:
http://117.50.38.18/jitiao/index.php/index/yzapi/landsns
返回:{"result":"true","message":"test"},传的参数名称约定为:sninfo
第一步:在.xml文件中写布局文件
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".MyRetrofit">
<EditText
android:id="@+id/et1"
android:layout_width="match_parent"
androi