MakinGIANTS
The findings and tips records of an Android-iOS-TheWholeShabang group
Sync Contacts and Calendar with CalDav and CardDav(without Active Sync)
Server field: www.google.comusername: gmail user accountpassword: your passwordSource Official Source
How to work with MVC4 and Entity Framework ForeignKeys with delete on cascade
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:...
Avoid mpmovieplayercontroller embedded in full screen change status bar and view position, size and rotation for IOS 6 and 5
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...
MPMoviePlayerController subview fullscreen change-move parent view size wear
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 from URL
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()); }