Top "Extras" questions

Terminal emulation for mainframes.

Android Intent.getStringExtra() returns null

This is how strings are being added to Extras: Intent i = new Intent(); i.putExtra("Name", edt_name.getText()); i.…

android string android-intent null extras
Is there any way to put extras to Intent from preferences?

Hi i'm launching activity from preferences screen. Activity is shared among three preferences. I wonder if i can set extras …

android android-intent intentfilter extras
Pass arraylist of user defined objects to Intent android

I am trying to pass a structure of arraylist to an intent as follows, In the calling function i am …

android android-intent bundle extras
How can I correctly pass unique extras to a pending intent?

I'm having a problem with alarmManager and the pending intent with extras that will go along with it. If I …

android android-intent alarmmanager android-pendingintent extras
Android keeps caching my intents Extras, how to declare a pending intent that keeps fresh extras?

A few days ago I was struggling to find a way to use custom intents for my alarms. Although I …

android android-intent extras
Why the PendingIntent doesn't send back my custom Extras setup for the Intent?

This questions somehow relates to the question when I was looking to get the extras back in startActivityForResult but now …

android android-intent extras
Multiple calls to AlarmManager.setRepeating deliver the same Intent/PendingIntent extra values, but I supplied different ones

Solved while writing this question, but posting in case it helps anyone: I'm setting multiple alarms like this, with different …

android android-pendingintent extras alarms
How do I write an android JUnit test when my activity relies on extras passed through an Intent?

I am writing an android Junit test for a class that relies on extras passed to it through an Intent. …

android junit android-intent extras
startActivityForResult and Intents Extras, it seems extras are not pushed back

I have this code: Intent intent = new Intent(); intent.setAction(Intent.ACTION_PICK); intent.setData(ContactsContract.Contacts.CONTENT_URI); intent.…

android android-intent extras
Service doesn't receive intent / extras

I just can't get what's wrong here. Activity.java: ... Intent intent = new Intent(Activity.this, Service.class); intent.putExtra(Service.…

android service android-intent extras