SHARE
TWEET

Untitled

a guest Jul 20th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 2019-07-20 19:28:26.776 1109-1109/? W/WindowManager: removeWindowToken: Attempted to remove non-existing token: android.os.Binder@eab9d7a
  2. 2019-07-20 19:28:26.975 14345-14345/com.halimlab.koneksicrud W/System.err: org.json.JSONException: Value <br of type java.lang.String cannot be converted to JSONObject
  3. 2019-07-20 19:28:26.976 14345-14345/com.halimlab.koneksicrud W/System.err:     at org.json.JSON.typeMismatch(JSON.java:112)
  4. 2019-07-20 19:28:26.976 14345-14345/com.halimlab.koneksicrud W/System.err:     at org.json.JSONObject.<init>(JSONObject.java:163)
  5. 2019-07-20 19:28:26.976 14345-14345/com.halimlab.koneksicrud W/System.err:     at org.json.JSONObject.<init>(JSONObject.java:176)
  6. 2019-07-20 19:28:26.976 14345-14345/com.halimlab.koneksicrud W/System.err:     at com.halimlab.koneksicrud.TampilanSemuaBarang.tampilBarang(TampilanSemuaBarang.java:56)
  7. 2019-07-20 19:28:26.976 14345-14345/com.halimlab.koneksicrud W/System.err:     at com.halimlab.koneksicrud.TampilanSemuaBarang.access$100(TampilanSemuaBarang.java:26)
  8. 2019-07-20 19:28:26.976 14345-14345/com.halimlab.koneksicrud W/System.err:     at com.halimlab.koneksicrud.TampilanSemuaBarang$1GetJSON.onPostExecute(TampilanSemuaBarang.java:94)
  9. 2019-07-20 19:28:26.977 14345-14345/com.halimlab.koneksicrud W/System.err:     at com.halimlab.koneksicrud.TampilanSemuaBarang$1GetJSON.onPostExecute(TampilanSemuaBarang.java:80)
  10. 2019-07-20 19:28:26.977 14345-14345/com.halimlab.koneksicrud W/System.err:     at android.os.AsyncTask.finish(AsyncTask.java:695)
  11. 2019-07-20 19:28:26.977 14345-14345/com.halimlab.koneksicrud W/System.err:     at android.os.AsyncTask.access$600(AsyncTask.java:180)
  12. 2019-07-20 19:28:26.977 14345-14345/com.halimlab.koneksicrud W/System.err:     at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:712)
  13. 2019-07-20 19:28:26.977 14345-14345/com.halimlab.koneksicrud W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:106)
  14. 2019-07-20 19:28:26.977 14345-14345/com.halimlab.koneksicrud W/System.err:     at android.os.Looper.loop(Looper.java:193)
  15. 2019-07-20 19:28:26.978 14345-14345/com.halimlab.koneksicrud W/System.err:     at android.app.ActivityThread.main(ActivityThread.java:6739)
  16. 2019-07-20 19:28:26.978 14345-14345/com.halimlab.koneksicrud W/System.err:     at java.lang.reflect.Method.invoke(Native Method)
  17. 2019-07-20 19:28:26.978 14345-14345/com.halimlab.koneksicrud W/System.err:     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:495)
  18. 2019-07-20 19:28:26.978 14345-14345/com.halimlab.koneksicrud W/System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:859)
  19. 2019-07-20 19:28:27.068 545-1023/? W/SurfaceFlinger: Attempting to set client state on removed layer: Mengambil Data#0
  20. 2019-07-20 19:28:27.068 545-1023/? W/SurfaceFlinger: Attempting to set client state on removed layer: Dim Layer for - Task=1791#0
  21. 2019-07-20 19:28:27.068 545-1023/? W/SurfaceFlinger: Attempting to destroy on removed layer: Mengambil Data#0
  22. 2019-07-20 19:28:27.068 545-1023/? W/SurfaceFlinger: Attempting to destroy on removed layer: Dim Layer for - Task=1791#0
  23.      
  24. private void tampilBarang(){
  25.         JSONObject jsonObject = null;
  26.         ArrayList<HashMap<String,String>> list = new ArrayList<HashMap<String, String>>();
  27.         try {
  28.             jsonObject = new JSONObject(JSON_STRING);
  29.             JSONArray result = jsonObject.getJSONArray(konfigurasi.TAG_JSON_ARRAY);
  30.             for(int i = 0; i<result.length(); i++){
  31.                 JSONObject jo = result.getJSONObject(i);
  32.                 String id = jo.getString(konfigurasi.TAG_ID);
  33.                 String name = jo.getString(konfigurasi.TAG_NAMA);
  34.  
  35.                 HashMap<String,String> employees = new HashMap<>();
  36.                 employees.put(konfigurasi.TAG_ID,id);
  37.                 employees.put(konfigurasi.TAG_NAMA,name);
  38.                 list.add(employees);
  39.             }
  40.         } catch (Exception e) {
  41.             e.printStackTrace();
  42.         }
  43.         ListAdapter adapter = new SimpleAdapter(
  44.                 TampilanSemuaBarang.this, list, R.layout.list_item,
  45.                 new String[]{konfigurasi.TAG_ID, konfigurasi.TAG_NAMA},
  46.                 new int[]{R.id.id, R.id.name}
  47.         );
  48.         listView.setAdapter(adapter);
  49.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top