federico-terzi / federico-terzi.github.io

Personal Website
https://federicoterzi.com
6 stars 5 forks source link

blog/how-to-build-remote-camera-app-android/ #5

Open utterances-bot opened 3 years ago

utterances-bot commented 3 years ago

Building a Remote Camera App for Android - Federico Terzi - Engineering Student and Developer

I love automating things, especially the boring ones. Having a Youtube channel, I found that editing videos can be very time-consuming and so I started thinking about ways to improve my workflow.

https://federicoterzi.com/blog/how-to-build-remote-camera-app-android/

Fausto70 commented 3 years ago

Hi Federico, Thank you for your job. I have a question for you. Is your code working also when the app is in background, for example when the display is switched off? Thank you in Advance Ciao Fausto

federico-terzi commented 3 years ago

Hi @Fausto70, Thanks for the kind words!

I have a question for you. Is your code working also when the app is in background, for example when the display is switched off?

It's unlikely to work as android will suppress the background service after a while. You will need to create a foreground service for that, but it's definitely more complex than what I covered in the article.

Buona serata, Federico

Fausto70 commented 3 years ago

Ciao Federico, thank you for you reply. I managed foreground service in the past, assuming that your app is working in foreground service (then it will be more resilient to Android killing of background apps), do you think that it will be working? For example, if you want to customize the volume HW button of smartphone you can, but it will not work if the app is in background. So I'm wondering if also for the camera there is the same problem.

Ciao Fausto

federico-terzi commented 3 years ago

Ciao Fausto,

Unfortunately, I don't know the Open Camera codebase good enough to answer your question! I honestly think you would be better off creating an app from scratch rather than forking Open Camera :)

Fausto70 commented 3 years ago

OK, thank you Ciao Fausto