Learn, Share, Build

194
September 23, 2017, at 03:17 AM

I have API 1.1 on my SONY camera. I switched to "Contents Transfer" mode, then I call deleteContent, and tried it many times (in a while-loop), but every time I get a "Not Available Now" response. I tested it with the CameraRemoteSampleApp and created this function in SimpleRemoteApi.java. I checked my generated JSON but this seems all right:

    public JSONObject deleteContent(JSONObject params) throws IOException {
    String service = "avContent";
    try {
        //JSONObject params = new JSONObject().put("scheme", scheme);
        JSONObject requestJson =
                new JSONObject().put("method", "deleteContent") //
                        .put("params", new JSONArray().put(params)) //
                        .put("version", "1.1").put("id", id());
        String url = findActionListUrl(service) + "/" + service;
        log("Request:  " + requestJson.toString());
        String responseJson = SimpleHttpClient.httpPost(url, requestJson.toString());
        log("Response: " + responseJson);
        return new JSONObject(responseJson);
    } catch (JSONException e) {
        throw new IOException(e);
    }
}
READ ALSO
Learn, Share, Build

Learn, Share, Build

I've to generate some charts from DB data and then print them to PDFCurrently, I've made this AsyncTask:

208
Learn, Share, Build

Learn, Share, Build

I am looking for a kind of library or framework that takes a picture crop it according to text written in picture and then highlight the text for Android platform

172
Learn, Share, Build

Learn, Share, Build

Im using unity 20171

280
Learn, Share, Build

Learn, Share, Build

I am working on a custom ListView Element that is stored in a SQL DatabaseI tried to convert the bitmap into a byteArray and then save it in the Database but when i leave the activity and come back its not there anymore

166