Why not have whoever is inserting the data send out a Broadcast on insert?
On Friday, January 4, 2013 10:22:22 PM UTC-6, srinuvasareddy avula wrote: > > I am in process of developing an Android tablet app using sqllite 3.7.4 > which would perform following: > > 1. > > Fetches information from the UI > 2. > > Performs some logic and store related information to the sqlite > database > 3. > > The stored information has to be send immediately OR at schedule > interval (ex. at 5:00 on xyz date) over the network > > Currently, we have developed a dispacher mechanism (thread ), which > constantly polls the database for new information inserted in the database. > The thread fetches the information and send to the network module. > > But, I feel this is not the correct approach as Polling every time is a > overhead. There can be times when there is nothing to execute It is not > real time , because we poll after every 5 seconds > > So > > Is there a way to send a trigger to my network module as soon as > information is updated in database? > > Or any better way to achieve this task? > > Thanks in advance. > > -- > srinivas -- You received this message because you are subscribed to the Google Groups "Android Discuss" group. To view this discussion on the web visit https://groups.google.com/d/msg/android-discuss/-/sw0KjRR7w7cJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/android-discuss?hl=en.
