How to record video from background of application : Android

前端 未结 3 1447
北恋
北恋 2020-11-28 18:08

I am developing an application which will be able to record video from background of application by using Service.

Problem description :

3条回答
  •  渐次进展
    2020-11-28 18:43

    Yes, you can record the background video like this:

    First, create a video app using service. Do not set its view so that it will not be visible. If you are doing it in service then that is better because...

    Second, you can use the AlarmManager for setting the alarm of particular time and then at that time, by using intent, start your service again. For stopping your app you can use AlarmManager, as well.

提交回复
热议问题