• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Android: POST request, show specific text

Prosko

Lurker
Ok, I'm new to the concept of POST and GET request etc. So I apologize If this is a stupid question, and sorry for bothering you guys again.

I have this Async Task in this TvrdjavaFragment.java that gets and shows EVERYTHING from the JSON object as a comment (toast). I need to only the temperatura for example and show it as a comment, not everything. My question is how do I get something specific from a JSON object ?

This is my TvrdjavaFragment.java file:
Code:
public class TvrdjavaFragment extends Fragment {

    Button btnIdinaperiod;
    TextView pokaziServer;
    String rezultat = "";
    String strURL = "http://MYLINK";

    public TvrdjavaFragment() {
        // Required empty public constructor
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {

        View view = inflater.inflate(R.layout.fragment_tvrdjava, container, false);
        // Inflate the layout for this fragment

        pokaziServer = (TextView) view.findViewById(R.id.testServer);
        //int i = Integer.parseInt(pokaziServer.getText().toString());

        //Log.d("TAG", "TestLogIvan");
        new NabaviServer().execute();

        btnIdinaperiod = (Button) view.findViewById(R.id.buttonIdinaperiod);

        btnIdinaperiod.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                PeriodFragment periodFragment = new PeriodFragment();
                FragmentTransaction periodFragmentTransaction = getActivity().getSupportFragmentManager().beginTransaction();
                periodFragmentTransaction.replace(R.id.frame, periodFragment);
                periodFragmentTransaction.addToBackStack(null); //Kada pretisne BACK, vrati se nazad
                periodFragmentTransaction.commit();
            }
        });

        return view;
    }

    public class NabaviServer extends AsyncTask<String, String, String>
    {
        @Override
        protected void onPreExecute() {
            super.onPreExecute();
        }

        @Override
        protected void onPostExecute(String s) {
            //super.onPostExecute(s);

            Toast.makeText(getActivity(), "Izlazak je: " + rezultat,Toast.LENGTH_LONG).show();
            Log.i("IVANTAG", rezultat);
        }

        @Override
        protected String doInBackground(String... params) {

            try{
                URL url = new URL(strURL);
                HttpURLConnection con = (HttpURLConnection)url.openConnection();
                con.setRequestMethod("POST");
                con.connect();

                BufferedReader bf = new BufferedReader(new InputStreamReader(con.getInputStream())); //??s

                String value = bf.readLine();
                System.out.println("test " + value);
                rezultat = value;


            }
            catch(Exception e)
            {
                System.out.println(e);
            }

            return null;
        }
    }

}

And this is how my JSON Object looks like:
Code:
[
  {
    "id": 1,
    "vPritisak": "1",
    "vVazduha": "0",
    "nVisina": "0",
    "temperatura": "0",
    "metan": "0",
    "uDioksid": "1",
    "lokacija": "Kicevo",
    "created_at": null,
    "updated_at": null
  },
  {
    "id": 2,
    "vPritisak": "0",
    "vVazduha": "2",
    "nVisina": "0",
    "temperatura": "0",
    "metan": "0",
    "uDioksid": "0",
    "lokacija": "Cair",
    "created_at": null,
    "updated_at": null
  },
etc...

When I try to add JSONObject jObj = new JSONObject(s);, I just get the error " Unhandled exception: org.json.JSONException " . When I try to add Try - Catch (Like it suggests), the app crashes:
Code:
@Override
    protected void onPostExecute(String s) {
        //super.onPostExecute(s);

        try {
            JSONObject jObj = new JSONObject(s);
            String temperatura = jObj.getString("temperatura");//get ur temperatura here

            //try to toast it out,to see the value
            Toast.makeText(getActivity(), "Izlazak je: " + temperatura,Toast.LENGTH_LONG).show();

        } catch (JSONException e) {
            e.printStackTrace();
        }


        Toast.makeText(getActivity(), "Izlazak je: " + rezultat,Toast.LENGTH_LONG).show();
        Log.i("IVANTAG", rezultat);
    }

Do you guys know how can I parse - show the specific element from the json ? :thumbsdowndroid:
 
Please post the stack trace from your Logcat. If your app crashed it will have generated a stack trace.
 
@LV426 This is the error in the logcat.

03-14 19:50:58.833 3800-4504/? E/Surface: getSlotFromBufferLocked: unknown buffer: 0x841d0c60
03-14 19:50:59.430 362-623/? E/ThermalEngine: [GPU_MON] 2 percent. Current Sampling Time is 1 sec
03-14 19:51:00.208 351-1303/? E/audio_hw_primary: disable_snd_device: enter 1
03-14 19:51:09.071 3800-3810/? E/KeyguardViewMediator: resetStateLocked
03-14 19:51:09.083 2276-2276/? E/lightsbindercall: virtual void android::BpLEDManager::restart() : Binder Transaction Start!!
03-14 19:51:09.085 2276-2276/? E/lightsbindercall: virtual void android::BpLEDManager::restart() : Binder Transaction End!! (error code 0)
03-14 19:51:09.087 351-1314/? E/bt_a2dp_hw: adev_set_parameters: ERROR: set param called even when stream out is null
03-14 19:51:09.094 2276-3722/? E/native: do suspend true
03-14 19:51:09.436 362-623/? E/ThermalEngine: [GPU_MON] ACTION: GPU - [GPU_MON] Setting GPU[0] to 578000000
03-14 19:51:24.122 343-2456/? E/NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'UID' not found
03-14 19:52:18.846 343-2456/? E/NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'UID' not found
03-14 19:52:38.241 343-2456/? E/NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'UID' not found
03-14 19:53:36.667 343-2456/? E/NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'UID' not found
03-14 19:53:52.042 343-2456/? E/NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'UID' not found
03-14 19:55:32.284 343-2456/? E/NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'UID' not found
03-14 19:55:48.961 343-2456/? E/NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'UID' not found
03-14 19:56:13.049 2276-3722/? E/native: do suspend false
03-14 19:56:13.081 2276-2276/? E/lightsbindercall: virtual void android::BpLEDManager::restart() : Binder Transaction Start!!
03-14 19:56:13.088 2276-2276/? E/lightsbindercall: virtual void android::BpLEDManager::restart() : Binder Transaction End!! (error code 0)
03-14 19:56:13.089 351-4771/? E/lge_audio_pcm_dump: lge_set_dump_config: exit dump_config : 0
03-14 19:56:13.089 351-4771/? E/bt_a2dp_hw: adev_set_parameters: ERROR: set param called even when stream out is null
03-14 19:56:13.543 343-2456/? E/NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'UID' not found
03-14 19:56:14.180 351-1302/? E/audio_hw_primary: select_devices: enter and usecase(1)
03-14 19:56:14.181 351-1302/? E/audio_hw_primary: enable_snd_device: enter 2
03-14 19:56:15.057 3800-4919/? E/KeyguardViewMediator: resetStateLocked
03-14 19:56:15.064 2276-2276/? E/lightsbindercall: virtual void android::BpLEDManager::restart() : Binder Transaction Start!!
03-14 19:56:15.065 2276-2276/? E/lightsbindercall: virtual void android::BpLEDManager::restart() : Binder Transaction End!! (error code 0)
03-14 19:56:15.067 351-10609/? E/bt_a2dp_hw: adev_set_parameters: ERROR: set param called even when stream out is null
03-14 19:56:15.078 2276-3722/? E/native: do suspend true
03-14 19:56:15.632 362-623/? E/ThermalEngine: [GPU_MON] ACTION: GPU - [GPU_MON] Setting GPU[0] to 578000000
03-14 19:56:16.903 2276-2276/? E/lightsbindercall: virtual void android::BpLEDManager::restart() : Binder Transaction Start!!
03-14 19:56:16.905 2276-2276/? E/lightsbindercall: virtual void android::BpLEDManager::restart() : Binder Transaction End!! (error code 0)
03-14 19:56:16.906 2276-3722/? E/native: do suspend false
03-14 19:56:16.910 351-1314/? E/lge_audio_pcm_dump: lge_set_dump_config: exit dump_config : 0
03-14 19:56:16.910 351-1314/? E/bt_a2dp_hw: adev_set_parameters: ERROR: set param called even when stream out is null
03-14 19:56:16.970 14214-14214/? E/skype_jni: g_jniCallback == 0
03-14 19:56:16.970 14214-14214/? E/skype_jni: g_pcmInit == 0
03-14 19:56:17.517 14214-14290/? E/linker: readlink('/proc/self/fd/36') failed: Permission denied [fd=36]
03-14 19:56:17.518 14214-14290/? E/linker: warning: unable to get realpath for the library "/data/user/0/com.skype.raider/lib/libRtmMediaManagerDyn.so". Will use given name.
03-14 19:56:17.532 351-1303/? E/audio_hw_primary: select_devices: enter and usecase(1)
03-14 19:56:20.635 362-623/? E/ThermalEngine: [GPU_MON] 7 percent. Current Sampling Time is 1 sec
03-14 19:56:20.920 14441-14441/? E/asset: setgid: Operation not permitted
03-14 19:56:20.926 14442-14442/? E/asset: setgid: Operation not permitted
03-14 19:56:21.036 2276-2276/? E/lightsbindercall: virtual void android::BpLEDManager::updateLightList(int32_t, int32_t, int, int32_t, int32_t, int32_t, const android::String16&) : Binder Transaction Start!!
03-14 19:56:21.037 2276-2276/? E/lightsbindercall: virtual void android::BpLEDManager::updateLightList(int32_t, int32_t, int, int32_t, int32_t, int32_t, const android::String16&) : Binder Transaction End!! (error code 0)
03-14 19:56:21.040 6819-6843/? E/ActivityThread: Failed to find provider info for com.teslacoilsw.notifier
03-14 19:56:21.043 2276-2276/? E/lightsbindercall: virtual void android::BpLEDManager::updateLightList(int32_t, int32_t, int, int32_t, int32_t, int32_t, const android::String16&) : Binder Transaction Start!!
03-14 19:56:21.043 2276-2276/? E/lightsbindercall: virtual void android::BpLEDManager::updateLightList(int32_t, int32_t, int, int32_t, int32_t, int32_t, const android::String16&) : Binder Transaction End!! (error code 0)
03-14 19:56:22.412 351-1303/? E/audio_hw_primary: disable_snd_device: enter 2
03-14 19:56:22.999 14511-14521/? E/NativeLibraryHelper: Failed to load assets verifier: 0
03-14 19:56:24.807 2276-2380/? E/NativeLibraryHelper: Failed to load assets verifier: 0
03-14 19:56:25.401 2276-2380/? E/NativeLibraryHelper: Failed to load assets verifier: 0
03-14 19:56:30.213 4247-4247/? E/LCardEmulationManager: initDefaultRoutePath() - route : 243
03-14 19:56:30.463 4697-20761/? E/ExternalAccountType: Unsupported attribute readOnly
03-14 19:56:30.505 3800-3845/? E/KeyguardModel: package: com.lge.qmemoplus not found!
03-14 19:56:30.571 4697-20761/? E/ExternalAccountType: Unsupported attribute readOnly
03-14 19:56:31.184 14720-14720/? E/asset: setgid: Operation not permitted
03-14 19:56:31.187 14721-14721/? E/asset: setgid: Operation not permitted
03-14 19:56:31.370 4378-4690/? E/Surface: getSlotFromBufferLocked: unknown buffer: 0x8b576830
03-14 19:56:32.654 14667-14831/? E/linker: readlink('/proc/self/fd/27') failed: Permission denied [fd=27]
03-14 19:56:32.654 14667-14831/? E/linker: warning: unable to get realpath for the library "/data/app/com.wsandroid.suite.lge-1/lib/arm/libmcseng_lge.so". Will use given name.
03-14 19:56:32.665 14667-14831/? E/linker: readlink('/proc/self/fd/26') failed: Permission denied [fd=26]
03-14 19:56:32.665 14667-14831/? E/linker: warning: unable to get realpath for the library "/data/app/com.wsandroid.suite.lge-1/lib/arm/libmcsldr_lge.so". Will use given name.
03-14 19:56:33.505 4833-16065/? E/NetworkScheduler.SR: Invalid parameter app
03-14 19:56:33.505 4833-16065/? E/NetworkScheduler.SR: Invalid package name : Perhaps you didn't include a PendingIntent in the extras?
03-14 19:56:33.505 4538-18988/? E/Drive.UninstallOperation: Package still installed com.example.ivanp.msnis
03-14 19:56:36.661 4833-16065/? E/NetworkScheduler.SR: Invalid parameter app
03-14 19:56:36.661 4833-16065/? E/NetworkScheduler.SR: Invalid package name : Perhaps you didn't include a PendingIntent in the extras?
03-14 19:56:37.638 14938-14963/? E/linker: readlink('/proc/self/fd/27') failed: Permission denied [fd=27]
03-14 19:56:37.638 14938-14963/? E/linker: warning: unable to get realpath for the library "/system/framework/oat/arm/com.android.location.provider.odex". Will use given name.
03-14 19:56:37.646 14938-14963/? E/linker: readlink('/proc/self/fd/27') failed: Permission denied [fd=27]
03-14 19:56:37.646 14938-14963/? E/linker: warning: unable to get realpath for the library "/system/framework/oat/arm/com.android.media.remotedisplay.odex". Will use given name.
03-14 19:56:37.658 14938-14963/? E/linker: readlink('/proc/self/fd/27') failed: Permission denied [fd=27]
03-14 19:56:37.658 14938-14963/? E/linker: warning: unable to get realpath for the library "/data/app/com.google.android.gms-2/oat/arm/base.odex". Will use given name.
03-14 19:56:37.887 14938-14963/? E/linker: readlink('/proc/self/fd/27') failed: Permission denied [fd=27]
03-14 19:56:37.888 14938-14963/? E/linker: warning: unable to get realpath for the library "/data/app/com.google.android.gms-2/lib/arm/libgmscore.so". Will use given name.
03-14 19:56:37.945 14938-14963/? E/linker: readlink('/proc/self/fd/27') failed: Permission denied [fd=27]
03-14 19:56:37.945 14938-14963/? E/linker: warning: unable to get realpath for the library "/data/app/com.google.android.gms-2/lib/arm/libconscrypt_gmscore_jni.so". Will use given name.
03-14 19:56:38.938 15276-15315/? E/linker: readlink('/proc/self/fd/22') failed: Permission denied [fd=22]
03-14 19:56:38.939 15276-15315/? E/linker: warning: unable to get realpath for the library "/data/app/com.shazam.android-1/lib/arm/libmp.so". Will use given name.
03-14 19:57:06.196 6819-6843/? E/ActivityThread: Failed to find provider info for com.teslacoilsw.notifier
03-14 19:57:07.361 2276-2276/? E/lightsbindercall: virtual void android::BpLEDManager::updateLightList(int32_t, int32_t, int, int32_t, int32_t, int32_t, const android::String16&) : Binder Transaction Start!!
03-14 19:57:07.361 2276-2276/? E/lightsbindercall: virtual void android::BpLEDManager::updateLightList(int32_t, int32_t, int, int32_t, int32_t, int32_t, const android::String16&) : Binder Transaction End!! (error code 0)
03-14 19:57:07.362 2276-2276/? E/lightsbindercall: virtual void android::BpLEDManager::updateLightList(int32_t, int32_t, int, int32_t, int32_t, int32_t, const android::String16&) : Binder Transaction Start!!
03-14 19:57:07.363 2276-2276/? E/lightsbindercall: virtual void android::BpLEDManager::updateLightList(int32_t, int32_t, int, int32_t, int32_t, int32_t, const android::String16&) : Binder Transaction End!! (error code 0)
03-14 19:57:10.224 6819-6843/? E/ActivityThread: Failed to find provider info for com.teslacoilsw.notifier
03-14 19:57:10.232 2276-2276/? E/lightsbindercall: virtual void android::BpLEDManager::updateLightList(int32_t, int32_t, int, int32_t, int32_t, int32_t, const android::String16&) : Binder Transaction Start!!
03-14 19:57:10.233 2276-2276/? E/lightsbindercall: virtual void android::BpLEDManager::updateLightList(int32_t, int32_t, int, int32_t, int32_t, int32_t, const android::String16&) : Binder Transaction End!! (error code 0)
03-14 19:57:18.196 351-1315/? E/bt_a2dp_hw: adev_set_parameters: ERROR: set param called even when stream out is null
03-14 19:57:18.204 2276-3722/? E/native: do suspend true
03-14 19:57:18.675 362-623/? E/ThermalEngine: [GPU_MON] ACTION: GPU - [GPU_MON] Setting GPU[0] to 578000000
03-14 19:57:32.635 3800-3800/? E/EmergencyButton: show emergency button ? true
03-14 19:57:32.732 3800-16368/? E/MediaExtractor: Use LGExtractor :application/ogg
03-14 19:57:32.750 3800-16370/? E/MediaExtractor: Use LGExtractor :application/ogg
03-14 19:57:32.776 3800-16371/? E/linker: readlink('/proc/self/fd/302') failed: Permission denied [fd=302]
03-14 19:57:32.777 3800-16371/? E/linker: warning: unable to get realpath for the library "libstagefrighthw.so". Will use given name.
03-14 19:57:32.782 3800-16371/? E/linker: readlink('/proc/self/fd/302') failed: Permission denied [fd=302]
03-14 19:57:32.782 3800-16371/? E/linker: warning: unable to get realpath for the library "libOmxCore.so". Will use given name.
03-14 19:57:32.785 3800-16371/? E/OMXMaster: A component of name 'OMX.qcom.audio.decoder.aac' already exists, ignoring this one.
03-14 19:57:32.786 3800-16372/? E/OMXMaster: A component of name 'OMX.qcom.audio.decoder.aac' already exists, ignoring this one.
03-14 19:57:32.787 3800-16371/? E/linker: readlink('/proc/self/fd/302') failed: Permission denied [fd=302]
03-14 19:57:32.787 3800-16371/? E/linker: warning: unable to get realpath for the library "libstagefright_soft_vorbisdec.so". Will use given name.
03-14 19:57:32.935 3800-16370/? E/MediaExtractor: Use LGExtractor :application/ogg
03-14 19:57:32.968 3800-16368/? E/MediaExtractor: Use LGExtractor :application/ogg
03-14 19:57:32.971 3800-16378/? E/linker: readlink('/proc/self/fd/268') failed: Permission denied [fd=268]
03-14 19:57:32.971 3800-16378/? E/linker: warning: unable to get realpath for the library "libOmxCore.so". Will use given name.
03-14 19:57:32.974 3800-16378/? E/OMXMaster: A component of name 'OMX.qcom.audio.decoder.aac' already exists, ignoring this one.
03-14 19:57:32.978 3800-16378/? E/linker: readlink('/proc/self/fd/268') failed: Permission denied [fd=268]
03-14 19:57:32.978 3800-16378/? E/linker: warning: unable to get realpath for the library "libstagefright_soft_vorbisdec.so". Will use given name.
03-14 19:57:32.993 3800-16381/? E/OMXMaster: A component of name 'OMX.qcom.audio.decoder.aac' already exists, ignoring this one.
03-14 19:57:33.054 3800-16370/? E/MediaExtractor: Use LGExtractor :application/ogg
03-14 19:57:33.068 3800-16368/? E/MediaExtractor: Use LGExtractor :application/ogg
03-14 19:57:33.071 3800-16389/? E/linker: readlink('/proc/self/fd/289') failed: Permission denied [fd=289]
03-14 19:57:33.071 3800-16389/? E/linker: warning: unable to get realpath for the library "libstagefrighthw.so". Will use given name.
03-14 19:57:33.072 3800-16389/? E/linker: readlink('/proc/self/fd/289') failed: Permission denied [fd=289]
03-14 19:57:33.073 3800-16389/? E/linker: warning: unable to get realpath for the library "libOmxCore.so". Will use given name.
03-14 19:57:33.074 3800-16389/? E/OMXMaster: A component of name 'OMX.qcom.audio.decoder.aac' already exists, ignoring this one.
03-14 19:57:33.074 3800-16389/? E/linker: readlink('/proc/self/fd/289') failed: Permission denied [fd=289]
03-14 19:57:33.075 3800-16389/? E/linker: warning: unable to get realpath for the library "libstagefright_soft_vorbisdec.so". Will use given name.
03-14 19:57:33.089 3800-16393/? E/OMXMaster: A component of name 'OMX.qcom.audio.decoder.aac' already exists, ignoring this one.
03-14 19:57:33.109 3800-3800/? E/EmergencyButton: show emergency button ? true
03-14 19:57:33.111 3800-3800/? E/EmergencyButton: show emergency button ? true
03-14 19:57:33.114 3800-3800/? E/EmergencyButton: show emergency button ? true
03-14 19:57:33.116 3800-3800/? E/EmergencyButton: show emergency button ? true
03-14 19:57:33.150 3800-16370/? E/MediaExtractor: Use LGExtractor :application/ogg
03-14 19:57:33.160 3800-16398/? E/OMXMaster: A component of name 'OMX.qcom.audio.decoder.aac' already exists, ignoring this one.
03-14 19:57:33.167 3800-16368/? E/MediaExtractor: Use LGExtractor :application/ogg
03-14 19:57:33.177 3800-16401/? E/OMXMaster: A component of name 'OMX.qcom.audio.decoder.aac' already exists, ignoring this one.
03-14 19:57:33.241 3800-16370/? E/MediaExtractor: Use LGExtractor :application/ogg
03-14 19:57:33.253 3800-16404/? E/linker: readlink('/proc/self/fd/294') failed: Permission denied [fd=294]
03-14 19:57:33.254 3800-16404/? E/linker: warning: unable to get realpath for the library "libstagefrighthw.so". Will use given name.
03-14 19:57:33.254 3800-16368/? E/MediaExtractor: Use LGExtractor :application/ogg
03-14 19:57:33.259 3800-16404/? E/linker: readlink('/proc/self/fd/294') failed: Permission denied [fd=294]
03-14 19:57:33.260 3800-16404/? E/linker: warning: unable to get realpath for the library "libOmxCore.so". Will use given name.
03-14 19:57:33.260 3800-16404/? E/OMXMaster: A component of name 'OMX.qcom.audio.decoder.aac' already exists, ignoring this one.
03-14 19:57:33.261 3800-16404/? E/linker: readlink('/proc/self/fd/294') failed: Permission denied [fd=294]
03-14 19:57:33.262 3800-16404/? E/linker: warning: unable to get realpath for the library "libstagefright_soft_vorbisdec.so". Will use given name.
03-14 19:57:33.266 3800-16407/? E/OMXMaster: A component of name 'OMX.qcom.audio.decoder.aac' already exists, ignoring this one.
03-14 19:57:34.952 6819-6843/? E/ActivityThread: Failed to find provider info for com.teslacoilsw.notifier
03-14 19:57:36.109 2276-2276/? E/lightsbindercall: virtual void android::BpLEDManager::updateLightList(int32_t, int32_t, int, int32_t, int32_t, int32_t, const android::String16&) : Binder Transaction Start!!
03-14 19:57:36.109 2276-2276/? E/lightsbindercall: virtual void android::BpLEDManager::updateLightList(int32_t, int32_t, int, int32_t, int32_t, int32_t, const android::String16&) : Binder Transaction End!! (error code 0)
03-14 19:57:36.110 2276-2276/? E/lightsbindercall: virtual void android::BpLEDManager::updateLightList(int32_t, int32_t, int, int32_t, int32_t, int32_t, const android::String16&) : Binder Transaction Start!!
03-14 19:57:36.110 2276-2276/? E/lightsbindercall: virtual void android::BpLEDManager::updateLightList(int32_t, int32_t, int, int32_t, int32_t, int32_t, const android::String16&) : Binder Transaction End!! (error code 0)
03-14 19:57:36.111 2276-2276/? E/lightsbindercall: virtual void android::BpLEDManager::restart() : Binder Transaction Start!!
03-14 19:57:36.112 2276-2276/? E/lightsbindercall: virtual void android::BpLEDManager::restart() : Binder Transaction End!! (error code 0)
03-14 19:58:16.202 343-2456/? E/NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'UID' not found
03-14 19:58:17.758 343-2456/? E/NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'UID' not found
03-14 19:58:37.481 343-2456/? E/NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'UID' not found
03-14 19:59:01.994 2276-3722/? E/native: do suspend false
03-14 19:59:02.041 2276-2276/? E/lightsbindercall: virtual void android::BpLEDManager::restart() : Binder Transaction Start!!
03-14 19:59:02.043 2276-2276/? E/lightsbindercall: virtual void android::BpLEDManager::restart() : Binder Transaction End!! (error code 0)
03-14 19:59:02.045 351-1314/? E/lge_audio_pcm_dump: lge_set_dump_config: exit dump_config : 0
03-14 19:59:02.045 351-1314/? E/bt_a2dp_hw: adev_set_parameters: ERROR: set param called even when stream out is null
03-14 19:59:02.299 343-2456/? E/NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'UID' not found
03-14 19:59:02.479 351-1302/? E/audio_hw_primary: select_devices: enter and usecase(1)
03-14 19:59:02.479 351-1302/? E/audio_hw_primary: enable_snd_device: enter 2
03-14 19:59:03.419 2276-4113/? E/AlarmManager: Exist canceled pending intent
03-14 19:59:03.419 2276-4113/? E/AlarmManager: Cancel 1 alarm(s) in package com.android.systemui
03-14 19:59:03.818 3800-4504/? E/Surface: getSlotFromBufferLocked: unknown buffer: 0x83fcf840
03-14 19:59:05.741 362-623/? E/ThermalEngine: [GPU_MON] 5 percent. Current Sampling Time is 1 sec
03-14 19:59:05.916 17934-17934/? E/asset: setgid: Operation not permitted
03-14 19:59:05.917 17935-17935/? E/asset: setgid: Operation not permitted
03-14 19:59:07.423 351-1303/? E/audio_hw_primary: disable_snd_device: enter 2
03-14 19:59:07.667 17983-17983/? E/asset: setgid: Operation not permitted
03-14 19:59:07.668 17984-17984/? E/asset: setgid: Operation not permitted
03-14 19:59:07.728 14511-14521/? E/NativeLibraryHelper: Failed to load assets verifier: 0
03-14 19:59:14.065 2276-3722/? E/WifiStateMachine: LG_RSSI UPDATE newRssi = -75
03-14 19:59:18.196 2276-2380/? E/NativeLibraryHelper: Failed to load assets verifier: 0
03-14 19:59:18.756 2276-2380/? E/NativeLibraryHelper: Failed to load assets verifier: 0
03-14 19:59:21.709 16483-18258/? E/linker: readlink('/proc/self/fd/21') failed: Permission denied [fd=21]
03-14 19:59:21.709 16483-18258/? E/linker: warning: unable to get realpath for the library "/data/app/com.google.android.apps.plus-2/lib/arm/libcronet.so". Will use given name.
03-14 19:59:23.308 4697-20761/? E/ExternalAccountType: Unsupported attribute readOnly
03-14 19:59:23.310 4247-4247/? E/LCardEmulationManager: initDefaultRoutePath() - route : 243
03-14 19:59:23.375 3800-3845/? E/KeyguardModel: package: com.lge.qmemoplus not found!
03-14 19:59:23.548 4697-20761/? E/ExternalAccountType: Unsupported attribute readOnly
03-14 19:59:23.809 4833-5249/? E/NetworkScheduler.SR: Invalid parameter app
03-14 19:59:23.809 4833-5249/? E/NetworkScheduler.SR: Invalid package name : Perhaps you didn't include a PendingIntent in the extras?
03-14 19:59:23.852 4538-22344/? E/Drive.UninstallOperation: Package still installed com.example.ivanp.msnis
03-14 19:59:24.307 4833-5249/? E/NetworkScheduler.SR: Invalid parameter app
03-14 19:59:24.307 4833-5249/? E/NetworkScheduler.SR: Invalid package name : Perhaps you didn't include a PendingIntent in the extras?
03-14 19:59:26.654 2276-2276/? E/lightsbindercall: virtual void android::BpLEDManager::updateLightList(int32_t, int32_t, int, int32_t, int32_t, int32_t, const android::String16&) : Binder Transaction Start!!
03-14 19:59:26.654 2276-2276/? E/lightsbindercall: virtual void android::BpLEDManager::updateLightList(int32_t, int32_t, int, int32_t, int32_t, int32_t, const android::String16&) : Binder Transaction End!! (error code 0)
03-14 19:59:26.655 2276-2276/? E/lightsbindercall: virtual void android::BpLEDManager::updateLightList(int32_t, int32_t, int, int32_t, int32_t, int32_t, const android::String16&) : Binder Transaction Start!!
03-14 19:59:26.658 2276-2276/? E/lightsbindercall: virtual void android::BpLEDManager::updateLightList(int32_t, int32_t, int, int32_t, int32_t, int32_t, const android::String16&) : Binder Transaction End!! (error code 0)
03-14 19:59:26.684 3800-18461/? E/ExtMediaPlayer-JNI: QCMediaPlayer could not be located....
03-14 19:59:26.684 3800-18461/? E/ExtMediaPlayer-JNI: QCMediaPlayer could not be located....
03-14 19:59:26.709 351-1315/? E/NewLGEAudioEffect: LGAudioEffectManager()
03-14 19:59:26.716 351-18466/? E/MediaExtractor: Use LGExtractor :application/ogg
03-14 19:59:26.743 351-18470/? E/OMXNodeInstance: setConfig(67:google.vorbis.decoder, ConfigPriority(0x6f800002)) ERROR: Undefined(0x80001001)
03-14 19:59:26.835 18368-18368/com.example.ivanp.msnis E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.ivanp.msnis, PID: 18368
java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference
at org.json.JSONTokener.nextCleanInternal(JSONTokener.java:116)
at org.json.JSONTokener.nextValue(JSONTokener.java:94)
at org.json.JSONObject.<init>(JSONObject.java:156)
at org.json.JSONObject.<init>(JSONObject.java:173)
at com.example.ivanp.msnis.TvrdjavaFragment$NabaviServer.onPostExecute(TvrdjavaFragment.java:101)
at com.example.ivanp.msnis.TvrdjavaFragment$NabaviServer.onPostExecute(TvrdjavaFragment.java:86)
at android.os.AsyncTask.finish(AsyncTask.java:651)
at android.os.AsyncTask.access$500(AsyncTask.java:180)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:668)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5551)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:730)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)
03-14 19:59:26.926 351-1304/? E/audio_hw_primary: select_devices: enter and usecase(0)
03-14 19:59:26.926 351-1304/? E/audio_hw_primary: enable_snd_device: enter 2
03-14 19:59:31.407 351-1304/? E/audio_hw_primary: disable_snd_device: enter 2
03-14 19:59:35.295 2276-3722/? E/WifiStateMachine: LG_RSSI UPDATE newRssi = -70
03-14 19:59:56.777 362-623/? E/ThermalEngine: [GPU_MON] ACTION: GPU - [GPU_MON] Setting GPU[0] to 578000000
03-14 19:59:56.882 2276-3722/? E/native: do suspend true
03-14 19:59:56.886 2276-2276/? E/lightsbindercall: virtual void android::BpLEDManager::restart() : Binder Transaction Start!!
03-14 19:59:56.887 2276-2276/? E/lightsbindercall: virtual void android::BpLEDManager::restart() : Binder Transaction End!! (error code 0)
03-14 19:59:56.888 351-10609/? E/bt_a2dp_hw: adev_set_parameters: ERROR: set param called even when stream out is null
03-14 20:00:11.343 3800-3800/? E/EmergencyButton: show emergency button ? true
03-14 20:00:11.395 3800-19372/? E/MediaExtractor: Use LGExtractor :application/ogg
03-14 20:00:11.402 3800-19374/? E/MediaExtractor: Use LGExtractor :application/ogg
03-14 20:00:11.427 3800-19375/? E/linker: readlink('/proc/self/fd/321') failed: Permission denied [fd=321]
03-14 20:00:11.427 3800-19375/? E/linker: warning: unable to get realpath for the library "libstagefrighthw.so". Will use given name.
03-14 20:00:11.429 3800-19375/? E/linker: readlink('/proc/self/fd/321') failed: Permission denied [fd=321]
03-14 20:00:11.429 3800-19375/? E/linker: warning: unable to get realpath for the library "libOmxCore.so". Will use given name.
03-14 20:00:11.430 3800-19375/? E/OMXMaster: A component of name 'OMX.qcom.audio.decoder.aac' already exists, ignoring this one.
03-14 20:00:11.431 3800-19375/? E/linker: readlink('/proc/self/fd/321') failed: Permission denied [fd=321]
03-14 20:00:11.431 3800-19375/? E/linker: warning: unable to get realpath for the library "libstagefright_soft_vorbisdec.so". Will use given name.
03-14 20:00:11.454 3800-19378/? E/OMXMaster: A component of name 'OMX.qcom.audio.decoder.aac' already exists, ignoring this one.
03-14 20:00:11.480 343-2456/? E/NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'UID' not found
03-14 20:00:11.568 3800-19374/? E/MediaExtractor: Use LGExtractor :application/ogg
03-14 20:00:11.587 3800-19382/? E/OMXMaster: A component of name 'OMX.qcom.audio.decoder.aac' already exists, ignoring this one.
03-14 20:00:11.633 3800-3800/? E/EmergencyButton: show emergency button ? true
03-14 20:00:11.635 3800-19372/? E/MediaExtractor: Use LGExtractor :application/ogg
03-14 20:00:11.639 3800-3800/? E/EmergencyButton: show emergency button ? true
03-14 20:00:11.642 3800-3800/? E/EmergencyButton: show emergency button ? true
03-14 20:00:11.645 3800-3800/? E/EmergencyButton: show emergency button ? true
03-14 20:00:11.661 3800-19389/? E/OMXMaster: A component of name 'OMX.qcom.audio.decoder.aac' already exists, ignoring this one.
03-14 20:00:11.680 3800-19374/? E/MediaExtractor: Use LGExtractor :application/ogg
03-14 20:00:11.695 3800-19392/? E/OMXMaster: A component of name 'OMX.qcom.audio.decoder.aac' already exists, ignoring this one.
03-14 20:00:11.744 3800-19372/? E/MediaExtractor: Use LGExtractor :application/ogg
03-14 20:00:11.760 3800-19395/? E/OMXMaster: A component of name 'OMX.qcom.audio.decoder.aac' already exists, ignoring this one.
03-14 20:00:11.768 3800-19374/? E/MediaExtractor: Use LGExtractor :application/ogg
03-14 20:00:11.783 3800-19400/? E/OMXMaster: A component of name 'OMX.qcom.audio.decoder.aac' already exists, ignoring this one.
03-14 20:00:11.827 3800-19372/? E/MediaExtractor: Use LGExtractor :application/ogg
03-14 20:00:11.839 3800-19405/? E/OMXMaster: A component of name 'OMX.qcom.audio.decoder.aac' already exists, ignoring this one.
03-14 20:00:11.871 3800-19374/? E/MediaExtractor: Use LGExtractor :application/ogg
03-14 20:00:11.882 3800-19410/? E/OMXMaster: A component of name 'OMX.qcom.audio.decoder.aac' already exists, ignoring this one.
03-14 20:00:11.914 3800-19372/? E/MediaExtractor: Use LGExtractor :application/ogg
03-14 20:00:11.923 3800-19416/? E/OMXMaster: A component of name 'OMX.qcom.audio.decoder.aac' already exists, ignoring this one.
 
Back
Top Bottom