@@ -0,0 +1,873 @@
+package info.guardianproject.geebox;%0A%0Aimport info.guardianproject.otr.dataplug.DataplugService;%0A%0Aimport org.json.JSONException;%0Aimport org.json.JSONObject;%0A%0Aimport android.util.Log;%0A%0Apublic class GDataplugService extends DataplugService %7B%0A%09private static final String REGISTRATION =%0A%09%09%09%22%7B 'descriptor': %09%7B 'uri': 'chatsecure:/geebox', 'name': 'ChatSecure Filebox' %7D, 'meta': %7B 'publish' : true %7D %7D%22;%0A%0A%09@Override%0A%09protected String getRegistration() throws JSONException %7B%0A%09%09JSONObject json = new JSONObject( REGISTRATION );%09%09%09%09%0A%09%09return json.toString() ;%0A%09%7D%0A%0A%09@Override%0A%09protected void doActivate(String aAccountId, String aFriendId) %7B%0A%09%09// TODO Auto-generated method stub%0A%0A%09%7D%0A%0A%09@Override%0A%09protected void handleIncomingRequest(Request aRequest) throws Exception %7B%0A%09%09String aUri = aRequest.getUri();%0A%09%09Log.i(TAG, %22URI = %22 + aUri);%0A%09%09// TODO Auto-generated method stub%0A%0A%09%7D%0A%0A%7D%0A

create dataplug service boilerplate