Pugnotification icon indicating copy to clipboard operation
Pugnotification copied to clipboard

Bundle not sending if activity is open

Open chanonly123 opened this issue 8 years ago • 1 comments

Bundle not sending if activity is open .click(MainActivity.class, bundle) Bundle extras = getIntent().getExtras();

chanonly123 avatar Mar 15 '17 13:03 chanonly123

try code:

val bundle = Bundle() bundle.putString("tableName", "nouns") bundle.putInt("tableId", 18) .click(NotificationShowedActivity::class.java, bundle)

sending activity: val tableName = intent.extras.getString("tableName") val tableId = intent.extras.getInt("tableId") Toast.makeText(applicationContext, "table: $tableName tableId: $tableId", Toast.LENGTH_SHORT).show()

happy coding.

savasgul avatar Mar 20 '18 13:03 savasgul