in Technology by
What is the use of Bundle in Android?

1 Answer

0 votes
by

Bundles are used to pass the required data between various Android activities. These are like HashMap that can take trivial data types. Below code shows how to transfer a piece of data by using bundle:

Bundle b=new Bundle();
b.putString("Email","[email protected]");
i.putExtras(b); // where i is intent

Related questions

0 votes
    What is bundle in Objective-c?...
asked Nov 10, 2020 in Technology by JackTerrance
0 votes
    I'd like to be able to determine if a directory such as a '.app' is considered to be a package ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 23, 2022 in Education by JackTerrance
0 votes
    I'm trying to find the replacement for kicker.bundle that was found in /System/Library/SystemConfiguration ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 8, 2022 in Education by JackTerrance
0 votes
    I'm trying to find the replacement for kicker.bundle that was found in /System/Library/SystemConfiguration ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 6, 2022 in Education by JackTerrance
0 votes
    I am trying to implement a Settings.Bundle based application. For that, I implement Settings.bundle in my ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 19, 2022 in Education by JackTerrance
0 votes
    Which of these is a bundle of information passed between machines? (a) Mime (b) Cache (c) ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    How is the use of web view in Android?...
asked Jan 14, 2021 in Technology by JackTerrance
0 votes
    I want making multi-bluetooth from Android studio. I found multi-bluetooth java code libraries. but I am ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jul 3, 2022 in Education by JackTerrance
0 votes
    In my Android Application I want to create a bunch of ConstraintLayouts where each has for example an ImageView and a TextView ... .LayoutParams cparams.setMargins(4, 4, 4, 4) //...
asked May 7, 2022 in Education by JackTerrance
0 votes
    I am creating an Android app that will download and cache PDF files (the files are for issues of ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 26, 2022 in Education by JackTerrance
0 votes
    I'm designing a service that will comprise a cloud-based database (with a UI for us to manage the data), ... sit behind mobile apps. Select the correct answer from above options...
asked Feb 2, 2022 in Education by JackTerrance
0 votes
    why android devolepor doesn’t use support android library for a large project? Select the correct answer from above options...
asked Dec 11, 2021 in Education by JackTerrance
0 votes
    What are the main exceptions in Android?...
asked Aug 17, 2021 in Technology by JackTerrance
0 votes
    What is an Adapter in Android?...
asked Aug 13, 2021 in Technology by JackTerrance
...