Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2832] Android: Titanium application restarts after taking a picture with the camera (Ti.Media.showCamera)

GitHub Issuen/a
ResolutionNeeds more info
Resolution Date2011-10-07T05:54:53.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsandroid, memory, restart
ReporterJosh Nicholson
AssigneePaul Dowsett


In Android, when using Ti.Media.showCamera, after successfully taking a picture and hitting "OK" in the Android camera app, the Titanium application will restart. It seems to be an issue with low available memory on the device, since Android seems to restart the Ti Activity (along with other activities).


  1. Paul Dowsett 2011-09-18

    Josh Thank you for raising this ticket. I am afraid we need all the information listed in the [Jira Ticket Checklist](http://wiki.appcelerator.org/display/guides/Contributing+to+Titanium#ContributingtoTitanium-Summary%3AJiraTicketChecklist) in order to accept a ticket. Once this ticket is complete, we can move it to the main project. Thank you
  2. Paul Dowsett 2011-10-07

    I am marking this ticket as resolved for the moment. You are welcome to reopen it, once the requested information has been provided. Many thanks for your help.
  3. Gentian Shkurti 2011-11-11

    Same issue happens to me with Ti Mobile SDK 1.7.2 and 1.8.0. I found a workaround however. This is due to modal or fullscreen windows in Android as they are launched in a separate activity. Ensure that the window Ti.Media.showCamera is called from and the window displaying the image just taken is not modal or fullscreen.
  4. Florian Schnell 2011-11-12

    hm... I'm not sure I understand this. I ran into the same problem with my application. But instead of creating a window for every view that we want to render we're currently hiding view A and showing view B. That means our application has got one main window with lots of views and subviews on it. Now I have been checking whether we are applying modal or fullscreen to that main window, but both isn't the case ... Do I have to create two different windows for calling the camera action and displaying the result? (and do these windows need to have differen attributes?) This is the only remaining bug that could keep us from releasing the app :) Thanks for any help on this!
  5. Paul Dowsett 2012-02-17

    Florian, the reporter seems to have abandoned this ticket. If it is still causing you a problem, please raise your own ticket to get it escalated, including all the information described in the [JIRA Ticket Checklist](https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist). Thanks
  6. Paul Dowsett 2012-02-17

    Closing due to inactivity. If this issue still exists, please raise a new ticket, including all the information in the [JIRA Ticket Checklist](https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist) to ensure that we can escalate it quickly. Read [How to Submit a Bug Report](https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report) if you have not read it before, and always start a ticket using the [JIRA Ticket Template](https://wiki.appcelerator.org/display/guides/JIRA+Ticket+Template). Thanks in advance

JSON Source