added startActivity function

Related to appium/appium #2969.  Added startActivity api that maps to new appium feature.
Are appWaitPkg and appWaitAct dependent on the other? IE can you have just
one of them?

On Friday, September 5, 2014, Jonah <notifications@github.com> wrote:

> In src/main/java/io/appium/java_client/AppiumDriver.java:
>
> > @@ -168,6 +169,17 @@ public String currentActivity() {
> >      Response response = execute(CURRENT_ACTIVITY);
> >      return response.getValue().toString();
> >    }
> > +
> > +  /**
> > +   * Launches an arbitrary activity during a test. If the activity belongs to
> > +   * another application, that application is started and the activity is opened.
> > +   * This is an Android only method.
> > +   * @param options 'appPackage' and 'appActivity' are required;
> > +   *                'appWaitPackage' and 'appWaitActivity' are optional
> > +   */
> > +  public void startActivity(Map<String, String> options){
>
> Since this is a client, we try to be convenient :) Instead of an 'options'
> object, which can have any keys, and putting the key names in the comments,
> can we have a method that just accepts 4 arguments? Since two are optional,
> we can have two methods, one calling the other.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/appium/java-client/pull/101/files#r17204294>.
>