This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Copy/Move files

 
Will Richardson
Greenhorn
Posts: 16
Chrome Ruby Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok.. Another mobile Java question.

I want to know how to copy a file from one place to another on my phone with my java app (It will be used to randomly change the background..)

I have a snippet of code which creates a file on my "E:" drive



If this met an inputstream of some kind.. I think it would function..
 
Gopinath Karyadath
Ranch Hand
Posts: 87
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Will Richardson
Greenhorn
Posts: 16
Chrome Ruby Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am afraid to say that your code does not function; It creates an unreadable file at the destination.

I am willing to say my code is incorrect, so it is included here: (there are 104 image files in the folder "Wallpapers")



 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic