android - Do I actually need to export SyncAdapter service? -
onperformsync(...) { // building status bar notification here } <service android:name=".syncservice" android:exported="false"> ...
this works me (4.4.2 sgn3). notifications appear. both requestsync() , addperiodicsync().
do has thoughts about?
is there need exporting syncadapter service?
what wanna know whether other (enemy) application can start exported service or not. if can, don't need export service hoping android isn't liberal.
i haven't find clarifications in android dev guide/api. i'm pretty novice , hope question right , understandable plenty :)
i suppose need export syncservice using other applications. documentation says:
the attribute android:exported="true" allows processes other app (including system) access service.
if don't need share sync service other apps, can leave not exported. need test on old versions of android, it's logic might has changed.
android synchronization android-syncadapter
No comments:
Post a Comment