Thursday, September 29, 2011

Android: Calling Activity of other Application using Intent

Custom component is created with the notifyNumber in one application.Calling the custom component activity from one more application through intent

Intent intent = new Intent(Intent.ACTION_MAIN);
intent.setClassName("", "");

ACTION_MAIN: Activity Action: Start as a main entry point, does not expect to receive data.
setClassName (String packageName, String className)
  packageName : The name of the package implementing the desired component.
  className: The name of a class inside of the application package that will be used as the component for this Intent.
  Returns the same Intent object, for chaining multiple calls into a single statement.

No comments :

Post a Comment