Git Product home page Git Product logo

android-basicsyncadapter's Introduction

Android BasicSyncAdapter Sample

This sample has been deprecated/archived meaning it's read-only and it's no longer actively maintained (more details on archiving can be found here).

For other related samples, check out the new github.com/android/background-tasks-samples repo. Thank you!

android-basicsyncadapter's People

Contributors

bashtian avatar codingjeremy avatar google-automerger avatar tjohns avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

android-basicsyncadapter's Issues

Minimum frequency for PeriodicSync

`I came here from Android Issue (https://code.google.com/p/android/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Status%20Priority%20Owner%20Summary%20Stars%20Reporter%20Opened&groupby=&sort=&id=211975) logged against Android N Developer preview.

This project was used as an example to demonstrate the issue.

Is the implication of the comments from Google Issue is that PeridicSync cannot be used if a sync is desired more frequently than 60 minutes ? Is there an alternative available to achieve this effect that you might be considering adding to this project?

ContentResolver.requestSync() not calls the SyncService on SDK 26.

The app is working as expected upto Lollipop version. (i.e:) It takes data from the content provider and post to Server when network connectivity is available.

The issue occur from Marshmallow version, The requestSync() is not triggering onPerformSync(). So Syncing not occurs. Provide suggestion in this case.

Changing from ListFragment to Fragment w/ RecyclerView

I know it is a sample, and implementation is simple. But since RecyclerView (aka ListView2) is introduced and have better memory usage. Could this sample have a code update so it becomes a "practice" for using RecyclerView rather than ListView / ListFragment?

can not perform sync on sdk 26

I have a problem about syncing emails on Android 8.0.0 released on 10.5.On the app "Gmail",mailboxes is synced ,emails can not be synced. On the demo,I found no matter click syncing icon or click syncing icon in the Setting, the method onPerformSync in class SyncAdapter did not executed.I tried many methods such as modify the xml,add or delete params in syncing methods but they did not work. ps:all these things turns to be right if I run apps on SDK 7.0 or 6.0,and logcat tells me nothing .

EntryListActivity.class requires API 8 sample set to api 7

See :

https://github.com/googlesamples/android-BasicSyncAdapter/blob/master/Application/tests/src/com/example/android/basicsyncadapter/tests/SampleTests.java#L31

https://github.com/googlesamples/android-BasicSyncAdapter/blob/master/Application/build.gradle#L37

it builds and runs on device api 19 fine... It is unknown to me what the difference is...more research is required, or someone who already knows...

Can this be fixed with

int currentapiVersion = android.os.Build.VERSION.SDK_INT;
if (currentapiVersion >= android.os.Build.VERSION_CODES.FROYO){
    super(EntryListActivity.class);
} else{
    // ??
}

or


int currentapiVersion = Build.VERSION.SDK_INT;
if (currentapiVersion >= Build.VERSION_CODES.FROYO){
    super(EntryListActivity.class);
} else{
    // ??
}

Granted personally I no longer support Froyo...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.