[android-developers] Re: save new file into asset directory from app

2009-09-18 Thread Mark Murphy
rooster 808 wrote: Is it possible for the App to create a new file/asset and write this into the /assets directory. No. The assets/ are stored inside the signed-and-sealed APK and cannot be modified at runtime. The reason being, that's the only way I can tell webkit will load a local

[android-developers] Re: save new file into asset directory from app

2009-09-18 Thread AJ
Hi Mark, I have tried this earlier and I was able to load HTML files with Images/CSS/javascript specified over there properly. But this does not work properly when we try to load any HTML file which has CSS is specified with the import keyword. Any how the html file gets loaded, but the CSS is

[android-developers] Re: save new file into asset directory from app

2009-09-18 Thread AJ
To explain the in short, If we try to load local HTML file [through ContentProvider] in which the css is specified with import keyword, the css deoes not get properly applied. Thanks, AJ On Sep 18, 3:50 pm, AJ ajeet.invinci...@gmail.com wrote: Hi Mark, I have tried this earlier and I was

[android-developers] Re: save new file into asset directory from app

2009-09-18 Thread Mark Murphy
AJ wrote: If we try to load local HTML file [through ContentProvider] in which the css is specified with import keyword, the css deoes not get properly applied. I am very much *not* a CSS expert. With that in mind: -- have you tried fully-qualifying the URL you use with @import? -- is there

[android-developers] Re: save new file into asset directory from app

2009-09-18 Thread AJ
Hi Mark, I have given the fully-qualified url of CSS. But don't know why this is happening. I will make small app and will try to open an issue on this if could not get answer on this forum. Ideas from the experts are very much welcome. Thanks, AJ On Sep 18, 4:13 pm, Mark Murphy

[android-developers] Re: save new file into asset directory from app

2009-09-18 Thread tomei.ninge...@gmail.com
I know one way that works for sure. Open a server socket inside your app, then specify http://localhost:1234 inside WebView. This seems like a hack (and maybe it is :-) but it's much simpler than fighting with WebView. On Sep 18, 10:41 am, Jason Proctor jason.android.li...@gmail.com wrote: i

[android-developers] Re: save new file into asset directory from app

2009-09-17 Thread AJ
Are you trying to load HTML file and its corresponding resources locally? Thanks, AJ On Sep 18, 9:05 am, rooster 808 rich.al...@gmail.com wrote: Is it possible for the App to create a new file/asset and write this into the /assets directory. The reason being, that's the only way I can