[android-developers] Tip when using ObjectAid UML diagrams in Eclipse Android projects
Here is a tip:
If you use ObjectAid UML diagrams in your Eclipse Android project, the
Android packaging tools will add all the ObjectAid files
(.ucls, .useq, .PNG) into your final APK binary file, which is a zip
file.
This is not wanted because it increases the APK size unnecessarily. So
a workaround is to add these files to the Eclipse exclusion list for
the main "src" folder. Do it like this:
1) Open / Edit your ".classpath" file, in the project root folder.
2) Change line 2 under the <classpath> line, to this:
<classpathentry excluding="**/.DS_Store|**/.svn/*|**/*.ucls|**/*.useq|
**/*.PNG|**/*.png" kind="src" path="src"/>
3) Refresh the project in Eclipse.
Now you can still keep the ObjectAid files in the project, but they
won't be added into the APK file. Otherwise you have to delete them
and refresh the project, when making a release build.
You can see these settings in:
Eclipse -> Package Explorer -> Select Project -> Right-click ->
Properties -> Java Build Path -> Source -> Your_Project/src ->
Excluded -> Edit
Note: The entries **/.DS_Store|**/.svn/* are needed if you are using
Mac OS X and SubVersion. The Android packaging tools produce warnings
if they see these files in the src folder. You can open the APK in a
zip viewer like 7-zip, Zipeg. Just append ".zip" to the filename.
--
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