• Post Reply Bookmark Topic Watch Topic
  • New Topic

How Create a file in assets file ?

 
Farshad Zeinali
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi dears

How I can create a file in assets folder ?
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't. Any asset files needs to be in place when the APK file is generated; you can't add anything there at runtime. What is the underlying problem that you're trying to solve?
 
Farshad Zeinali
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for answer

I want run time create a html file then read and write in this
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure if what you propose to do is a good idea or not (there's too little detail to tell), but there are a couple of storage options for files: http://developer.android.com/guide/topics/data/data-storage.html
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!