-1

Idea of app: it is something like Google Photos.

App which listens when user take a photo with his camera app, and send this photo to server.

How can we know when user take a photo? I think that it is something like Listener "onUserTookPhotoListener", isn't it?

Infinity cycle checking gallery on background?

Andrei Konstantinov
  • 6,971
  • 4
  • 41
  • 57
Egor
  • 279
  • 5
  • 21
  • Please Egor read the https://stackoverflow.com/help/how-to-ask guidelines otherwise no one can help you with this kind of question. – P Fuster Jun 19 '19 at 12:40
  • Yes, may be this changing of title is better then mine one – Egor Jun 19 '19 at 12:46

1 Answers1

1

You can use FileObserver. It works for files and directories. You will need to implement service though.

Please take a look at questions and answers that can be helpful:

Andrei Konstantinov
  • 6,971
  • 4
  • 41
  • 57
  • Thank you! But I got some issues: 1) FileObserver works nonstandable. It can miss new photos with chance 50%. Moreover, it works with long delay, above 20 seconds. 2) Broadcast Receiver... It is not working since Android 7. May be we should use C++ language instead of Java? – Egor Jun 21 '19 at 04:24