Questions tagged [notify]

A notification system is a combination of software and hardware that provides a means of delivering a message to a set of recipients.

754 questions
0
votes
3 answers

asp.net calling javascript from Code Behind

I am using NOTIFY on a html input to notify my user whether the record has been saved or not. and It works just fine. But when I try to use it from my code behind file, it isn't. I understand that javascript is a client side technology and have…
Shezi
  • 1,352
  • 4
  • 27
  • 51
0
votes
1 answer

Android sqlite read and write

I am filling a table on tabhost after login. I have set up a thread to fill in the table. Meanwhile I click on the tab where I have set up another thread to read the data from the same table and fill the adapter for the list view. My problem is that…
Aditya Arora
  • 45
  • 1
  • 8
0
votes
2 answers

wait and notify are not static

wait() and notify() are not static, so the compiler should give error that wait must be called from static context. public class Rolls { public static void main(String args[]) { synchronized(args) { try { wait(); }…
amrita
  • 133
  • 2
  • 13
0
votes
3 answers

How do I implement thread wait notify in this case?

I have 2 classes. One method of the class calls the other class' method, but it has to wait until the method finishes to proceed to the execution of the rest of the code. This is a rough code of what I'm trying to make. And I know this doesn't…
William Wino
  • 3,599
  • 7
  • 38
  • 61
0
votes
2 answers

Android: adapter.notifydatasetchanged()

i want to create a dynamic GridView, and when i click to my options meny, i refresh my asyncTask, then i get all result's from postExecute, and notify my adapter to refresh! But i doesn't work HELP me please! GridView grid; ImageAdapter…
03uk
  • 69
  • 1
  • 9
0
votes
4 answers

Notifying two threads at the same time

How can I notify Thread t1 and Thread t2 at the same time (so it is the same probability to get hey 1 as hey2 first)? I've tried notifyAll, but couldn't make it work. class Thr extends Thread { Thr () throws InterruptedException { …
good_evening
  • 21,085
  • 65
  • 193
  • 298
0
votes
1 answer

How to notify user that an HTML5 offline web app needs updating?

I am creating an HTML5 offline web app for use on iOS and Android. Is there a mechanism for notifying the user that an update is available - e.g., a red dot on the application's shortcut icon? If there isn't, would I be able to achieve this maybe…
ban-geoengineering
  • 18,324
  • 27
  • 171
  • 253
0
votes
1 answer

Notify minimised window of an event occurrence in an applet

I have a JApplet which is used for chat. I would like to make it possible that when the applet is minimised and a chat message is received by the user, the minimised window becomes orange (and thus shows the user that something has occurred). How is…
Timothy Mifsud
0
votes
2 answers

How to avoid race conditions on alternating synchronous threads?

I'm trying to remember my old CS days. Been trying to properly implement, with the lowest possible primitives, a pair of synchronized threads. Of course I should use better concurrency tools on production code (stuff from java.util.concurrency,…
0
votes
1 answer

Calling run() method of TimerTask

For the problem I am solving, I have to run a series of calls at periodic intervals. To achieve this, I have implemented TimerTask. However, I also want to notify the timertask sometimes and need to call the same methods when certain conditions are…
vk239
  • 1,014
  • 1
  • 12
  • 30
0
votes
3 answers

Java wait specific interval notify not working

Code snippet: class Counter implements Runnable { Object s = new Object(); @Override public void run() { try { synchronized (s) { s.wait(10000); } } catch (InterruptedException e)…
Rakesh
  • 133
  • 1
  • 10
0
votes
1 answer

java - wait and notify in a non-synchronized block

Sorry for my bad formatting. I am using a notepad to write my programs. This is a working code. The only question I have is, I have read that notify and wait must be used in a Synchornized block. However, in the following example, wait and notify…
user547453
  • 1,035
  • 6
  • 22
  • 38
0
votes
0 answers

How to update a listview from a spinner without blocking the whole application

I'm coding a food-ordering app that relies on an expandable listview. When the user selects a quantity from a spinner inside the childview, a button in the groupview should update (from grey to green) to signify the user has picked a quantity in the…
Laurent
  • 1,554
  • 19
  • 42
0
votes
2 answers

Java thread wait() notify() in one method

public class Signal2NoiseRatio { public ImagePlus SingleSNR(ImagePlus imagePlus) throws InterruptedException { new Thread() { @Override public void run() { for (int i = 0; i <= 1; i++) …
hagem
  • 189
  • 3
  • 16
0
votes
1 answer

Notify client application on new records inserted in database

I would like to develop a C# windows client application that notifies users whenever a new database record is inserted. The server is a remote linux machine with mysql as database engine and it has PHP frontend. As I am new to the C# world I would…
user1584704
  • 27
  • 1
  • 4