We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,301 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Files Handling in Android

I am developing an Application in which i have to move files from-to two directories.
i know how to read/write in a file but i m not getting the proper way of moving-deleting-copying files from one directory to another.

here is file delete code.

File sdRoot = new File( "/sdcard/" );
sdRoot.delete();


i hope people understand my question and i could get help in this regard.

2
Contributors
1
Reply
1 Hour
Discussion Span
1 Year Ago
Last Updated
2
Views
Ghouri
Newbie Poster
2 posts since Oct 2008
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

Are there any errors from delete action (I presume you have try/catch clause and catch is actually doing something)?
Did you closed any open streams?

peter_budo
Code tags enforcer
Moderator
15,791 posts since Dec 2004
Reputation Points: 2,867
Solved Threads: 944
Skill Endorsements: 50

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.1319 seconds using 2.74MB