Tuesday, July 1, 2014

Be Grateful



be grateful to your
competitor
annoying colleague
abusive person
lost opportunities

Saturday, June 14, 2014

Can Tim Cook boast about Apple’s success? - WWDC 2014

Just finished watching WWDC 2014 and thought I might have slightly different opinion than of Tim regarding Apple’s success. Tim boasts about user base of both iOS 7 and Mavericks comparing Android and Windows 8. Can a user base only be an indicator of its success?

Thursday, May 29, 2014

New yahoo mail

Today when I typed in mail.yahoo.com in my browser (that’s what I normally type to log in to my mail) it took me yahoo.com. I’m started to think that they are quite serious about marketing other than identifying it as a bug. It is not the only change I saw so far. I have listed some interesting changes they have made below.

Saturday, March 29, 2014

Open URL - Android

The following three lines of code will open a URL in an Android app. I'm guessing you cannot open a local html file using the same method in your browser.

Intent intent = new Intent(Intent.ACTION_VIEW,Uri.parse("http://www.google.com"));
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
startActivity(intent);

Wednesday, February 26, 2014

iOS closes the active Wi-Fi connection after 30 minutes


These days I’m involved developing an app (runs on both iPad and iPhone) that relies on Wi-Fi network a lot. I happen to notice that sometimes device looses its connection to the Wi-Fi network. Rest of the team was complaining that they have to keep on going to device settings to re-connect.

Wednesday, January 29, 2014

Google -> Account Chooser -> Automatic Sign In

If you are experiencing automatic sign in to your Google services and you can't find the "stay signed in" checkbox when you sign out, you have come to the correct place for answers.

Wednesday, January 1, 2014

Can’t declare variables inside a switch case – Objective C

If you were under the above impression then the answer is you can with a little bit of change to your code. I’m guessing you are used to the following format,

switch (value){
case value1:
//some code
break;
case value2:
//some code
break;
default:
//some code
break;
}

Tuesday, December 31, 2013

The truth about iOS7 being slow

I have seen many posts describing the above fact, mostly regarding running iOS7 on older devices like the iPhone 4. One truth I found in all the stuff I read is the fact about how iOS7 loads its frameworks. As you all know iOS7 is designed for 64bit. Running 32bit apps might consume more memory than otherwise. Bit hard to believe, right? But it is true. This is how it happens.

Monday, December 30, 2013

Arranging UI elements for iPad split keyboard

It is a common practice to rearrange the UI Elements when the keyboard appears (if required). If you split the keyboard (Do the split gesture or long press the keyboard hide button) the keyboard notifications UIKeyboardDidShowNotification and UIKeyboardDidHideNotification will not get called.

Tuesday, December 10, 2013

Date manipulation – Objective C

You can add/subtract days/months/years from an existing NSDate without much of complicated coding if you use NSCalendar and NSDateComponents. Following is an example how you can add a day to an existing NSDate.

Monday, September 30, 2013

UIDatePicker and iOS7

If you haven't still noticed UIDatePicker has changed in iOS7. However any app compiled using the old xcode will still have the old date picker.