Android Java -It does not create and save both albums -
i said have problem. 1. saved album can not created url of picture. there bug in code, still not understand, i'm glad throw hand.
private void downloadimage() { if (future != null) { //set callback , start downloading future.withresponse().setcallback(new futurecallback<response<inputstream>>() { @override public void oncompleted(exception e, response<inputstream> result) { boolean success = false; if (e == null && result != null && result.getresult() != null) { try { //prepare file name string url = mselectedimage.geturl(); string filename = url.substring(url.lastindexof('/') + 1, url.length()) + ".jpg"; //create temporary directory within cache folder file dir = utils.getalbumstoragedir("wall-splash"); //create file file file = new file(dir, filename); if (!file.exists()) { file.createnewfile(); } //copy image onto file utils.copyinputstreamtofile(result.getresult(), file); //animate first elements animatecompletefirst(true); success = true; } catch (exception ex) { log.e("un:splash", ex.tostring()); } //animate after complete animatecomplete(success); } else { animatereset(true); } } }); } } error (android studio) 05-30 21:40:40.297 3608-4157/com.mikepenz.unsplash.debug e/art﹕ dlopen("/data/app/com.mikepenz.unsplash.debug-2/lib/arm/libgmscore.so", rtld_lazy) failed: dlopen failed: library "/data/app/com.mikepenz.unsplash.debug-2/lib/arm/libgmscore.so" not found 05-30 21:40:40.297 3608-4157/com.mikepenz.unsplash.debug e/providerinstaller﹕ unable load native code /data/app/com.mikepenz.unsplash.debug-2/lib/arm/libgmscore.so 05-30 21:40:40.317 3608-4157/com.mikepenz.unsplash.debug e/providerinstaller﹕ libgmscore version mismatch (0 vs. 7571) 05-30 21:53:32.082 3608-3608/com.mikepenz.unsplash.debug i/wall-splash﹕ directory not created
Comments
Post a Comment