| | |
| | | import android.app.Activity; |
| | | import android.content.Context; |
| | | import android.content.Intent; |
| | | import android.util.Log; |
| | | import android.webkit.JavascriptInterface; |
| | | import android.widget.Toast; |
| | | |
| | |
| | | import org.json.JSONException; |
| | | import org.json.JSONObject; |
| | | |
| | | import java.net.URLEncoder; |
| | | import java.util.Iterator; |
| | | import java.util.LinkedHashMap; |
| | | import java.util.Map; |
| | |
| | | import static android.content.Context.MODE_PRIVATE; |
| | | |
| | | public class PPJavaInterface { |
| | | private static final String TAG = "PPJavaInterface"; |
| | | private Context mContext; |
| | | private IEventListener eventListener; |
| | | |
| | |
| | | eventListener.onPlayFinish(); |
| | | } |
| | | |
| | | |
| | | public interface IEventListener { |
| | | public void onLogin(); |
| | | |