Can somebody please explain to me what an activity, a context and an intent in Android are?
I read the Android documentation, but I could not understand these concepts.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Activity: represents the presentation layer of an Android application, e.g. a screen which the user sees. An Android application can have several activities and it can be switched between them during runtime of the application.
ContentProvider: provides data to applications, via a content provider your application can share data with other applications. Android contains a
SQLiteDB which can serve as the data providerIntents – are asynchronous messages which allow the application to request functionality from other services or activities. An application can call directly a service or activity (explicit intent) or ask the Android system for registered services and applications for an intent (implicit intents). For example, the application could ask via an intent for a contact application. Applications register themselves to an intent via an
IntentFilter. Intents are a powerful concept as they allow the creation of loosely coupled applications.See the following link: http://www.vogella.de/articles/Android/article.html.