Nend module for Titanium Mobile (Android). This module uses Nend Android SDK.
var tinendandroid = require('tv.harukaze.ti.nend.android');
// set spotid
tinend4android.setSpotid(spotid);
// set apikey
tinend4android.setApikey(apikey);
// create admaker view
var adView = tinendandroid.createNendView({bottom:0});
window.add(adView);
- Download this module Project
- Download
Nend Android SDK
from Nend's Web Console - Copy
Nend Android SDK
jar file intodist/modules/tv.harukaze.ti.nend.android/0.1/lib/
- Copy
dist/modules
folder into your Titanium Project ( ROOT/modules )
- Download this module project
- Download
Nend Android SDK
from Nend's Web Console - Make
lib
folder, and PutNend Android SDK
inside your module project - Check
build.properties
file and replace the path of SDKs - From command line, run this inside your module project: % ant run
- Copy this zip file (at
dist
folder) into the folder of your Titanium Project - If you build the titanium project, the zip will be unziped and placed to you module folder
Register your module with your application by editing tiapp.xml
and adding your module.
Example:
<modules>
<module version="0.1" platform="android">tv.harukaze.ti.nend.android</module>
</modules>
When you run your project, the compiler will know automatically compile in your module dependencies and copy appropriate image assets into the application.
MIT License
Copyright 2011 Tomoya Narita http://harukaze.tv/ http://d.hatena.ne.jp/harukazepc/ Twitter: @harukazepc