Including Android Activities (and their layouts) in JAR files.

Posted by fiXedd on Stack Overflow See other posts from Stack Overflow or by fiXedd
Published on 2010-04-05T04:55:35Z Indexed on 2010/04/05 5:03 UTC
Read the original article Hit count: 806

Filed under:
|
|
|
|

I'm trying to write a library that can be shared as a JAR file. This library will include an Activity and I'd like to include the layout in the JAR. Since it doesn't seem possible to include resource files in a JAR and I don't want the end-users to have to include these files themselves I was thinking it would be a nice hack to include the XML as a String then manually inflate it. Does anyone know if this is possible? Any other ideas?

© Stack Overflow or respective owner

Related posts about android

Related posts about activity