How to create link to www inside assets folder in android?

The best way I've found to work with this is to use a symbolic link to the folder in your projects. This lets you keep one set of files, and you can link them to wherever you want in your project while still working on the same source.

Up vote 1 down vote favorite share g+ share fb share tw.

I developing a phone gap based app for iPhone and Android. I have my web app files(UI screens developed using CSS, HTML5, JS) in www folder. I want to have a common www for both iPhone and Android so I placed the folder www outside iPhone and Android projects in my file system and configured the Xcode to have a link to that.

For iPhone it is working perfectly. IN the case of Android I need to have this folder under assets. If the www folder is copied inside assets it is working fine.

But if I try to give a link inside assets to www my project is working. It throws error "File not found /www/index. Html".

Can someone help me to solve this situation. So that I maintain www in one place and both my iPhone and Android refers to the same folder. Thanks.

Android iphone html ios eclipse link|improve this question asked Jan 5 at 1:22Defendore127110 50% accept rate.

The best way I've found to work with this is to use a symbolic link to the folder in your projects. This lets you keep one set of files, and you can link them to wherever you want in your project while still working on the same source. For Unix type systems use: ln -s source link_name Since you're working with an iPhone project as well I'm assuming you're on a Mac, but here's the Windows Vista/7 version: mklink /D link_name source.

Thanks profit..it is working for me in mac... But still I have one more query...When I create links like this it does not work in windows xp..Because I will be using windows xp also for android development. Is there any other alternate options other than creating links avlbl so that it works seamlessly in both mac and windows? For example editing any configuration within android project to enable links common to windows and mac?

– Defendore Jan 5 at 3:38 If you have a networked or shared drive, you might be able to put the files there, and then map the drive in Windows and then do the same thing with mklink. You could then update the symbolic link on your Mac. – jprofitt Jan 5 at 13:09.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions