Android Open Source - android-robot-control-app Controller Fragment Factory






From Project

Back to project page android-robot-control-app.

License

The source code is released under:

GNU General Public License

If you think the Android project android-robot-control-app listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package will.st.bluetooth.robot.controller.controllers;
//from  w  w  w  .j  a v  a2 s  .  c o  m
import java.io.OutputStream;


public class ControllerFragmentFactory {
  public static ControllerFragment createControllerFragment(String type,
      OutputStream outputStream) {
    ControllerFragment controllerFragment = null;
    if (type.equals("XControllerFragment")) {
      controllerFragment = new XControllerFragment(outputStream);
    }
    return controllerFragment;

  }
}




Java Source Code List

will.st.bluetooth.robot.controller.BtConnectFragment.java
will.st.bluetooth.robot.controller.ConnectionFailedException.java
will.st.bluetooth.robot.controller.ControllerActivity.java
will.st.bluetooth.robot.controller.CrabToyFragment.java
will.st.bluetooth.robot.controller.MainMenuActivity.java
will.st.bluetooth.robot.controller.ToyMenuActivity.java
will.st.bluetooth.robot.controller.TwoWheelToyFragment.java
will.st.bluetooth.robot.controller.controllers.ControllerFragmentFactory.java
will.st.bluetooth.robot.controller.controllers.ControllerFragment.java
will.st.bluetooth.robot.controller.controllers.XControllerFragment.java