• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Android device file

In smartphone, pixel 3a XL with Android 8.0, I discover /dev/video* does not exist. Why doesn’t it exist? Is there another device file that is able to interact with camera hardware?
 
I would use physical device, trying to use the emulator(camera)does not make any sense imo,
What's the emulator going to view/recored, how do you check it's using the right camera?
 
So it's an app development problem? Could be because an emulator doesn't actually have any "camera hardware"? Just a guess, but I don't know so much about that, I'm not a dev.
I would use physical device, trying to use the emulator(camera)does not make any sense imo,
What's the emulator going to view/recored, how do you check it's using the right camera?

So, when i run some application that uses camera (without regarding to what kind of camera uses..Front camera or Back Camera), it works. In Android Studio, i can use the PC camera and even in this case when i run the application using the PC camera it works . The strange thing is that i does not find out /dev/video* file. So at this point, what is the method to interact at low level with camera? I know that Android is a distribution of Linux. In linux, to interact to hardware, i need to use a special file (character file or block file)...
 
In this case, the application shouldn’t be able to record video( video file). In my case, the application records video. In addition i can play the video recorded by my application…
I will have a go myself tonight but my app will play small video files but I can't get it to play a 30min 2.1gb video file(mp3, 1080p)

Also found some image/video types don't seem to play, guess there away around it.

I will try this tutorial tonight as a starting point and see how I get on.

https://www.geeksforgeeks.org/android-how-to-open-camera-through-intent-and-display-captured-image/
 
I will have a go myself tonight but my app will play small video files but I can't get it to play a 30min 2.1gb video file(mp3, 1080p)

Also found some image/video types don't seem to play, guess there away around it.

I will try this tutorial tonight as a starting point and see how I get on.

https://www.geeksforgeeks.org/android-how-to-open-camera-through-intent-and-display-captured-image/

You can use directly the application of Android system to record video. My attention is not focused to develop application but to discover what kind of process are involved and in particular trying to discover why there isn't /dev/video* file and why video4linux is not installed in Pixel 3a. In addition knowing, video4linux is not installed how is possible that the Pixel 3a is able to record video? I think an other driver is used... What is the driver installed? And in case, what is device file used?
 
Back
Top Bottom