Questions tagged [extras]
113 questions
2
votes
2 answers
Intent extras null on configuration change
I created a layout that displays on a SurfaceView and I can get the setDataSource by using Bundle extras = getIntent().getExtras().
Everything works fine until I try to set the landscape layout from land\layout.xml.
My logcat is
Caused by:…

Fay Zan
- 165
- 2
- 17
2
votes
2 answers
Get sms address from intent data
I need to retrieve a phone number from different type of intents.
Cases are intents as:
Intent smsIntent = new Intent(android.content.Intent.ACTION_VIEW);
smsIntent.setType("vnd.android-dir/mms-sms");
smsIntent.putExtra("address","phoneNumber"); …

Lampione
- 1,622
- 3
- 21
- 39
2
votes
1 answer
getLongExtra always return default value using PendingIntent
I want to pass a long value using a PendingIntent something like this
Intent intentForPending = new Intent(context, NewBlaBlaActivity.class);
long courseId = 15252;
intentForPending.putExtra("courseId",…

Egemen Hamutçu
- 1,602
- 3
- 22
- 34
2
votes
2 answers
Is intent.getExtras.getInt() same as intent.getIntExtra()?
I am confused:
Is intent.getExtras.getInt() same as intent.getIntExtra()?
If I start my service using START_REDELIVER_INTENT, will the extras
be included in the intent?
I get NullPointerException on restart of my crashed service, which I find…

JohnyTex
- 3,323
- 5
- 29
- 52
2
votes
1 answer
SendBroadcast Intent Has Null Extras
I am trying to send a message from an IntentService to an Activity using a BroadcastReceiver. Here is my code in the IntentService:
/**
* Received a message from the Google GCM service.
*/
@Override
protected void onMessage(Context context, Intent…

Joshua W
- 4,973
- 5
- 24
- 30
2
votes
1 answer
Android notification no data
Do some apps not use the standard notification constants provided by the notification class? Specifically for iHeartRadio, when I display the constants to the log everything is null except the album art (EXTRA_SMALL_ICON).
02-22 17:54:56.520 …

gingerdev
- 143
- 1
- 10
2
votes
3 answers
Problems Passing Intent Extras to same activity ANDROID
I am trying to pass intent extras to the same activity, but giving null pointer exception when clicking the page. I am trying to take an intent extra and use that to determine which layout file to load.
public class stuff extends Activity {
…

user1443402
- 33
- 2
- 9
1
vote
3 answers
How to pass Intent Extras?
public class Menus extends Activity {
//set constants for MediaStore to query, and show videos
private final static Uri MEDIA_EXTERNAL_CONTENT_URI = MediaStore.Video.Media.EXTERNAL_CONTENT_URI;
private final static String _ID =…

Cataroux
- 147
- 1
- 2
- 18
1
vote
3 answers
Intent send is not intent received
So I am trying to launch a new activity after the item in a list is selected.... pretty basic based on what I've read. I am also trying to send a value in the extras. So I can select the item in a list, and the new activity starts, extras is set,…

Dman25
- 13
- 5
1
vote
1 answer
Passing extras from tab activity android
I am having an issue with tabs, and I figure someone will know how this works. Basically I am trying to pass data between tabs in an app, but I am not sure how to do this. I had it set up before where a button would change the activity, but when I…

WWaldo
- 167
- 3
- 14
1
vote
0 answers
Android: Passing string containing HTML between activities?
I'm trying to pass a string between 2 activities using an intent extras bundle.
Parent activity:
Intent i = new Intent(Advice.this, AdviceDetail.class);
Bundle bAdvice = new Bundle();
bAdvice.putString("description",…

ShibbyUK
- 1,501
- 9
- 12
1
vote
1 answer
Android extras bundle returning zero instead of actual long value?
This was working before, but now the .getLong method is returning a zero.
public class TaskerDBadapter
{
public static final String KEY_ROWID = "_id";
}
Bundle extras = getIntent().getExtras();
if (extras != null)
{
…

333Matt
- 1,124
- 2
- 19
- 29
1
vote
0 answers
Crash Report for notifications Android
guys. How are you all doing? Good I hope.
I have a question regarding crash reports from my app, more specifically when receiving a notification. As far as I was able to test the application, it had no issues with showing it's notifications, but in…

Теодор Митев
- 89
- 11
1
vote
1 answer
Modx - Collections: Get Selections paginated with pdoTools
How to output Selections children with pagination using pdoTools (pdoResources & pdoPage) and getSelections.
See my answer below.

Gevorg Hakobyan
- 328
- 3
- 14
1
vote
3 answers
Is it possible to add extras to browsable intents from HTML
Let's take per say the following manifest:
…

0rka
- 2,246
- 2
- 11
- 20