public FriendsDBAdapter(Context context, String _id, String _password) {
   super(context, FriendService.DB_NAME, null, DATABASE_VERSION);
   id = _id;
   password = _password;
   service = new FriendService();
   service.setUp(id, password);
 }
  public Object getData() {
    SQLiteDatabase db = getWritableDatabase();
    Cursor c = db.query(FriendService.DB_TABLE, null, null, null, null, null, null);
    if (c.moveToFirst()) {
      db.close();
      return service.parseJson(c.getString(1));
    }

    return null;
  }
 public boolean syncData() {
   String json = service.parseJson();
   return setData(id, json);
 }