No description, website, or topics provided.
Java
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
res
src/com
.classpath
.gitignore
.project
AndroidManifest.xml
LICENSE
README.markdown
proguard.cfg
project.properties

README.markdown

PolicyClient

This is a sample application that shows how to get URL policy for a given URL. On running this application, it takes the url typed by the user in the textfield and gets the URL policy. If the url contains ".xxx", the policy will mark that as unsafe.

IURLPolicyService.aidl

This contains IURLPolicyService.aidl, the Android Interface Definition File (AIDL) file for the URL policy. You can copy this file to your project's /src folder to generate the IBinder interface.

Constants.java

This class contains the constants used by the application. You can copy this file or its contents to create the request bundle and process the response bundle.

URLPolicyService.java

Sample class that shows how to build URL policy requests, bind to the service and get the response

AndroidManifest.xml

Should contain the permission to get URL Policy

Running the application

Import the project to eclipse as an Android project. You can build the project and export as an Android application. This can run both on device and emulator.