How to browse android gallery for movie/media files in SDK - android-emulator

Can anybody tell me how to browse for a movie file from the android folders (either phone/SD Card memory). Let's say I got a movie file on the phone memory and I want to access it from my application, what is the best way to do it?
Please help me.

I think you need to use
Intent intent = new Intent(MediaStore.INTENT_ACTION_MEDIA_SEARCH);
I'm not sure but I hope this put you in the right track
here the link for this class
http://developer.android.com/reference/android/provider/MediaStore.html#INTENT_ACTION_MEDIA_SEARCH

Related

How to store files in directory that will be accessible to user in flutter?

I have encountered a problem that the app needs to save pdf files downloaded from the internet in the downloads folder in both ios and android, but after searching for solutions on the internet I have not found anything that would help in this implementation. I would appreciate if someone could share their experience in implementing such functionality.
It would be better if you can add more details to your questions. It is preferred that you should attach some code or screenshots of your code so that you can get better help.
every app in android or ios has its own folder in the device storage, android apps will be in the android directory.
you can use the path_provider plugin to get the directory of your app, all the information you need will be in this link

File Picker plugin

Looking to see if anyone knows of a File Picker plugin similar to the image_picker, but for files, so that they can be uploaded from a mobile device.
Looking for a plugin or any example if anyone has done it already.
Thanks for any help.
I started hacking this together. I got it basically working for android. Here is the repository.
It actually copies the selected file to the app's temp directory and then provides the path, since there's no way I can see to get the file data from the OS to flutter.

write file with ionic, plug in Phone, copy away?

I've just seen that there exists a cordova extionsion to write files in ionic.
But. What am i supposed to do with it? I mean a Usecase would be "create File, Plug-in Mobile, Copy to to Computer" but this I guess isn't supported by iOS at all.
So my questions are:
What is $cordovaFile meant for in ionic?
Is it possible to to realize the above Usecase in android even though it's clearly not in iOS?
Quote from the github page:
This plugin implements a File API allowing read/write access to files residing on the device.
Maybe you would want to download an image and save it to the sd card for example (you would need filetransfer plugin to download the image). More info about the plugin you can find here.

Ringtones download

I'm new to iphone. I have question please answer to it..
I have some ringtones i want to place in a my xcode and people who want it they able to download from my application.
How it is possible.
Thanks in Advance.
According to my understand you have some audio files included in your xcode bundle(project) and now you want to provide option to the users as a downloading for price or free. If my understanding or guess is exactly correct, you defiantly follow below link In-app-purchase. All the best

How to add a file (text or image) to iphone app through itunes?

Is there any way to add a file (image or text) to already install app in the iphone through itunes (or any other way)?
I'm working on an app, in which I want to add a feature for adding external file (like text or image file).
Please help me, how can I achieve this?
Or it is not possible in current SDK?
Note : I don't want to do this through downloading from internet.
Thanks
Maybe I am misunderstanding but if the app is already on the App Store you could just rebuild it with the file and update the binary.
Otherwise it is possible to register a custom URL scheme and pass data through a URL (encode in base 64 for more bang for your buck). There is a game called Moonlight Mahjong that does this to download new mahjong layouts that are then saved onto the device.