Bundle b=new Bundle();
b.putStringArray(key, new String[]{value1, value2});
Intent i=new Intent(context, Class);
i.putExtras(b);
Hope this will help you.
In order to read:
Bundle b=this.getIntent().getExtras();
String[] array=b.getStringArray(key);
More Related Contents:
- Determining the current foreground application from a background task or service
- Android ImageView Zoom-in and Zoom-Out
- Can not find a View with findViewById()
- Custom ImageView with drop shadow
- How to send HTML email
- Android: Getting “Manifest merger failed” error after updating to a new version of gradle
- How do I create a database in android? [closed]
- Android Studio can’t start after installation
- Two TextViews side by side, only one to ellipsize?
- Android : How to update the selector(StateListDrawable) programmatically
- UNREGISTERED_ON_API_CONSOLE while getting OAuth2 token on Android
- Android id naming convention: lower case with underscore vs. camel case
- In Fragment on back button pressed Activity is blank
- How can I check if a value exists already in a Firebase data class Android
- How to reverse the direction of marquee of a TextView
- Using Android Studio with Vuforia [closed]
- Android layout with square buttons
- Stackoverflow: Caused by nested views?
- javafxports how to call android native Media Player
- Android phone orientation overview including compass
- camera.setParameters failed in android
- how to add background image to activity?
- Android how do I wait until a service is actually connected?
- Android device configuration for AOSP
- How can I change language of my application [duplicate]
- Fling Gesture and Webview in Android
- Background Service is not restarting after killed in oppo, vivo, mi android version 7.1.2
- How does “?android:attr/activatedBackgroundIndicator” work?
- Android How can I call Camera or Gallery Intent Together
- Firebase – How to delete many entries at once?