• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Asynctasks
 

Asynctasks

on

  • 4,643 views

I created this document as a support of my presentation , Asynchronous Tasks with Android,

I created this document as a support of my presentation , Asynchronous Tasks with Android,

Statistics

Views

Total Views
4,643
Views on SlideShare
3,986
Embed Views
657

Actions

Likes
1
Downloads
72
Comments
1

2 Embeds 657

http://www.android-montreal.com 655
http://www.lighthouseo.com 2

Accessibility

Categories

Upload Details

Uploaded via as OpenOffice

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel

11 of 1 previous next

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
  • Very nice and helpful presentation, thanks for sharing with us.
    Check this link ...
    http://mindstick.com/Articles/c25f0596-db32-4a79-bda4-38535f3b8dc0/?Using%20AsyncTask%20in%20Android%20Application
    It is helpful in understanding in asynchronous tasks with android.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Asynctasks Asynctasks Presentation Transcript

    • Asynchronous Tasks with Android Anthony Dahanne, Ing Jr identi.ca/twitter : @anthonydahanne blog : http://blog.dahanne.net Android Montreal, le 01/09/2010
    • Content
      • Why should I care about multi threading ?
      • What are the options ?
      • AsyncTasks to the rescue !
      • AsyncTask API : the lifecycle
      • AsyncTask API : real life example (demo)
      • Q&A
    • Why should I care about threading ?
      • Remote calls (Http)
      • Intense computing (media manipulation)
      One thread = Frustrated user !
    • Why should I care about threading ?
      • Remote calls (Http)
      • Intense computing (media manipulation)
      Many threads = Happy user
    • What are the options ? Or you can try THE REAL THING ! Handler based API : Activity.runOnUiThread(Runnable) View.post(Runnable) View.postDelayed(Runnable, long) And .... Handler ! (android.os.Handler)
    • AsyncTasks to the rescue ! Asynctask API : Something doInBackground(String... params) { return null; } protected void onPreExecute() { } protected void onPostExecute(Something b) { } protected void onProgressUpdate(Ty... values) { } The best way to round kick your threads !
    • Asynchronous Tasks : the lifecycle
    • AsyncTask : real life example
    • The end ! Q&A !
    • References
      • AsyncTasksDemo
        • http://github.com/anthonydahanne/asynctasksdemo
      • G2Android, the Gallery2 client for Android
        • http://code.google.com/p/g2android/
      • Painless threading, by Romain Guy
        • http://android-developers.blogspot.com/2009/05/painless-threading.html
      • Multithreading For Performance, by Gilles Debunne
        • http://android-developers.blogspot.com/2010/07/multithreading-for-performance.html
      • Photos :
        • Slide 5 : http://www.flickr.com/photos/miggs43/4478547596/
        • Slide 6 : http://itsguycode.com/images/stories/chuck-norris/chuck-norris-thumbs-up.jpg
      • Video :
        • Slide 9 : http://www.youtube.com/watch?v=_hZrXdJ-ibo&NR=1