titanium-mobile

I need help understanding Titanium Alloy (MVC) development

对着背影说爱祢 提交于 2019-12-21 09:35:01
问题 I'm used to developing in MVC frameworks such as cake and backbone, but I can't get my head around developing in Alloy. There don't seem to be any good examples online. I would be very grateful if someone could give an example of how you would set up a couple buttons that respond to click events and bring you to new windows. I'm also using Ti's map api to show a google map, but I'm not sure how to correctly initialize that either. Thanks! 回答1: here are very helpful links for MVC Alloy http:/

Recreating this animation in Titanium SDK

混江龙づ霸主 提交于 2019-12-20 10:57:29
问题 I was previously developing my application in Xcode but decided to move over to Titanium to allow for Android development. I'm still getting used to Titanium so I'm running into some problems when trying to rewrite my app. For instance: how would I go about recreating this animation in Titanium? Basically I have UIView that contains a MKMapVIew, a UITableview and a button that toggle between them. Any help is greatly appreciated! http://www.screenr.com/2kts 回答1: You can use this code to flip

Easy to follow beginners tutorial for Titanium mobile/studio [closed]

社会主义新天地 提交于 2019-12-20 08:39:36
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I'm new to Titanium mobile as well as titanium studio, but have heard good things about it. Can anybody recommend some easy to follow

How to load another js file on a button click in titanium

旧街凉风 提交于 2019-12-20 06:15:09
问题 I have App.js (function() { Window = require('ui/tablet/ApplicationWindow'); } new Window().open(); })(); From there ApplicationWindow.js is loaded. In ApplicationWindow.js function ApplicationWindow() { //load component dependencies var FirstView = require('ui/common/FirstView'); //create component instance var self = Ti.UI.createWindow({ backgroundColor:'#ffffff' }); var win2 = Titanium.UI.createWindow({ backgroundColor: 'red', title: 'Red Window' }); //construct UI var firstView = new

Is a TiTouchImageView working in an alloy project? [UPDATE]

送分小仙女□ 提交于 2019-12-20 06:12:57
问题 I am currently developing a titanium app for android and iOs including an imageView which should be scrollable and scalable (via a slider). I already get this to work on iOs but on Android it is really hard to achieve the scrolling behaviour. I decided to use the TiTouchImageView module but the documentation only shows how to use it in a non-Alloy project. My current code looks like this: if (Ti.Platform.osname == "android") { var TiTouchImageView = require('org.iotashan.TiTouchImageView');

Invalid Date for a new Date(“YYYY-MM-DDThh:mm:ss”); instanciation

倾然丶 夕夏残阳落幕 提交于 2019-12-20 03:59:21
问题 I'm working with titanium which is a framework for mobile developpement based on javascript. I've an array which contains among its cells a string representing a 'date and time' string in the 'YYYY-MM-DD HH:mm:ss' format ( NightsArray[i][3] returns : 2014-02-20 23:00:00) as shown in the console later. in this page it's shown several constructors for the Date() object with several parameters : var today = new Date(); var birthday = new Date("December 17, 1995 03:24:00"); var birthday = new

Cannot run an application in titanium

↘锁芯ラ 提交于 2019-12-14 00:15:07
问题 I am newbie on Titanium , I have installed Titanium on my windows based laptop. Also imported Kitchen Sink application it in studio. I have set all the path variables also latest Android SDK . Also i have changed Run Configuration log and all. But when i try to run an application it gives me an error. I am trying to run it on android emulator of Titanium studio . Titanium Command-Line Interface, CLI version 3.1.1, Titanium SDK version 3.1.1.GA Copyright (c) 2012-2013, Appcelerator, Inc. All

File upload error - 403 Forbidden

回眸只為那壹抹淺笑 提交于 2019-12-13 21:21:25
问题 I'm building an iPhone app using Titanium Mobile and using the HTTPClient. Whenever I post files to production server I get the following response. If I post to postbin.org or my local or staging servers it's okay. I don't think the error is generated on the iPhone simulator. I think its a server setting or something. I have an app written in CodeIgniter using the "upload" class. <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>403 Forbidden</title> </head><body> <h1

Titanium: How to add Contact in Phone book in Android?

断了今生、忘了曾经 提交于 2019-12-13 20:36:01
问题 I want to add Contacts in phone book. I can add contacts in iPhone properly but in documentation I got to know that in Android, phone book is ReadOnly !!! Is there any other way to add ? Thanks.. 回答1: Solved ! I got help from this Link . We can add contacts in Android by Intent. if (Titanium.Platform.name == 'android') { var intent = Ti.Android.createIntent ({ action: 'com.android.contacts.action.SHOW_OR_CREATE_CONTACT', data: 'mailto:'+firstName+' '+lastName }); intent.putExtra('email',

Appcelerator Titanium: how to record video?

Deadly 提交于 2019-12-13 12:36:37
问题 How to record video in Appcelerator Titanium and store in a specific location ? I am using an Android 2.3.6 device. This gist: https://gist.github.com/832488 does not seem to work as suggested / expected. It starts the video capture intent var intent = Titanium.Android.createIntent({ action: 'android.media.action.VIDEO_CAPTURE' }); as an activityForResult but the callback in Titanium.Android.currentActivity.startActivityForResult(intent, function(e) { ... }); is never called, none of