This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (OS_ANDROID) { | |
var activity = Ti.Android.currentActivity; | |
var data = activity.getIntent().getData(); | |
if (data) { | |
// You can parse your params here | |
var params = urlToObject(data); | |
Ti.API.info('Do you own thing...'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.SwapView = function(controllerToShow) { | |
// Remove the controllers.view from centerWindow | |
if (OS_ANDROID) { | |
Alloy.Globals.navbar.remove(Alloy.Globals.centerView.getView()); | |
// Destroy the old controller | |
Alloy.Globals.centerView.destroy(); | |
Alloy.Globals.centerView = null; | |
Ti.API.debug('SwapView.centerView: ' + Alloy.Globals.centerView); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<android xmlns:android="http://schemas.android.com/apk/res/android"> | |
<tool-api-level>16</tool-api-level> | |
<manifest android:installLocation="preferExternal" | |
android:versionCode="3" android:versionName="1.0.2"> | |
<uses-sdk android:minSdkVersion="7" android:targetSdkVersion="16"/> | |
<application android:theme="@android:style/Theme.Holo"> | |
<activity | |
android:configChanges="keyboardHidden|orientation" | |
android:name="org.appcelerator.titanium.TiActivity" | |
android:screenOrientation="portrait" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var win = Ti.UI.currentWindow; | |
// Images to display (this list can be dynamically generated) | |
var images = [ 'image1.png', 'image2.png', 'image3.png', 'image4.png', | |
'image5.png',' image6.png', 'image7.png', 'image8.png' ]; | |
// Empty table data (will be populated at runtime) | |
var data = []; | |
var table = Ti.UI.createTableView(); |