FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Implement command line version of Android mode · Issue #1361 · processing/processing · GitHub

Repository navigation

Implement command line version of Android mode #1361

Closed

Description

Original author: f...@processing.org (October 21, 2012 00:26:43)

The processing-java command line tool handles Java Mode applications, but the same needs to be done for Android Mode.

Using processing.mode.java.Commander as a guide, this shouldn't be too difficult, it just requires some time.

Original issue: http://code.google.com/p/processing/issues/detail?id=1323

Activity

  1. pif commented on Mar 30, 2013

    I managed to build & run android sketches from command line with ./processing-java. I had to change some lines to achieve that (~250-270 in Commander.java and Devices/AndroidBuild classes visibility).
    Something like:

          AndroidMode androidMode = (AndroidMode) ModeContribution.load(null, Base.getContentFile("modes/android"),
              "processing.mode.android.AndroidMode").getMode();      
          androidMode.checkSDK(null);
    
          try {
            sketch = new Sketch(pdePath, androidMode);
            if (task == BUILD || task == RUN || task == PRESENT) {
              AndroidBuild build = new AndroidBuild(sketch, androidMode);
              build.build("debug");
              AndroidRunner runner = new AndroidRunner(build, this);
              runner.launch(Devices.getInstance().getHardware());
    

    However, how should command-line evolve for android?

    1. as a standalone shell script ./processing-android and class AndroidCommander;
    2. make ./processing-java more general: add --mode=[java/android/etc.], decouple Commander from Java mode?
  2. benfry commented on Apr 11, 2013

    Contributor

    Yeah, it's not a difficult change, so much as it just needs some babysitting.

    I decided that the command line versions should live in the individual modes, since they behave somewhat differently and start diverging fairly quickly. So to answer your question, a separate Commander class over in processing.mode.android would be the right way to go.

  3. added 5 commits that reference this issue on Apr 13, 2013
    3957064
    879424e
    3c74848
    c572cf2
    bddbea5
  4. processing-bugs commented on May 14, 2013

    Author

    Available in the next release. Thanks again!

  5. github-actions commented on Jun 17, 2021

    This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  6. locked as resolved and limited conversation to collaborators on Jun 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL