Some piece of code of yours must be responsible for writing to the database. Let that piece of code send a notification broadcast or something like that about the applied changes. So whatever other part of your app which needs to be notified about these updates can listen to these broadcasts and make changes accordingly.
On Friday, January 4, 2013 10:25:12 PM UTC-6, srinivasa reddy 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? > > > http://stackoverflow.com/questions/14155757/howto-provide-notification-to-android-app-whenever-sqlite-table-updates/14156589#14156589 > > Thanks in advance. > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. 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-developers?hl=en

