Quantcast
Channel: HTML5EdTech via Ted Curran on Inoreader
Viewing all articles
Browse latest Browse all 22746

Transfer Data between Activities with Android Parcelable

$
0
0

1470821890example_image_combined.jpg

An Android app typically consists of more than one activity that need to pass data between each other. For example a primary activity with a list of elements and a corresponding secondary activity to show the details of these elements. To move from one activity to another you use the intent class to connect them together. This lets you launch an activity and optionally return later (If you're new to intents there's a good resource in the Google dev docs that explains the process)

[author_more]

Part of the process is sending data between activities and you do that via the putExtra and getExtra methods of our intent object. The idea is to make the process of passing different types of data easy as:

Continue reading %Transfer Data between Activities with Android Parcelable%


Viewing all articles
Browse latest Browse all 22746

Trending Articles