| |
---|
| | import android.widget.Button; |
---|
| | import android.widget.EditText; |
---|
| | import android.widget.Toast; |
---|
| | import net.arnx.jsonic.JSON; |
---|
| | import net.arnx.jsonic.TypeReference; |
---|
| | |
---|
| | import org.ntlab.radishforandroidstudio.R; |
---|
| | import org.ntlab.radishforandroidstudio.cactusClient.connections.SignUpFragmentConnection; |
---|
| | import org.ntlab.radishforandroidstudio.cactusClient.models.URIAddressedAccount; |
---|
| | import org.ntlab.radishforandroidstudio.framework.network.CallBack; |
---|
| |
---|
| | @Override |
---|
| | public void onResponse(String response) { |
---|
| | //通信した時の処理を書くのだよ |
---|
| | URIAddressedAccount ac = JSON.decode(response, URIAddressedAccount.class); |
---|
| | System.out.println(ac.getUri()); |
---|
| | URIAddressedAccount ac2 = JSON.decode(response, new TypeReference<URIAddressedAccount>(){}); |
---|
| | System.out.println("JSON.decode(response, URIAddressedAccount.class);\n"+ac.getUri()); |
---|
| | System.out.println("JSON.decode(response, new TypeReference<URIAddressedAccount>(){});\n"+ac2.getUri()); |
---|
| | System.out.println(response); |
---|
| | Toast.makeText(getActivity(),response, Toast.LENGTH_SHORT).show(); |
---|
| | } |
---|
| | }); |
---|
| |
---|
| | |
No description provided.
OKです
80acdf6
intomaster
fromこれはテスト絵dす
on 3 Jul 2018