ورود

View Full Version : توضیحاتی در مورد Service و BroadcastReceiver



sajadpm
چهارشنبه 23 مرداد 1392, 21:28 عصر
با سلام و خسته نباشید خدمت دوستان عزیز

دوستان می خواستم توضیحاتی در مورد service ها و BroadcastReceiver بهم بدین همچنین من یک service درست کردم که می خواهم در backgroud هر 5 دقیقه یک بار اجرا بشود ؟ ! تشکر

sajadpm
جمعه 25 مرداد 1392, 20:57 عصر
دوستان کسی نبود راهنمایی کنه ؟

topcoder
شنبه 26 مرداد 1392, 21:21 عصر
Broadcast receivers: These react to specific intents, and might execute an action such as starting a specific activity or sending out another intent to the system.

Services: These are processes that work in the background and don’t have a visible UI. A service might be responsible for polling a mail server for new e-mails, for example.

Activities: These are user-facing components that present a UI to interact with.

Intents: These are messages created by the system or applications themselves, that
are then passed on to any interested party. Intents might notify us of system events
such as the SD card being removed or the USB cable being connected. Intents are
also used by the system for starting components of our application, such as
activities. We can also fire our own intents to ask other applications to perform an
action, such as opening a photo gallery to display an image or starting the Camera
application to take a photo.

Content providers: These components make parts of your application data available
to other applications.



ترجمه نکردم چون زیاد جالب نمیشه ترجمه اش :)
عبارت doInBackground رو تو گوگل دولوپر سرچ کن جوابتو پیدا میکنی :)
همچنین میتونی thread هم استفاده کنی بسته به اینکه هدفت چی باشه

sajadpm
شنبه 26 مرداد 1392, 21:51 عصر
تشکر از شما دیروز کل این صفحه www.vogella.com/articles/AndroidServices/article.html رو خوندم فکر کنم معنی هر دوشون رو فهمیدم و مشکلم حل شد