Friday, 6 July 2012

Adding different input fields to UIAlertView

The following scenarios will explain how different input fields can be added to an UIAlertView

Code for creating an UIAlertView:

UIAlertView *passwordAlert = [[UIAlertView alloc]
                               initWithTitle:@"Enter Password" 
                               message:@"" 
                               delegate:self 
                               cancelButtonTitle:nil
                               otherButtonTitles:@"Submit",nil]; 


Adding text field to UIAlertView:

passwordAlert.alertViewStyle = UIAlertViewStylePlainTextInput;

Adding password field to UIAlertView:

passwordAlert.alertViewStyle = UIAlertViewStyleSecureTextInput;

Adding login and password field to UIAlertView:

passwordAlert.alertViewStyle = UIAlertViewStyleLoginAndPasswordInput;

Sunday, 17 June 2012

ADT Plugin Installation Error

Error Description:

I am trying to install ADT plugin in eclipse java IDE (indigo) win32 by following instructions from
http://developer.android.com/sdk/eclipse-adt.html#installing
I've entered the URL: ADT Plugin Download for new software installation in eclipse java IDE
then it has shown a checkbox with name developers tools.
When i selected the check boxes ( "Android DDMS","Android Development Tools" and "Android Traceview") and clicked next i got this error

Cannot complete the install because one or more required items could not be found. Software being installed: Android Hierarchy Viewer 18.0.0.v201203301601-306762 (com.android.ide.eclipse.hierarchyviewer.feature.group 18.0.0.v201203301601-306762) Missing requirement: Android Hierarchy Viewer 18.0.0.v201203301601-306762 (com.android.ide.eclipse.hierarchyviewer.feature.group 18.0.0.v201203301601-306762) requires 'org.eclipse.core.runtime 3.7.0' but it could not be found


Possible Solution:

It worked for me after I installed "Eclipse IDE for Java EE Developers" from the URL eclipse-jee-indigo-SR2-win32.zip instead of the Classic.