src/com/alert/location/SettingActivity.java
/**
	 *  Called when an activity is returned back with a resultCode
	 */
Called when an activity is returned back with a resultCode
Called when an activity is returned back with a resultCode
@Override
	protected void onActivityResult(int requestCode, int resultCode, Intent data) 
	{
		super.onActivityResult(requestCode, resultCode, data);
		switch (requestCode) 
		{
			case PICK_CONTACT:
				if(resultCode == Activity.RESULT_OK)
				{
					fetchContact(data,PICK_CONTACT);					
				}
				break;
			case PICK_CONTACT_2:
				if(resultCode == Activity.RESULT_OK)
				{
					fetchContact(data,PICK_CONTACT_2);					
				}
				break;
		default:
			break;
		}
	}
@ Override protected void onActivityResult ( int requestCode , int resultCode , Intent data ) { super . onActivityResult ( requestCode , resultCode , data ) ; switch ( requestCode ) { case PICK_CONTACT : if ( resultCode == Activity . RESULT_OK ) { fetchContact ( data , PICK_CONTACT ) ; } break ; case PICK_CONTACT_2 : if ( resultCode == Activity . RESULT_OK ) { fetchContact ( data , PICK_CONTACT_2 ) ; } break ; default : break ; } }
Called when an activity is returned back with a resultCode
Called when an activity is returned back with a resultCode