lawang code

lawang Code


Tanyakan kode disini

Tambah image view

ditanyakan oleh BM.Shidiq 2 tahun yang lalu
    StringRequest request = new StringRequest(Request.Method.GET, url, new Response.Listener<String>() {
        @Override
        public void onResponse(String s) {
            gson = new Gson();
            mapPost = (Map<String, Object>) gson.fromJson(s, Map.class);
            mapTitle = (Map<String, Object>) mapPost.get("title");
            mapContent = (Map<String, Object>) mapPost.get("content");

            title.setText(mapTitle.get("rendered").toString());
            content.loadData(mapContent.get("rendered").toString(),"text/html","UTF-8");

            progressDialog.dismiss();
        }
    }, new Response.ErrorListener() {
        @Override
        public void onErrorResponse(VolleyError volleyError) {
            progressDialog.dismiss();
            Toast.makeText(Post.this, id, Toast.LENGTH_LONG).show();
        }
    });

    RequestQueue rQueue = Volley.newRequestQueue(Post.this);
    rQueue.add(request);

saya pengen nambah Image di post . gimana code nya bang ? mohon bantuannya dan terima kasih.

Anda harus login terlebih dahulu untuk memberikan komentar

Recent Tag

X 6
X 48
X 14
X 10
X 1
X 5
X 4
X 18
X 10

Bantuan

Help

Feedback

Help