Questions tagged [onupdate]
74 questions
0
votes
1 answer
Why Castle Active Record's `FindAllByProperty` calls `OnUpdate`?
When I call FindAllByProperty it calls OnUpdate in castle Active Record, This causes an stack overflow because I do some duplicating check on OnUpdate an instance. Consider following code. Why it calls OnUpdate? How can stop it?
protected override…

Afshar Mohebi
- 10,479
- 17
- 82
- 126
0
votes
1 answer
Progressbar for two or more operations
I have this code in doInBackground method of an AsyncTask:
for (int i = 0; i < lenght; i++) {
// Do something
count++;
publishProgress(count * 100 / lenght);
}
and all works fine. If i add another operation, how to…

smartmouse
- 13,912
- 34
- 100
- 166
0
votes
2 answers
Will MySQL InnoDB ON UPDATE CASCADE constraints update properly during a MySQL REPLACE command?
If I have table B with foreign key references to table A (set to ON UPDATE CASCADE) and I run a
LOAD DATA INFILE file.txt REPLACE INTO TABLE A;
command, will the references update properly?
Please note that I'm not talking about ON DELETE CASCADE;…

Grekker
- 944
- 1
- 9
- 17
0
votes
1 answer
How to find if web page got appended using chrome extension
I am new to chrome extension and I am trying to find whether page content got appended.
For E.g. in Facebook, we can see the content will appended automatically when the user scroll down the page.
I have the following code in…

Dinesh
- 16,014
- 23
- 80
- 122
0
votes
1 answer
Remove table entry if BOTH foreign keys were deleted
I have a table with 2 foreign keys that reference the same field within another table. I know how to define the foreign key constraint to remove my table entry if at least one of the two foreign keys become deleted. But instead I want to keep the…

PAX
- 1,056
- 15
- 33
0
votes
0 answers
Toggle bluetooth with button in widget?
How can I be able to toggle on bluetooth with button in the widget.
public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds)
{
}

orglce
- 513
- 2
- 7
- 19
0
votes
1 answer
Where can 'on update' be used?
I need help with on update in MySQL.
Currently I need to set up a created and updated row in a table documents that has keywords related by a Foreign Key.
So I create a trigger for the keywords to update the updated time of the related document and…

JorgeeFG
- 5,651
- 12
- 59
- 92
0
votes
0 answers
GridView dynamic Controls are emptied upon clicking edit/update/delete buttons. Asp.net
I have a gridview that is being dynamically populated using a custom template, but the command fields are static. Upon clicking the command fields, the controls are understandably lost. This problem doesn't affect me during edit, because once the…

Aaron Debattista
- 35
- 7
0
votes
1 answer
Scriptaculous Sortable onUpdate not firing
I'm having some troubles in using Sortable class from scriptaculous lib: it seems that onUpdate callback is never called if I use the only attribute. Here is a working example which does not use 'only' attribute:
-
morbac
- 301
- 4
- 16
0
votes
1 answer
My widget doesn't seem to want to execute HttpGet from a HttpResponse
Here is my onUpdate code.
ComponentName thisWidget = new ComponentName(context,
MyWidgetProvider.class);
int[] allWidgetIds = appWidgetManager.getAppWidgetIds(thisWidget);
final int N = appWidgetIds.length;
for (…

user2519193
- 211
- 2
- 14
0
votes
1 answer
do not call updateAppWidget at widget screen adding (at first time)
When my application starts, I call activity with listview and first item to it. my widget adds new one item to the listView in the onUpdate():
public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) {
…

Rikki Tikki Tavi
- 3,089
- 5
- 43
- 81
0
votes
1 answer
Android - Widget, with config activity, updates with one step of delay
I have an app widget with a configuration activity. When I click "done" in the config activity the widget come out. If that's the first time I use the widget, it will be blank, in that's not the first time, it update with the data from my previous…

David Corsalini
- 7,958
- 8
- 41
- 66
0
votes
1 answer
Sending an Intent onUpdate when only the time elapsed
I'm still in my first steps of learning to program for Android in Java.
So I my question might be obvious to some more experienced programmers, but I couldn't really find anything usefull or a specifick example.
Anyway, I have a widget. And I want…

Bigalow
- 325
- 2
- 14
0
votes
2 answers
How to update widget from another application?
I have made an application and a widget. I have to update my widget from the application i.e. send some data to the widget. I used the sendBroadcast(Intent intent) method from the application. It is well received in the onReceive(Context context,…

Feona
- 295
- 2
- 6
- 18