Exams have a foreign key of patients, if I delete a patient that have exams related to, the exams will be deleted too.<pre style="background-color: #f0f0f0; background-position: initial initial; background-repeat: initial initial; border: 1px dashed rgb(204, 204, 204); font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align:...

You need to add (don’t avoid anyone) supportedInterfaceOrientations, shouldAutorotate and preferredInterfaceOrientationForPresentation for IOS 6, and for IOS < 6 shouldAutorotateToInterfaceOrientation and willRotateToInterfaceOrientation.<pre style="background-color: #f0f0f0; background-position: initial initial; background-repeat: initial initial; border: 1px dashed rgb(204, 204, 204); font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"> #pragma mark - Rotation...

Add this into shouldAutorotateToInterfaceOrientation method:<pre style="background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"> [UIApplication sharedApplication].statusBarHidden = NO; </pre>And this to  willRotateToInterfaceOrientation :<pre style="background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial;...

Get Bitmap DefaultHttpClient httpClient = new DefaultHttpClient(); HttpGet request = new HttpGet(urlString); HttpResponse response = httpClient.execute(request); int statusCode = response.getStatusLine().getStatusCode(); if (statusCode == 200) { BitmapFactory.decodeStream(response.getEntity().getContent()); }