extras Questions
3
I am trying to verify that specific extras are added to Intent, but all the time I get null for the Intent in Unit test Android. I have the following class that need to be test:
public class TestC...
Maintopmast asked 28/9, 2017 at 12:21
3
Solved
A few days ago I was struggling to find a way to use custom intents for my alarms. Although I got clear answer that I have to customize the Intents based on some unique ID eg. setAction() still hav...
Iou asked 29/6, 2010 at 11:12
1
Solved
So I asked a question a month ago. I had a really nice answer to that question. I wanted to test if the answer works right now. But I am getting ModuleNotFoundError.
I did following before testing...
5
Solved
This questions somehow relates to the question when I was looking to get the extras back in startActivityForResult but now I face another challenge.
I have subscribed to receive ProximityAlerts an...
Arndt asked 27/6, 2010 at 16:23
8
Solved
Hi i'm launching activity from preferences screen. Activity is shared among three preferences.
I wonder if i can set extras for this activity in xml
<Preference
android:key="action_1"
android...
Jezabelle asked 17/1, 2010 at 21:6
3
Solved
I am making an Android app for the first time and I am having this problem.
When a user A sends a friend request to another user B, user B gets a notification. I wish when the user B click on the n...
Cubeb asked 15/1, 2016 at 11:8
3
I am trying to pass a structure of arraylist to an intent as follows,
In the calling function i am using
ArrayList<Parliament> s=(ArrayList<Parliament>)msg.obj;
Intent i = new Inten...
Concretize asked 1/4, 2013 at 16:56
2
Solved
Can someone tell what are different between this things? Moreover, I can't understand, why needs use TimeBasedRollingPolicy if DailyRollingFileAppender exists ?
Gal asked 23/8, 2013 at 14:28
4
Solved
I have this code:
Intent intent = new Intent();
intent.setAction(Intent.ACTION_PICK);
intent.setData(ContactsContract.Contacts.CONTENT_URI);
intent.putExtra(EXTRA_ONLINE_ID, (String) v.getTag()...
Encage asked 18/5, 2010 at 18:12
1
Solved
This is how strings are being added to Extras:
Intent i = new Intent();
i.putExtra("Name", edt_name.getText());
i.putExtra("Description", edt_desc.getText());
i.putExtra("Priority", skb_prior.getP...
Gynoecium asked 21/3, 2013 at 18:49
3
Bit of a confusing problem for me here:
I've got a home screen widget which, when clicked, starts my main app Activity with a few extras put in the intent:
Intent start = new Intent(context, Main...
Regularly asked 1/2, 2011 at 17:54
3
Solved
Solved while writing this question, but posting in case it helps anyone:
I'm setting multiple alarms like this, with different values of id:
AlarmManager alarms = (AlarmManager)context.getSystemS...
Gilberto asked 16/5, 2010 at 15:22
3
Solved
Is there way to tell IntelliJ IDEA which output folder to use for GWT compiler ? I know it copies artifacts to project folder but it doesn't copy extras which I set using "-extra" command line para...
Prompter asked 9/11, 2011 at 19:54
3
Solved
I'm having a problem with alarmManager and the pending intent with extras that will go along with it.
If I set multiple alarms, they will go off, however the extras stay the same.
I have already...
Lafferty asked 2/12, 2010 at 22:1
0
I got some activity that have defined intent filter like this:
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category...
Connor asked 23/6, 2011 at 9:22
1
Solved
My application listens to the android.intent.action.CREATE_SHORTCUT broadcast, in my code I am creating a shortcut which includes a String extra like this:
Intent shortcutIntent = new Intent(Inten...
2
I am writing an android Junit test for a class that relies on extras passed to it through an Intent. I was able to get the class working properly, but I would still like to know how to write a unit...
Eustashe asked 1/12, 2010 at 0:20
1
© 2022 - 2024 — McMap. All rights reserved.