ホーム > Uncategorized > Public bookmarks 11/13/2013 (p.m.)

Public bookmarks 11/13/2013 (p.m.)


  • tags: android service

    • Sometimes an Activity may need to do a long-running operation that exists  independently of the activity lifecycle itself. An example may be a camera  application that allows you to upload a picture to a web site. The upload  may take a long time, and the application should allow the user to leave  the application will it is executing. To accomplish this, your Activity  should start a Service in which the upload takes place. This allows  the system to properly prioritize your process (considering it to be more  important than other non-visible applications) for the duration of the  upload, independent of whether the original activity is paused, stopped,  or finished.
    • Sometimes an Activity may need to do a long-running operation that exists  independently of the activity lifecycle itself. An example may be a camera  application that allows you to upload a picture to a web site. The upload  may take a long time, and the application should allow the user to leave  the application will it is executing. To accomplish this, your Activity  should start a Service in which the upload takes place. This allows  the system to properly prioritize your process (considering it to be more  important than other non-visible applications) for the duration of the  upload, independent of whether the original activity is paused, stopped,  or finished.

Posted from Diigo. The rest of my favorite links are here.

カテゴリー:Uncategorized
  1. まだコメントはありません。
  1. No trackbacks yet.

コメントを残す

以下に詳細を記入するか、アイコンをクリックしてログインしてください。

WordPress.com ロゴ

WordPress.com アカウントを使ってコメントしています。 ログアウト / 変更 )

Twitter 画像

Twitter アカウントを使ってコメントしています。 ログアウト / 変更 )

Facebook の写真

Facebook アカウントを使ってコメントしています。 ログアウト / 変更 )

Google+ フォト

Google+ アカウントを使ってコメントしています。 ログアウト / 変更 )

%s と連携中

%d人のブロガーが「いいね」をつけました。