For QE:
-
Create a new application.
-
In the app's tiapp.xml, add this to the
<modules>
section:
<module platform="android" version="0.1">ti.franzi</module>
-
Copy the attached zip file (it's a test module) into the
project's root folder.
-
Make this the project's app.js:
Titanium.UI.setBackgroundColor('#000');
var win = Titanium.UI.createWindow({
title:'Test',
backgroundColor:'#000',
exitOnClose: true,
fullscreen: false
});
win.add(Ti.UI.createImageView({
image: Ti.App.Android.R.drawable.fj,
width:200, height:267
}));
win.open();
-
Run the app in Android. (No need to test iOS, because there are
no uses of the platform/ folder in iOS projects and modules.)
-
When the app opens, you should see a photograph on the
screen.
Explanation
The zip file you installed is an Android Titanium module. When
it gets expanded into the modules/
folder in your
project (which occurs automatically when the project is built),
you'll see it has a
platform/android/res/drawable/fj.png
file in it. That
png file is the photo you see when you run the app.
So the photo file is not one of your project's
Resources/
files, but rather comes from the external,
installed ("third-party", if you want) module. If the photo
successfully displays, it proves that the module's
platform/
folder and its sub-contents were
successfully merged into build/android
when your app
was built, which is the purpose of this ticket.