Sunday, December 11, 2011

Re: [android-developers] duplicate and rename package

On 12/08/2011 10:57 AM, Mukesh Srivastav wrote:
> Pretty simple, if you use Eclipse as Development Enviorment.
>
> You just have to select the project root in the Eclipse and Rename
> it,Eclipse will automatically update the reference of the package.

eclipse is not going to fix your package in layout files and/or class
attribute when you use fragment in your layout files


I gave a way to do it which is independant of the development environment.

actually a single command could have been enough:

sed -i 's#old.package.name#new.package.name#g' `grep -Rl
'old.package.name' *`


but if you have a very simple package or colliding packages that may
have had issues.

Hopefully we are developer and are not scared of the command line and/or
writing some regex.

Regards

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate