[AC-2832] Android: Titanium application restarts after taking a picture with the camera (Ti.Media.showCamera)
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2011-10-07T05:54:53.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | android, memory, restart |
Reporter | Josh Nicholson |
Assignee | Paul Dowsett |
Created | 2011-08-11T12:17:09.000+0000 |
Updated | 2016-03-08T07:47:45.000+0000 |
Description
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).
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
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.
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.
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!
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
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