Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.annotation.SuppressLint;

public class Main {
    @SuppressLint("NewApi")
    public static boolean isGetListSuccess(String listjson) {
        if (listjson == null) {
            return false;
        }
        if (listjson.isEmpty()) {
            return false;
        }
        if (listjson.contains("error_code")) {
            return false;
        } else {
            return true;
        }

    }
}