Home > Software engineering >  Where should I put mp4 file during development?
Where should I put mp4 file during development?

Time:08-14

I'm not good at English, so I'm sorry if there are any mistakes in the expression.

I want to Object detection application on Android.

Here is how the app works:

  1. Take some videos for which you want to perform object detection
  2. Select a video from the taken videos
  3. Detect specify object and get that coodinates

To develop avobe app,I have some videos for vertification.

Here is my question. Which folder should I put the vertification videos?

For now, I put the videos in raw folder.

But,I am creating an app assuming that the videos were taken with a camera. If so, should it be in the same place as if it were taken by the camera? and, which folder should the videos be placed in?

I'm new to android development. Could anyone give me some advice? Thank you.

CodePudding user response:

As you are new to Android development I am going to explain in detail.

First you have the videos for verification. You should put those videos in raw folder. But what if the size of those videos is too large? That means the size of your APK will also increase which is not a good thing if you want to upload your app on google play store. In this case, you can store those videos on your own server, and when user installs your app download those videos from the server.

Now let's come to the second question: Where should I put the videos taken with the camera?

You can put these videos in any of the following paths.

context.getFilesDir();

or

context.getExternalFilesDir(null);

These paths are on which you can store the camera-shooted videos and do any processing on them. If you want to know the difference between these two paths that's another topic. You can learn about them here.

  • Related