Home | History | Annotate | only in /developers/samples/android/background/JobScheduler
Up to higher level directory
NameDateSize
Application/21-Aug-2018
build.gradle21-Aug-2018254
buildSrc/21-Aug-2018
CONTRIB.md21-Aug-20181.6K
gradle/21-Aug-2018
gradlew21-Aug-20185K
gradlew.bat21-Aug-20182.3K
kotlinApp/21-Aug-2018
LICENSE21-Aug-201831.5K
packaging.yaml21-Aug-2018480
README.md21-Aug-20182.3K
README.txt21-Aug-2018514
settings.gradle21-Aug-201822
template-params.xml21-Aug-20181.1K

README.md

      1 
      2 Android JobScheduler Sample
      3 ===================================
      4 
      5 Demonstration of the JobScheduler API, which provides an interface for scheduling
      6 background tasks when certain tasks apply.
      7 
      8 To understand how this sample works, try these different scenarios:
      9 
     10 - Unplug device, schedule a task that requires the device to be plugged in. Job will start when the
     11 device is plugged in.
     12 - Set a delay of 10 seconds and press back. The activity and service are finished but the service is
     13 launched again in 10 seconds (logcat will show debug messages).
     14 - Set a delay of 5 seconds and a work duration of 10 seconds. Schedule job and press the
     15 back button. Open the activity again after 6 seconds. The activity will show the onStopTask even
     16 though both activity and service were shut down.
     17 
     18 Pre-requisites
     19 --------------
     20 
     21 - Android SDK 24
     22 - Android Build Tools v24.0.2
     23 - Android Support Repository
     24 
     25 Getting Started
     26 ---------------
     27 
     28 This sample uses the Gradle build system. To build this project, use the
     29 "gradlew build" command or use "Import Project" in Android Studio.
     30 
     31 Support
     32 -------
     33 
     34 - Google+ Community: https://plus.google.com/communities/105153134372062985968
     35 - Stack Overflow: http://stackoverflow.com/questions/tagged/android
     36 
     37 If you've found an error in this sample, please file an issue:
     38 https://github.com/googlesamples/android-JobScheduler
     39 
     40 Patches are encouraged, and may be submitted by forking this project and
     41 submitting a pull request through GitHub. Please see CONTRIBUTING.md for more details.
     42 
     43 License
     44 -------
     45 
     46 Copyright 2016 The Android Open Source Project, Inc.
     47 
     48 Licensed to the Apache Software Foundation (ASF) under one or more contributor
     49 license agreements.  See the NOTICE file distributed with this work for
     50 additional information regarding copyright ownership.  The ASF licenses this
     51 file to you under the Apache License, Version 2.0 (the "License"); you may not
     52 use this file except in compliance with the License.  You may obtain a copy of
     53 the License at
     54 
     55 http://www.apache.org/licenses/LICENSE-2.0
     56 
     57 Unless required by applicable law or agreed to in writing, software
     58 distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
     59 WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
     60 License for the specific language governing permissions and limitations under
     61 the License.
     62 

README.txt

      1 Build Instructions
      2 -------------------
      3 
      4 This sample uses the Gradle build system. To build this project, use the
      5 "gradlew build" command or use "Import Project" in Android Studio.
      6 
      7 To see a list of all available commands, run "gradlew tasks".
      8 
      9 Dependencies
     10 -------------
     11 
     12 - Android SDK Build-tools v20.0.0
     13 - Android Support Repository v2
     14 
     15 Dependencies are available for download via the Android SDK Manager.
     16 
     17 Android Studio is available for download at:
     18     http://developer.android.com/sdk/installing/studio.html
     19