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
86
votes
4 answers
Advantages of using Bundle instead of direct Intent putExtra() in Android
In my android application I'm always using direct putExtra() function of Intent class to pass any number of value to new Activity.
Like this:
Intent i = new Intent(this, MyActivity.class);
i.putExtra(ID_EXTRA1, "1");
i.putExtra(ID_EXTRA2,…

Vishal Vijay
- 2,518
- 2
- 23
- 45
27
votes
2 answers
Specifying widget for model form extra field (Django)
I have to add extra field to my model form. My approach is:
class MyForm(forms.ModelForm):
extra_field = forms.CharField()
class Meta:
model = MyModel
widgets = {
#Does not work
'extra_field':…

Serhii Holinei
- 5,758
- 2
- 32
- 46
21
votes
1 answer
Gradle extra properties not visible in a custom task defined in a subproject
I'm trying to reuse common logic among multiple Gradle tasks, similar to what was suggested in this answer, but I'm having trouble with extra project properties not being visible.
Boiled down, here's the problem. Say I have a root Gradle build…

Alan Krueger
- 4,701
- 4
- 35
- 48
14
votes
5 answers
Displaying the To address prefilled in Email Intent?
I am not able to pre fill the TO field in Email client to the "to" address mentioned in the extras here:
EmailImage.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
…

Smitha
- 6,110
- 24
- 90
- 161
14
votes
2 answers
Can I send class as extra with intent?
I'm trying to pass class name with extra, how to do that ?
Intent p = new Intent(StartScreen.this, Setting.class);
p.putExtra(" ",StartScreen.this);
I want to get the class name in Setting class but I don't want it to be String cause I'm going to…

Jesus Dimrix
- 4,378
- 4
- 28
- 62
12
votes
4 answers
5px extra margin getting added to the bottom of each div
I am trying to design a simple header to a page in css. I planned to stack two divs on top of each other. The top one has many tabs and the bottom one is a plain solid single image div. But when rendering i see that an extra 5px is getting added to…

Pradep
- 1,874
- 5
- 21
- 31
12
votes
2 answers
Android - Starting a service with extra information through put/getExtra
I've really tried to get through the intent.putExtra() and getIntent().getExtras() and apply them to one of the SimpleService tutorials. I know a lot of people have already asked "why is bundle extras always null?" I promise I tried to hack…

Adam
- 355
- 1
- 3
- 14
12
votes
3 answers
Django annotation on field added with extra
I'm trying to find a way to take an annotation over two fields on a model added together. Something like:
total_done = qs.values(
'ability__ability_name',
).extra(
select={
'total_amount': 'effective_value + overage',
…

John
- 121
- 1
- 3
10
votes
0 answers
Remove Android SearchView padding when expanded
I'm trying to implement SearchView in my Android application but there is an extra padding when expanding it.
The SearchView is integrated in the Menu and when the app launches, I have a search icon inside the Toolbar. When I click that search…

Ionut Marisca
- 257
- 4
- 10
9
votes
3 answers
Using extra() on ValuesQuerySet in Django
I'm trying to calculate a percentage with two values which are themselves aggregated. The SQL query that explains what I'm after is as follows:
SELECT (SUM(field_a) / SUM(field_b) * 100) AS percent
FROM myapp_mymodel
GROUP BY id
ORDER BY id
I…

jnns
- 5,148
- 4
- 47
- 74
8
votes
3 answers
Uncaught TypeError: Cannot read property 'model' of undefined in builder.js
Please help me regarding this error
Uncaught TypeError: Cannot read property 'model' of undefined" in Builder.js.
I'm using Extra theme from Elegant and I just updated my Wordpress to Version 4.5. When I tried to delete some sections in Divi…

Lodel
- 81
- 1
- 1
- 4
8
votes
2 answers
Team member added hundreds of megs to git
Possible Duplicate:
How can I remove a commit on github?
So a team member on our project has committed and pushed 700+ megs of nonsense to our git project repository... She thought she was adding only 2 images but instead somehow ended up copying…

Parad0x13
- 2,007
- 3
- 23
- 38
7
votes
4 answers
XML Parsing error : Extra content at the end of the document
Firstly , good day to everyone.
I have this script which handles the login to my database :
http://pastebin.com/ctUEczRf
I used pastebin because it was too long to use code tags.
When I run it It returns me this :
This page contains the following…

user1640328
- 67
- 1
- 1
- 2
5
votes
2 answers
Android receive share text file but not share text content
I am making an app that is able to upload single or multiple files or folders. The intent-filter is defined like this:
…

albnok
- 521
- 2
- 14
5
votes
1 answer
Warning: Observed package id 'extras;intel;Hardware_Accelerated_Execution_Manager' in inconsistent location
my emulator stopped working and it just displayed black screen and when i tried with an external device app keeps crashing and it stops and close
and then there was a haxm installer update i tried it and this warning showed up an still it is not…

bunty785
- 199
- 1
- 9