Developing Android applications

First thing – get eclipse. Some people recommend the J2EE – I don’t. the regular java version works great for me. Eclipse doesn’t have an installer. That’s not a problem, just extract it where you can find it, say, c:\program files.

Next thing – you go to the android website and download the sdk.

Download the ADT Plugin

  1. Start Eclipse, then select Help > Install New Software.
  2. Click Add, in the top-right corner.
  3. In the Add Repository dialog that appears, enter “ADT Plugin” for the Name and the following URL for the Location:
  4. Click OK.
  5. mark all the options
  6. wait a very long time.

Next thing, you need to enable the ADT Plugin. to do that:

  1. Start eclipse
  2. Select Window > Preferences… to open the Preferences panel (Mac OS X: Eclipse > Preferences).
  3. Select Android from the left panel.
  4. For the SDK Location in the main panel, click Browse… and locate your downloaded SDK directory.
  5. Click Apply, then OK.

Note: there are a lot of stuff to download, in Gb! this will take a while.

Hiding the keyboard on iOS

To hide the keyboard on iOS devices, you need to do two simple things:

  1. Create a method like this: -(IBAction) onTextDone:(id)sender in both header and implementation files (you don’t have to in the header, but it is a good practice) . The signature is what matters here, not the actual name.
  2.  The method implementation will only contain one line: [sender resignFirstResponder]; this tells the sender to quit, in out case, the keyboard.
  3. Now, we need to inform the control about this method: click the control go to the connections inspector and control drag from the Did end on  Exit event to the file’s owner and select the method you just declared.

next time you click on the done key, the keyboard will disappear.