Java tutorial
//package com.java2s; import android.text.TextUtils; public class Main { public static boolean isValidResponse(String mResponse) { if (TextUtils.isEmpty(mResponse)) { return false; } return mResponse.startsWith("Plays: <a") || mResponse.startsWith("{\"html\":\"Plays:") || mResponse.startsWith("{\"playid\":"); } }