1

I want to get a notification in Android when my (SQL Server database) updated; there is any way in Android to do this?

C# provide (SQLDependency) service to do this. So, I want same this service in Android->Java.

After the search for solutions, I had seen the below links, but not useful for me.

1- How do I listen for SQL Server database changes

2- Getting data from SqlDependency

3- Get notified when database change Android

Thanks in advance...

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
  • Why are they not useful? What you want isn't simple, but the first link seems a good start. – Steve Smith Sep 12 '18 at 13:57
  • Because does not provide to me any solutions for my case. "What you want isn't simple". In C# is very simple to do it; so I think there is a simple way in java to do it. – Gheyath Nasani Sep 12 '18 at 14:02
  • @user8476418 C# uses the .NET framework, which is owned by Microsoft; SQL Server is also owned by Microsoft, so there is extra effort put into making them work together well. Microsoft has no incentive to do the same thing for Java, so there is probably less support for features like that for Java and SQL Server. – TarHalda Oct 10 '22 at 21:53

1 Answers1

1

There is a talk here

A good example is the media API, where it encapsulates the media database. an example is here

If the database belongs to your application, you can trigger custom event and who wants to be notified can listen it.

kelalaka
  • 5,064
  • 5
  • 27
  • 44