Questions tagged [onupdate]

74 questions
11
votes
3 answers

How can I run this script when the tab reloads (chrome extension)?

So i'd like to run a script when the tab reloads in a specified URL. It almost works, but actually id doesn't :) This is my manifest file: { "manifest_version": 2, "name": "Sample Extension", "description": "Sample Chrome Extension", "version":…
10
votes
2 answers

Force Android widget to update

I respond to a button press on my appwidget in the onreceive method. When the button I pressed, I want to force the widget to call the onupdate method. How do I accomplish this? Thanks in advance!
strange quark
  • 5,205
  • 7
  • 41
  • 53
7
votes
1 answer

CodeMirror 6, how to get editor value on input/update/change event?

I want the contents / value of a CodeMirror 6 editor instance to be reflected in an external variable, when the text changes the variable changes / syncs. How to do that in CodeMirror 6? Pseudo Code let sync_val = ""; import {EditorView} from…
01AutoMonkey
  • 2,515
  • 4
  • 29
  • 47
7
votes
3 answers

How test onUpdate method of my widget not waiting 30min

After 3 days learning widgets, I finally understand about setOnClickPendingIntent,RemoteViews... and I've done my widget. It has been done with help of a lot of tutorials. But now I'd like to test if it works. As I read, the minimum update rate is…
Vito Valov
  • 1,765
  • 1
  • 19
  • 37
6
votes
2 answers

How to Force UPDATE of MySQL Record When Nothing Is Changing

My database table has a column defined to use ON UPDATE CURRENT_TIMESTAMP: Field: last_access Type: timestamp Collation: Attributes: on update CURRENT_TIMESTAMP Null: No Default: CURRENT_TIMESTAMP Extra: ON UPDATE CURRENT_TIMESTAMP How can I…
Jim Fell
  • 13,750
  • 36
  • 127
  • 202
5
votes
3 answers

Just update a widget RemoteViews instead of completly creating a new one?

In my onUpdate method in my AppWidgetProvider class, I ended up executing a non-trivial amount of code so that I can completely recreate a new RemoteView object. The reality is I really only need to be setting the text in one of the TextViews in the…
Kurtis Nusbaum
  • 30,445
  • 13
  • 78
  • 102
4
votes
2 answers

widget only works after 2 installs or reboot

My widget application only works if I install the widget add it to the screen and then install it again, if i add another widget i have to install again in order for the second one to start working (rebooting the device also helps, after the reboot…
Coder123
  • 784
  • 2
  • 8
  • 29
4
votes
2 answers

update db while updating apk

In my android application i have created the database which contains some data and it is on the app store.Now i need to change the database according to new requirement. when i update the apk file it wont create the new db again because it is…
4
votes
1 answer

Android Widget Won't Update

I have been working on a widget for Android. One of the things it should do is display the current day of the week and day in the month. I think my code is alright, but for some reason it never updates. The update period in my provider is set to 30…
Zero
  • 1,864
  • 3
  • 21
  • 39
3
votes
2 answers

onUpgrade database Android version number not increasing

I am trying to update my database in my Android application. When I update the version number, onUpgrade gets called, but the version number doesn't increase, so every time I access the database, onUpgrade gets called. Here is my code: private final…
coder
  • 10,460
  • 17
  • 72
  • 125
3
votes
2 answers

Get DataItem when updating GridView

How can I get the underlying DataItem from a GridView row that is in edit mode and the user clicks on "Update"? I have an editable GridView. I've added a CustomValidator to the Edit view of one of the columns. When the user clicks on Update I run…
dtc
  • 10,136
  • 16
  • 78
  • 104
3
votes
3 answers

Update android widget on condition

I'm just starting with android development and have written an application to show details about the battery status. Now I wanted to put the whole thing into an widget - and here's the question: Do I really need a update service in the background to…
DonGru
  • 13,532
  • 8
  • 45
  • 55
3
votes
1 answer

How should I approach updating my widget?

I just created my first ever widget and it all went well until I got to the part where I'm supposed to set when it updates. Here's my code to make my question clear: Android Manifest:
Guy
  • 6,414
  • 19
  • 66
  • 136
2
votes
1 answer

Android widget onUpdate()

So, I have developed an android widget which is supposed to work as a button. I used the basic code given here: http://developer.android.com/guide/topics/appwidgets/index.html When the button is clicked, an activity is launched. This works fine…
JustCurious
  • 1,848
  • 3
  • 30
  • 57
2
votes
0 answers

Why is my widget not loading on Ice Cream Sandwich

So here is my WidgetProvider public class MessagesWidgetProvider extends AppWidgetProvider { public static final String EXTRA_WIDGET_MESSAGE = "widget_message"; public static final String EXTRA_WIDGET_ID = "widget_id"; @Override …
AxiomaticNexus
  • 6,190
  • 3
  • 41
  • 61
1
2 3 4 5