简体   繁体   中英

Import python code in android project

I have a monitoring application that can be used to monitor devices using android. I currently have the code in python that I run from windows via ADB and get the results on windows in a CSV file.

I would like to create an android project that would behave as described above (an APK, in Java on eclipse), so I can run it without using ADB.

Is there a possibility that I can include the existing python code and call the methods from the old code (after installing the apk on an android device)?

Despite my online research - I could not get appropriate results. Can someone help me out here?

Thank you.

Did you check SL4A and Py4A ?

http://code.google.com/p/python-for-android/

You may check QPython too.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM