Facebook –
GitHub –
Google+ –
LinkedIn –
reddit –
Support –
thenewboston –
Twitter –

Nguồn:https://u-os.org/

Author

25 Comments

  1. dinesh sharma Reply

    step 1: create a new class for service, follow some java rules(alt+insert or ctrl+o) and add your service code in it
    step 2: make an entry to manifest file to let it know that our app includes a service
    step 3: kick of your services by going to the main activity.java

    My favorite part: it automatically puts service to a separate thread we don't have to go and beat our fingers by coding it

  2. Parashar Sangle Reply

    almost half an year into android and this tutorial still helps :*
    #respect!

  3. George Popa Reply

    Excellent Video! Excuse me for chiming in, I would love your thoughts. Have you researched – Chiveard Creating Empire Framework (do a search on google)? It is a good one off guide for learning how to create and develop your own android app without the headache. Ive heard some pretty good things about it and my buddy got great results with it.

  4. String helloWorld; Reply

    Amazing, you are best of the best!!! Perfect, thank you so much! 🙂

  5. For those wondering what is the different between IntentService and Service:
    https://stackoverflow.com/questions/15524280/service-vs-intentservice

  6. Ian Schoenrock Reply

    How did you auto complete it to get the constructor at 3:44? Also solid video this saved me a ton

  7. Ali Al-Mahdi Reply

    Can you link the Service to a Button where "on click" it will fetish some updates from an external database etc…?

  8. Evgeni Kuzmov Reply

    i dont really understand what "this" is ? pls, can someone explain it in a simple way ?

  9. I get an Session 'app': Error Launching activity error when i try to launch my app on my device, any help?

  10. ADITI MODGIL Reply

    bucky why the heck are you so damn awesome? you have saved me so many times. keep rocking

  11. Thank you bucky your videos have really helped save my neck more than once

  12. If you get an error saying there is no default constructor, check your IntentService.java file to make sure there are no parameters for the public IntentService (the one that has the "super("…") line in it)

  13. hello guys, i have a question want to ask.
    does anyone knows will the intent service be destroyed after the app is closed?

  14. avinash ranga Reply

    You can also get a toast message saying "The service has now started" by replacing the onHandleIntent (Intent intent) function by

    @Override
    protected void onHandleIntent(Intent intent) {
    //this is what the service does
    Context context = getApplicationContext();
    Toast.makeText(context,"the service has now started",Toast.LENGTH_LONG).show();
    }
    }
    and also remove the TAG Variable created just after the public class BuckysIntentService extends IntentService class.

  15. omar boncales Reply

    inside onHandleIntent, i put "Toast.makeText(…….).show();"
    but when i try there's nothing popping out.

  16. How is this different from calling the Log thing (or the download) in a new thread manually? Did I miss something?

Write A Comment