Questions tagged [extra]

Terminal emulation for mainframes. IBM System z (Mainframe), IBM System i (AS/400), UNIX/Linux/OpenVMS (VT), and HP NonStop/Tandem systems.

138 questions
80
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,334
  • 2
  • 20
  • 41
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':…
Sergey Goliney
  • 5,038
  • 2
  • 29
  • 45
20
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,483
  • 4
  • 32
  • 47
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
  • 5,956
  • 19
  • 87
  • 150
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,524
  • 4
  • 17
  • 28
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
  • 335
  • 1
  • 3
  • 8
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
12
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,025
  • 4
  • 24
  • 60
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
  • 157
  • 2
  • 9
8
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
  • 3,848
  • 3
  • 35
  • 65
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
  • 1,846
  • 3
  • 21
  • 37
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
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,069
  • 23
  • 60
  • 91
1
2 3
9 10