java – Failure delivering result ResultInfo-ThrowExceptions

Exception or error: There are many people who have encountered the same error on stackoverflow, but I haven’t been able to find any relevant resolution in those posts. My MainActivity is starting a new activity (SecondActivity) with startActivityForResult(); SecondActivity then returns some data with onBackPressed(); and putExtra(); Extract from MainActivity.java: public void addNewNote(View v){ Intent …

java – Android Realm copyToRealmOrUpdate creates duplicates of nested objects-ThrowExceptions

Exception or error: I have following classes: public class Note extends RealmObject { @PrimaryKey private String id; private Template template; // other primitive fields, getters & setters } public class Template extends RealmObject { private String name; private String color; // other primitive fields, getters & setters } I get my data from backend via …

java – AsyncTask and Contexts-ThrowExceptions

Exception or error: So I’m working out my first multi-threaded application using Android with the AsyncTask class. I’m trying to use it to fire off a Geocoder in a second thread, then update the UI with onPostExecute, but I keep running into an issue with the proper Context. I kind of hobbled my way through …

java – Android camera 2 api BufferQueue has been abandoned-ThrowExceptions

Exception or error: I am testing with new Android camera2 API and I want control each frame from camera. What I do for this is create an ImageReader and set up resolution and image format. ImageReader imageReader = ImageReader.newInstance(1280,720,ImageFormat.YUV_420_888,1); imageReader.setOnImageAvailableListener(new ImageReader.OnImageAvailableListener() { @Override public void onImageAvailable(ImageReader reader) { Image image = reader.acquireLatestImage(); Log.i(MainActivity.LOG_TAG,”imageReader: “+System.currentTimeMillis()); image.close(); …

java – createNewFile – open failed: ENOENT (No such file or directory)-ThrowExceptions

Exception or error: I can’t figure out what’s going wrong here…I’ve tried writing this more succicinctly, that didn’t work. I put in all the extra strings after reading other suggestions with this problem. Not helping. No clue what’s happening. Could it be permissions-related? AFAIK I’m trying to write to internal memory and that doesn’t need …