titanium-mobile

Email dialog HTML ignores some tags Titanium Moblie

﹥>﹥吖頭↗ 提交于 2019-12-11 17:32:12
问题 I'm currently building an app that has Email sending capabilities. I'm trying to send an Email with the relevant information and includes a link to the original post that is being sent. the original post is created as an HTML code segment, so I have to send the Email as an HTML. i create the Email dialog like this: var mail = Ti.UI.createEmailDialog({ subject:'FW:'+post.desc, html:true, messageBody: '<br><br><a href="http://www.XXXXXXXX.com/index.php?tid='+post.id+'" target="_blank">view

when start Application than Remove this Titanium Startscreen(create custom Start Screen)

余生颓废 提交于 2019-12-11 15:35:52
问题 I am Application Developer with the Titanium. i want to develop new Application with Titanium and created a HelloWorld application. Every time my application starts up Than every time Titanium startscreen is show. how I remove this Titanium Startscreen. 回答1: The default titanium splash is screen path is: Resources/iphone/Deafult.png You can replace your new Default.png. To see the new splash screen, just clean your build and relaunch your application. 来源: https://stackoverflow.com/questions

Setting Minimum iOS Version number in Titanium Studio

冷暖自知 提交于 2019-12-11 14:54:07
问题 How can we set minimum iOS version in Appcelerator Titanium Studio from default 4.3 ? 回答1: Add following setting to the tiapp.xml . Make sure to change 6.1 to whatever minimum iOS version you want to build your app for. <ios> <min-ios-ver>6.1</min-ios-ver> </ios> builder.py looks at this value to decide what minimum version to build the project with. You can find builder.py at following location: ~/Library/Application Support/Titanium/mobilesdk/osx/<Titanium-SDK-Version>/iphone/builder.py Don

Titanium picker scrolling lags for the first time

℡╲_俬逩灬. 提交于 2019-12-11 13:02:41
问题 I am a newbie to Titanium. I am creating a picker in Titanium which loads a set of records from my local sqlite database. Whenever I scroll the picker, for the first time there seems to be a small lag in scrolling. That is, when user scrolls the picker, there is a lag for few seconds and then users are allowed to scroll records continuously. This lags happens only for the first time. Can anyone please guide me how to fix this scroll lag. My code is as follows: function CREATEPICKER(rows, x, y

Titanium Android: View not attached to window manager chrash

烈酒焚心 提交于 2019-12-11 11:55:07
问题 I have two views.In first view, I have a table view and I am displaying remote data in its cells. I am showing activity indicator while data downloading. Second view gets open when any of row is selected. When I come back to the first view, I am refreshing the table view by downloading remote data. But in Android, when I come back to first view and start downloading data, application gets crash due to activity indicator !!! Application crashes only in Android, its working fine in iPhone !! I

Can I get a user's phone number using any of the Titanium API's?

谁说我不能喝 提交于 2019-12-11 11:22:21
问题 When a user runs my app (iOS or Android), can I automatically get their phone number and contact details for back up? 回答1: I can't vouch for Android but for iOS the answer is a definite no . Here's what Apple will say when they reject your app: For security reasons, iPhone OS restricts an application (including its preferences and data) to a unique location in the file system. This restriction is part of the security feature known as the application's "sandbox." The sandbox is a set of fine

picker change event not firing for first time in Titanium

家住魔仙堡 提交于 2019-12-11 10:34:42
问题 I am using picker in my Tiatnium Application. Picker data is loading from json response.I first store API data in Temporary array and then adding data to picker. The problem is when I click picker elements for the first time the change event doesn't get fired. After first click is done then if I click on any element it works as expected. Here is the small code snippet of it for (var i = sorted.length - 1; i >= 0; i--) { pickerData[i] = Ti.UI.createPickerRow({ title : sorted[i], }); Ti.API

restrict a user to download the app from google play if android version is older

依然范特西╮ 提交于 2019-12-11 04:47:25
问题 How to restrict a user to download the app from google play(google app store) if user's android version(SDK) is lower then a specific version. I am using Titanium to develop the app. Detail: I have created an application for a client and it works fine with version 4.2.2 and above but there are some issues with 4.2.1 and below now client wants that if any user having version below 4.2.1 tries to download the app from app store, user get a message/notification about version. I tried to set

Titanium : Label over lapping issue

此生再无相见时 提交于 2019-12-11 04:47:23
问题 For Android I have two labels in a table row. I am trying to set these two label vertical but the firstLabel overlaps the second one. As firstLabel 's height is " auto " and it contains dynamic text e.g. 10 lines , 20 line. Due to dynamic height of firstLabel I couldn't set secondLabel 's top so it gets overlapped. I've tried all possible solution available on the SO and Appcelerator but couldn't find the fix. 1). I couldn't get height of firstLabel after or before adding it to the view,

Titanium Geolocation Not Working in Android Emulator

天大地大妈咪最大 提交于 2019-12-11 04:29:32
问题 I get this error: [ERROR][GeolocationModule( 278)] (KrollRuntimeThread) [633,2564] Unable to get current position, location is null and I have followed other people's advice without any luck. Could someone lead me in the right direction? I would be so grateful. Thank you! var win1 = Titanium.UI.createWindow({ title : 'map_landing', backgroundColor : '#fff' }); var win2 = Titanium.UI.createWindow({ title : 'hails_window', backgroundColor : '#fff' }); var win3 = Titanium.UI.createWindow({ title