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.
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.
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.
Sample class that shows how to build URL policy requests, bind to the service and get the response
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.