Search code examples
javaandroidcommand-line-argumentsprogram-entry-point

Get (String[] args) from Java main in android


I am using a libary in my android app that is designed for standard java. It therefore asks for the "String[] args" that are the arguments in a standard java main function. Is there a way to get those args in android?

I apologize if this is a dumb question.


Solution

  • Is there a way to get those args in android?

    No. You also cannot set those arguments.

    However, presumably you call the main() method yourself, passing in a String[] parameter.