titanium

Orientation Portrait and PortraitUpSideDown Only For One Window

偶尔善良 提交于 2019-12-25 08:31:51
问题 I have 10 windows. The initial window is loginWindow i want to set orientation for Portrait and PortraitUpSideDown. For remaining windows will have landscape and portrait orientation. in Tiapp.xml <key>UISupportedInterfaceOrientations~iphone</key> <array> <string>UIInterfaceOrientationPortrait</string> <string>UIInterfaceOrientationPortraitUpsideDown</string> <string>UIInterfaceOrientationLandscapeLeft</string> <string>UIInterfaceOrientationLandscapeRight</string> </array> Which set all

blank map on my google maps v2 for android titanium module

百般思念 提交于 2019-12-25 08:28:59
问题 I am using the titanium Goggle Maps v2 for Android (version 2.1.3.) and I am using Titanium studio 3.1.3.201309132423. The sample code in the app.js file in the example folder IS WORKING for me. However, when I am trying to create my own map, I am receiving the Google logo, the zoom in and zoom out button, and the button, which takes a user to their current position. The map itself is BLANK however. THIS WAS working for me at first and stopped all of a sudden. I am using the switch statement

Modifying widgets in an alloy project

随声附和 提交于 2019-12-25 08:14:21
问题 I have a widget which is a photo gallery. It's basic functionality means that it only allows the user to click on a thumbnail and then enlarge/de enlarge upon an onclick event. I need to expand the widget so that there is a button which allows the user to change their profile pictures accordingly (if they select that picture). Here is how the code looks by default in widget.js: var topView = Ti.UI.createView({ width:Ti.UI.FILL, height: Ti.UI.FILL, zIndex:1200, visible:false }); // this gets

Titanium Mobile - PhotoGallery - Success callback - event property - media.file returns null

允我心安 提交于 2019-12-25 07:58:40
问题 Titanium SDK: 2.1.1, Host OS: Mac OS X 10.6.8, Mobile platform: iOS 5 I am un-able to access some properties of 'Blob' object returned by Titanium.Media.openPhotoGallery's success callback. The properties un-accessible are 'file' and 'nativePath', however I can access properties like 'height', 'width' and 'mimeType'. I'm testing on simulator. Here is what I coded so far. Titanium.Media.openPhotoGallery({ success : function(event) { var image = event.media; if (event.mediaType == Ti.Media

app will freeze if re-launch from the task bar after closing it using Titanium.Android.currentActivity.finish();

谁说我不能喝 提交于 2019-12-25 07:39:01
问题 anyone knows any workaround? We are closing the application by calling this line of code Titanium.Android.currentActivity.finish() when the user tap the back button(device back). Though the application will close completely, if the user tried to re-launch the app using the recent apps(task bar), the application will freeze that affects device performance. I created a new app, tested it and was able to replicate the issue. Anyone knows a work-around? Steps: 1. Create an app 2. Create a window

Placing a phonecall including extension

杀马特。学长 韩版系。学妹 提交于 2019-12-25 07:26:28
问题 I have been trying to call a number from within my Titanium Appcelerator application using various methods. The problem is, that is should dial an extension as well. I have tried the formats "tel:1234567890,34", "tel:1234567890p34", "1234567890w34". And I have tried it using: // method 1 var intent = Ti.Android.createIntent({ action : Ti.Android.ACTION_CALL, data : phoneNumber }); Ti.Android.currentActivity.startActivity(intent); // method 2 Ti.Platform.openURL(phoneNumber); All combinations

Titanium Alloy Controller Constructor doesn't exposer functions

妖精的绣舞 提交于 2019-12-25 07:17:11
问题 I am creating a row made from a widget dynamically from another controller. While I seem to have access to the views I cannot access the exported functions. Here is the controller code for the widget. var moment = require("/lib/moment-with-locales"); var args = $.args; var isSent = true; function configure(data){ $.userImage.image = data.otherUser.attributes["avatar-thumb-url"]; $.userNameLabel.text = Alloy.Globals.getFormattedName(data.otherUser.attributes["first-name"], data.otherUser

Titanium Alloy Controller Constructor doesn't exposer functions

狂风中的少年 提交于 2019-12-25 07:16:00
问题 I am creating a row made from a widget dynamically from another controller. While I seem to have access to the views I cannot access the exported functions. Here is the controller code for the widget. var moment = require("/lib/moment-with-locales"); var args = $.args; var isSent = true; function configure(data){ $.userImage.image = data.otherUser.attributes["avatar-thumb-url"]; $.userNameLabel.text = Alloy.Globals.getFormattedName(data.otherUser.attributes["first-name"], data.otherUser

Confused about working with nested models in Titanium Alloy

空扰寡人 提交于 2019-12-25 07:08:52
问题 The goal is simple. My app has a messaging component. The way I'm planning on structuring it is by having a Conversation model, which has some attributes (subject, start date, uID), and each Conversation will contain many Message models. Conceptually what I'm trying to do seems pretty trivial: have a Collection of Conversations bound to a TableView. When a table view is clicked, the nested messages get bound to a new Window. I'm struggling with how to do this via Backbone. I have experience

Call function from the controller which is belonging to another

旧城冷巷雨未停 提交于 2019-12-25 06:57:20
问题 I have two controllers 'keyboard' is belonging to 'index' controller I know I can call function in keyboard.js from index.js. But How can I call the function in index.js from keyboard.js?? in this cae I would like to call wantToCall() from fromhere() function my index.js var KeyboardCon = Alloy.createController('keyboard',{}); $.KeyboardView.add(KeyboardCon.getView()); KeyboardCon.test() // I can call the function in keyboard.js from index.js function wantToCall(){ // } my indes.xml <Alloy>