Podeszliśmy do tematu od dupy strony. Zamiast tworzyć bazę połączeń powinniśmy wykorzystać istniejącą
Baza danych (SQLite) połączeń znajduje się w data/data/com.sec.android.provider.logsprovider/databases/logs.db
Niestety bez roota nie da się zrobić*zapytania JEDNAK...
Tasker pozwala nam na wykorzystanie funkcji javy bezpośrednio
http://tasker.dinglisch.net/userguide/en/java.html
Cytat:
Android has hundreds of thousands of functions which apps can use. It's not possible for Tasker to present all of those to the user, so Tasker allows the advanced user to directly call those Java functions and work with Java objects themselves.
It does not allow you to 'write Java code'... but the combination of Tasker's logic and flow control with direct access to the Android API is sufficient for most automation purposes.
This page assumes you have a basic familiarity with the Java concepts of objects and classes.
Developer information on the Android API is available from Google.
|
Cytat:
Example
Variable Set, %service, wifi
Java Function, wiman = CONTEXT.getSystemService( %service )
Java Function, %enabled = wiman.isWifiEnabled()
Java Function, wiman.setEnabled( true ), If %enabled eq false
|
Tasker pozwala dodatkowo na tworzenie aplikacji, które można udostępnić innym którzy nie posiadają Taskera!
http://tasker.dinglisch.net/userguid...pcreation.html
Postaram się w niedługim czasie zrobić coś*co będzie zaczątkiem do aplikacji pokazującej statystyki połączeń.