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
// ListView with Multiple template and events | |
//Hi, I have created four custom template and event. | |
//And add data in a section whose property is coming from custom template. | |
//And event fire in each template. | |
var win = Ti.UI.createWindow({ | |
title:'Multiple Templates', | |
backgroundColor:'#000' |
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
// Hi, Here create a tabGroup and add a action bar menu named Action Menu. | |
var tabGroup = Titanium.UI.createTabGroup(); | |
var win1 = Ti.UI.createWindow({ | |
backgroundColor : '#000' | |
}); | |
var win2 = Ti.UI.createWindow({ | |
backgroundColor : '#000' |
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
/*1. I Create a simple apps | |
2. Here a simple database table with 3 fields [id, title and descriptions] | |
3. In root window will display data from database | |
4. Here Added edit and delete options in each row, user’s can edit/delete data from database table | |
5. Add database synchronizer to remote web server (such as ACS) We can create user and insert | |
data, update data, delete data to the Wev server as well as local database. | |
6. When user’s close this apps, local database will synchronize with remote database */ | |
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
/* Hi here create a custom object named title which save to the remote acs and show | |
this in a tableView list form the remote acs. | |
*/ | |
Cloud.Users.login({ | |
login : '[email protected]', | |
password : '1234' | |
}, function(e) { |
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
/* Here create a notification if you click the Add Notification button notification will start and if you | |
close the app and click the notification the app will start again. | |
*/ | |
var win = Titanium.UI.createWindow({ | |
backgroundColor : '#000' | |
}); | |
// Create a Label. | |
var Test = Ti.UI.createLabel({ |
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
/* Hi after login the facebook, just click the upload photo button and photo will be | |
uploaded in facebook | |
*/ | |
var fb = require('facebook'); | |
fb.appid = APP_ID; | |
fb.permissions = ['publish_stream']; | |
fb.authorize(); |
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
/* Here create a file you can perform here read,insert,update,delete that means CURD operation */ | |
var file = require('ui/common/FileView'); | |
var fileView = new file(); | |
fileView.open(); |
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
/* Here if you enable your location service of your set and internet connection it takes the locatio from GPS and save in a | |
file and it will be shown on a tableView row*/ | |
var location = require('ui/common/UserLocation'); | |
var userLocation = new location(); | |
userLocation.open(); |
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
/* Hi Here is the push notification sample code if you installing this apps code in your device when send any push | |
notification message from ACS web it will show your notification bar if you loggedin in your apps*/ | |
var Cloud = require("ti.cloud"); | |
function loginUser() { | |
// Log in to ACS | |
Cloud.Users.login({ |
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
/* I have tested this jira ticket and it dose not reproduce again. | |
It works fine when click the text Fields show Cursor. | |
Testing Environment: | |
Titanium SDK:3.0.2 and later | |
Android SDK: 4.1 and later | |
Steps to Reproduce: | |
1.create a simple project. | |
2.Paste this code in app.js and tiapp.xml |
OlderNewer