I'm try to make an app that records a view into a video file. But i can't find a way to do this.
How can I record the screen of my app in Android
to a video file(Without adb, computer or another program)?
You can record the View hierarchy of your app to a video file, but normal apps CANNOT record the screen without either root or another program started via adb. For more details see this answer.