★ wanayoo — archive 1999 https://github.com/NativeScript/android-runtime/issues/1536Nouvelle recherche | Portail wanayoo
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No support for execution of system command using runtime #1536

Closed
sathish95 opened this issue Nov 8, 2019 · 1 comment
Closed

No support for execution of system command using runtime #1536

sathish95 opened this issue Nov 8, 2019 · 1 comment

Comments

@sathish95
Copy link

@sathish95 sathish95 commented Nov 8, 2019

I need my app to list out all logs in my android phone, but i can't able to achieve this in native script.

In Java, the same will be done using below.
`
try {

			Process process = Runtime.getRuntime().exec( "logcat -c");

			process = Runtime.getRuntime().exec( "logcat -f " + logFile + " *:S MyActivity:D MyActivity2:D");

		} catch ( IOException e ) {

			e.printStackTrace();

		}`
@darind
Copy link
Member

@darind darind commented Dec 2, 2019

Duplicate of #1540

@darind darind marked this as a duplicate of #1540 Dec 2, 2019
@darind darind closed this Dec 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.