ExampleApp/src/com/altinn/apps/fisher/ui/screen/BaseActivity.java
/**
	 * This method was invoked when login-browser-activity finishes its job
	 */
This method was invoked when login-browser-activity finishes its job
This method was invoked when login - browser - activity finishes its job
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
		  if (requestCode == REQUEST_CODE) {
		     if(resultCode == RESULT_OK){ 
		    	 AppContext.getInstance().setLoginExpired(false);
		    	 if(!PreferenceUtils.getInstance().isUserRegistered()){		
		    		 PreferenceUtils.getInstance().setUserRegistered(true);
		 			Intent intent = new Intent(this,UserProfileActivity.class);		
		 			intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
		 			startActivity(intent);
			 	  }else{		 			
			 		  callWebService();
			 	  }
		     }
		     if (resultCode == RESULT_CANCELED) {    
		     }
		  }
		}
protected void onActivityResult ( int requestCode , int resultCode , Intent data ) { if ( requestCode == REQUEST_CODE ) { if ( resultCode == RESULT_OK ) { AppContext . getInstance ( ) . setLoginExpired ( false ) ; if ( ! PreferenceUtils . getInstance ( ) . isUserRegistered ( ) ) { PreferenceUtils . getInstance ( ) . setUserRegistered ( true ) ; Intent intent = new Intent ( this , UserProfileActivity . class ) ; intent . addFlags ( Intent . FLAG_ACTIVITY_CLEAR_TOP ) ; startActivity ( intent ) ; } else { callWebService ( ) ; } } if ( resultCode == RESULT_CANCELED ) { } } }
This method was invoked when login-browser-activity finishes its job
This method was invoked when login - browser - activity finishes its job
//Will execute once we back from login window //Write your code if there's no result