Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.net.Uri;

public class Main {

    private static boolean isEncrypt(String url) {
        int ret = 0;
        try {
            Uri uri = Uri.parse(url);
            ret = Integer.parseInt(uri.getQueryParameter("isEncrypted"));
        } catch (Exception e) {
            e.printStackTrace();
        }
        return ret == 1;
    }
}