Detect Android

41 views
Skip to first unread message

ale5000

unread,
Sep 18, 2016, 1:00:29 PM9/18/16
to QPython
Can you please set sys.platform to "linux-android" in both QPython and QPython3?

This will not break scripts that use sys.platform.startswith('linux') but still allow to detect android for those that need it.

QPython Support

unread,
Oct 2, 2016, 11:47:24 AM10/2/16
to qpy...@googlegroups.com
I think you can try to use "import androidhelper" for detecting whether it was running on android.



2016-09-19 1:00 GMT+08:00 ale5000 <ale...@gmail.com>:
Can you please set sys.platform to "linux-android" in both QPython and QPython3?

This will not break scripts that use sys.platform.startswith('linux') but still allow to detect android for those that need it.

--
You received this message because you are subscribed to the Google Groups "QPython" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qpython+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages