Giter Site home page Giter Site logo

Comments (5)

twaik avatar twaik commented on September 27, 2024

Why do you need termux-app as a dependency? It will not allow you to use packages. They are built exclusively for com.termux package (architecture restriction).

from termux-app.

MrmaderatorYT avatar MrmaderatorYT commented on September 27, 2024

Why do you need termux-app as a dependency? It will not allow you to use packages. They are built exclusively for com.termux package (architecture restriction).

I wan to make intent to termux to launch command automaticly, using this example:
https://github.com/termux/termux-app/wiki/RUN_COMMAND-Intent#advance-examples

from termux-app.

twaik avatar twaik commented on September 27, 2024

This code is for using with termux-shared library.
But you are not forced to use it. Simply use constants you see in basic example.
I mean

TermuxConstants.TERMUX_PACKAGE_NAME = "com.termux";
TermuxConstants.TERMUX_APP.RUN_COMMAND_SERVICE_NAME = "com.termux.app.RunCommandService";
RUN_COMMAND_SERVICE.ACTION_RUN_COMMAND = "com.termux.RUN_COMMAND";
RUN_COMMAND_SERVICE.EXTRA_COMMAND_PATH = "com.termux.RUN_COMMAND_PATH";
// etc.

from termux-app.

MrmaderatorYT avatar MrmaderatorYT commented on September 27, 2024

This code is for using with termux-shared library. But you are not forced to use it. Simply use constants you see in basic example. I mean

TermuxConstants.TERMUX_PACKAGE_NAME = "com.termux";
TermuxConstants.TERMUX_APP.RUN_COMMAND_SERVICE_NAME = "com.termux.app.RunCommandService";
RUN_COMMAND_SERVICE.ACTION_RUN_COMMAND = "com.termux.RUN_COMMAND";
RUN_COMMAND_SERVICE.EXTRA_COMMAND_PATH = "com.termux.RUN_COMMAND_PATH";
// etc.

How u used RUN_COMMAND_SERVICE.EXTRA_COMMAND_PATH?
I added in manifest and ** **, but second one is highlighted like error

from termux-app.

twaik avatar twaik commented on September 27, 2024

Just use the basic example, not advanced. And combine it with plugin result service example.

from termux-app.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.