Sign in to follow this  
WiredCat

KitKat 4.4 writing to external SD etc.

Recommended Posts

I dont use any fancy android local storage things, i need a clear way to write, read into internal/external memory as user chooses on which he wants to install it. Problem is kiktak (android 4.4) doesnt allow third party apps to write to external sd cards (and maybe to internal too) so what opportunities do i have?

Share this post


Link to post
Share on other sites
Onne woman has problems with phone i saw that ahe has android 4.4 builtin file explorer doesnt open any file but deletes them if you want but no other functionality i tried some other file explorers from playy store but you cant delete files or write anything

Share this post


Link to post
Share on other sites

android 4.4 builtin file explorer doesnt open any file but deletes them if you want but no other functionality

This seems reasonable to me. What other functionality would you expect? Running the appropriate activity? Sure, it would be expected on desktop Open with NPP or something.

Android can even infer the mimetype I guess... but I don't think it fits with the usage model.

Nonetheless, the files are there. Or not?

 

i tried some other file explorers from playy store but you cant delete files or write anything

That's odd. I don't expect the file explorer to give you a way to save a .txt file or something. It's just not in the mindset.

 

Watch out, maybe you have forgot to add application path to the dir you have been provided. It's a bit stupid. Maybe it's the same for external.

Share this post


Link to post
Share on other sites

Onne woman has problems with phone i saw that ahe has android 4.4 builtin file explor

 

That didn't answer the question, what have YOU tried?

 

Have you actually attempted to open a file after verifying you have WRITE_EXTERNAL_STORAGE permissions?   Did it not work? 

 

If you have the permission you should be able to open the files on external storage, read them, and write them. 

Share this post


Link to post
Share on other sites

I dont use any fancy android local storage things, i need a clear way to write, read into internal/external memory as user chooses on which he wants to install it. Problem is kiktak (android 4.4) doesnt allow third party apps to write to external sd cards (and maybe to internal too) so what opportunities do i have?

 

Are you talking about your app reading/writing files in external storage?

Or are you talking about your users wanting to move your app to external storage in order to save space?

 

I think people think you're talking about the first one, in which case WRITE_EXTERNAL_STORAGE should do it as they have said.

 

But I think maybe you're asking for the latter. If so, then it's a simple change to the manifest.

<manifest xmlns:android="blah" 
		  package="blah" 
		  android:versionCode="1" 
		  android:versionName="1.0.0"
		  android:installLocation="auto"
		  >

Adding the android:installLocation="auto" allows users to move your app install to their SD card.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this