jeudi 5 novembre 2015

File sharing on android device

I am doing an application with android studio. I want the user to be able to put files in my app and the access it when using my app.

Something like itunes with apple devices but for an android device. to be more clear I was using this with apple:

    paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
    documentsDirectory = [paths objectAtIndex:0];
    pathe = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:documentsDirectory error:nil];

I don't know where and how the user put files and how to access it in my code. Is this possible? Is Android File Transfer doing it?

Aucun commentaire:

Enregistrer un commentaire