---
title: "How will you pass data to sub-activities?"  
description: "How will you pass data to sub-activities?"  
author: "Anonymous User"  
published: 2015-05-28  
updated: 2020-09-23  
canonical: https://www.mindstick.com/interview/2584/how-will-you-pass-data-to-sub-activities  
category: "android"  
tags: ["android"]  
reading_time: 1 minute  

---

# How will you pass data to sub-activities?

We can use Bundles to pass data to sub-activities. There are like HashMaps that and take trivial data types. These Bundles transport information from one Activity to another

```
Bundle b = new Bundle();        b.putString("EMAIL", "abc@xyz.com");        i.putExtras(b); // where i is the intent
```

\
...

## Answers

### Answer by Anonymous User

We can use Bundles to pass data to sub-activities. There are like HashMaps that and take trivial data types. These Bundles transport information from one Activity to another

```
Bundle b = new Bundle();        b.putString("EMAIL", "abc@xyz.com");        i.putExtras(b); // where i is the intent
```

\
...


---

Original Source: https://www.mindstick.com/interview/2584/how-will-you-pass-data-to-sub-activities

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
