Based on JSON data..How to Toast server Status at doInBackground form a Service

前端 未结 2 1031
谎友^
谎友^ 2021-01-17 07:03

I am trying to Show Toast on Server Status

These are my Types of JSONdata from Server

1) {
    \"status\": \"200\",
    \"response\": {
         


        
2条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-17 07:40

    Try it doing this way

    runOnUiThread(new Runnable() {
                @Override
                public void run() {
                    //Your Toast Here
                }
            });
    

提交回复
热议问题