Android Tutorial 67 - Passing Additional Information as Extras

Publié le: 25 mars 2014
sur la chaîne: Code Here Now
1,678
8

This is an excerpt from Learn by Doing - Android for Beginners on Udemy.
https://www.udemy.com/learn-by-doing-...

This lecture teaches you how to pass additional information to Activities using intents.

Things to Remember
-----------------------------
1. You can pass strings, integers, arrays, collections and POJOs implementing Parcelable or Serializable as extras.

2. To put additional information into your intents, use the Intent.putExtra(String, *) set of methods.

3. To retrieve an extra first get the intent that started your Activity using the Activity.getIntent() method.

4. Now use the Intent.getExtras() method or the Intent.get*Extra() set of methods to retrieve your extra.

5. Refer to this Android SDK Reference to inspect the list of put* and get* extras methods to have an elaborate idea.


Sur cette page du site, vous pouvez voir la vidéo en ligne Android Tutorial 67 - Passing Additional Information as Extras durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Code Here Now 25 mars 2014, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 1,678 fois et il a aimé 8 téléspectateurs. Bon visionnage!