Skip to content Skip to sidebar Skip to footer

Android: Send & Get String Besides By Using Extra() Method

I just wonder what method can be use to send String from one to another activity besides by using intent.putExtra(), and getIntent.getExtra(). Cause my project getting unexpected r

Solution 1:

you can also send by following ways

How do I pass data between Activities/Services within a single application?

Non-Persistent Objects

For sharing complex non-persistent user-defined objects for short duration, the following approaches are recommended:

  • Singleton class - Ref Here:

  • A public static field/method

  • A HashMap of WeakReferences to Objects

Post a Comment for "Android: Send & Get String Besides By Using Extra() Method"