android - When Back from Camera App by "Discrad" Crash -


activity call camera app (mediastore.action_image_capture - ident).

  1. if user, after taking picture, hit "save" button - calling activity , resume - ok.
  2. if user hit - calling activity, resume - ok
  3. if user hit "discard" button, - crash. calling activity trying recreat instead resume.

os: android 4.4.2 device: samsung galaxy s5

            case r.id.camera:   /**************************/ /** camera               **/ /**************************/      intent takepictureintent = new intent(mediastore.action_image_capture);      if (takepictureintent.resolveactivity(getpackagemanager()) != null) {               startactivityforresult(takepictureintent, request_take_photo);       }          return true;      }     return super.onoptionsitemselected(item); } 

i simplify code minimum, still behavior described.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -