Terminal emulation for mainframes. IBM System z (Mainframe), IBM System i (AS/400), UNIX/Linux/OpenVMS (VT), and HP NonStop/Tandem systems.
Questions tagged [extra]
143 questions
5
votes
2 answers
Values lost in previous Activity when I hit back button, but not when this.finish() is called
So I have a weird problem. I have 2 Activities I'm working on. One of the Activities displays a ListView whose data is grabbed via a long Extra I use to fetch the results via a WHERE clause in the database.query. The other Activity is called when a…

scarhand
- 4,269
- 23
- 63
- 92
5
votes
1 answer
C# DataGridView Automatically Adding One _Extra_ Row
[Microsoft Visual Studio 2008, Windows 7 Professional 64]
I have a C# class that extends DataGridView:
public class DataGridViewTest : DataGridView
This class programatically sets the number of columns and rows.
I have a Form application that…

Jan Tacci
- 3,131
- 16
- 63
- 83
4
votes
2 answers
Django QuerySet: additional field for counting value's occurence
I have a QuerySet object with 100 items, for each of them I need to know how many times a particular contract_number occurs in the contract_number field.
Example of expected output:
[{'contract_number': 123, 'contract_count': 2},…

Supergator
- 41
- 5
4
votes
1 answer
Django admin pages: Can queryset extra fields be used for sorting specific columns
So, the extra field in a queryset can be used to add additional columns to your select query, which in turn can be set as the default ordering. I have so far been able to achieve this: created an extra field and then set it as default ordering.
qs…

Shuvo
- 43
- 1
- 4
4
votes
1 answer
Android what exactly does mediaplayer error 1, -107 mean
Today I got much this error message from MediaPlayer :
06-03 17:44:02.707: E/MediaPlayer(20140): error (1, -107)
Only I can found is "-1007"'s error code describe, but that's not what I want.
And there is no anything about -107 I can find in API…

RRTW
- 3,160
- 1
- 35
- 54
4
votes
1 answer
qmake: extra compilers (processing steps)?
In my qmake-based project, I want to run 'xxd' on some files before compilation. Following the documentation, the relevant part in my pro file looks as following:
SHADERS = shader/tone.frag \
shader/trans.frag \
…

Ancurio
- 1,698
- 1
- 17
- 32
3
votes
2 answers
How can I prevent extra array elements being created in Javascript?
In PHP, if you do this
$var = array();
$var[5000] = 1;
echo count($var);
It prints 1.
In JS it makes the "missing" elements.
Alerts "11".
Can…

Pete
- 1,289
- 10
- 18
3
votes
1 answer
php creating extra space in html page
I'm new to web development and I'm really stuck with this silly problem. When I insert php code before html code, something like this: ... it creates extra blank space on top of my page and 'pushes' whole…

user1034842
- 89
- 2
3
votes
1 answer
Can't put extras for an intent in notification
I'm creating a notification from a Service that has an intent with an extra integer. For some reason, this isn't as easy as it seems. This is what I'm doing:
Notification notification = new Notification(R.drawable.notification_icon, "Title",…

Brian
- 7,955
- 16
- 66
- 107
3
votes
2 answers
Getting intent and its extras, but not the intent of the activity that started the new activity
When you are about to start a new activity, and want to pass a variable, you usually just do this:
Intent intent = new Intent().setClass(this, NewActivity.class);
intent.putExtra("variable", variable);
startActivity(intent);
And when you are…

gosr
- 4,593
- 9
- 46
- 82
3
votes
1 answer
Null pointer when getting intent extra
Some times when running my app I get a null pointer when retrieving a value bundled with an intent
setting it in one class
private void start(){
Intent i = new Intent(this,Tabs.class);
i.putExtra("helper", checked);
…

tyczj
- 71,600
- 54
- 194
- 296
3
votes
1 answer
Do Intent extras have to be removed?
This might be a stupid question, but is there a rule that states that intent extras have to be explicitly removed by the consuming activity, or is that only true if you're recycling Intent objects?
Put another way, if I always chain to the next…

Bitbang3r
- 6,826
- 5
- 27
- 40
3
votes
2 answers
VBA : vbYesNo displays a button with OK and nothing else
Title speaks for itself.
Here is an illustration
and here is the line of code I'm using.
If MsgBox("Are you sure?", vbYesNo) = Yes Then Exit Sub
I'm also using EXTRA! X-treme

Yassin Hajaj
- 21,337
- 9
- 51
- 89
3
votes
1 answer
Extras seem to be lost onResume()
I have an Intent which gets information from my database through an long Extra. It also sets the title of the Activity through a String Extra.
Now when I first start the Activity, everything shows up perfectly. However I have another Activity which…

scarhand
- 4,269
- 23
- 63
- 92
3
votes
2 answers
Android : How to launch Pending intent from another activity with extras?
I am facing some problem with pending intents. I have set some Pending Intents using Notification Manager. These notification launch an activity when user click on them. I put some extras with Intent used in pending intent. This works OK with…

Vipul Purohit
- 9,807
- 6
- 53
- 76