How To Manage NSMutableDictionary And NSMutableArray
//create the dictionary NSMutableDictionary *dictionary = [[NSMutableDictionary alloc] init]; //add keyed data [dictionary setObject:@”Object One” forKey:@”1″]; [dictionary setObject:@”Object Two”…
Why my Android emulator is very slow
Try Android x86. It’s much faster than the Google Android emulator. Follow these steps: 1-Install VirtualBox. 2-Download the ISO file that you need. 3-Create a virtual machine as Linux 2.6/Other Linux, 512 Mb RAM, HD 2 GB. Network: PCnet-Fast III,…
How to Backup Contacts and SMS Messages using command line in Android
Backup Contacts and SMS The messages are available via the Telephony and contacts via the Contacts provider. The data is stored in SQLite databases in the following locations: /data/data/com.android.providers.telephony/databases/mmssms.db…
How to Set up Android Device Manager to lock and wipe your phone
Android Device Manager Google makes remotely managing and wiping your device easy and effective Back at the beginning of August Google unveiled a new service called “Android Device Manager” that let you locate and remotely wipe your phones…
What is activity life cycle in Android,Explain
activity life cycle in Android onCreate() : Called when the activity is first created. This is where you should do all of your normal static set up: create views, bind data to lists, etc. This method also provides you with a Bundle containing the…
How to catch a Nan?
How to catch a Nan? NaN is not equal to any value, including NaN, use this property instead of the equal-to operator (==) or not-equal-to operator (!=) to test whether a value is or is not NaN. Nan represents Not a number When it happens to get a…
How To Remove and Replace String within a String.
// Here We Deleting Something NSString *content = @”i am a good boy”; NSCharacterSet *deleteString = [NSCharacterSet characterSetWithCharactersInString:@”good”]; content = [[content componentsSeparatedByCharactersInSet:…
How to validate or Allow Only Numeric value TextField in IOS or objective-c
How to validate or Allow Only Numeric value TextField in IOS or objective-c In whatever UITextField you’re getting these values from, you can specify the kind of keyboard you want to appear when somebody touches inside the text field. Check the…
How to use datatype in IOS or Objective-c
%@ Object %d, %i signed int %u unsigned int %f float/double %x, %X hexadecimal int %o octal int %zu size_t %p pointer %e float/double (in scientific notation) %g float/double (as %f or %e, depending on value) %s C string (bytes) %S C string (unichar)…
How to use git command in mac using command line
git command in mac Install Git Using Xcode xcode-select --install With Xcode running on your Mac, you can check whether Git is also available by prompting for the Git version: git --version Install Git Using Homebrew Another way to install Git is with…