titanium

Android app hangs on restart (Appcelerator Titanium)

梦想与她 提交于 2019-12-11 08:02:07
问题 I am making an app for Android. I encountered strange issue. Application works perfectly until it is closed with back button. If so, than after restart it is showing splash screen and becoming non-responsive. After some time dialog (if I want to close the app) may show. It happens with any code. For example: var myApp = {}; alert(1); alert(2); If app is closed in hard way (third button and swiping app out) than everything is fine. Problem occurs on every Android version both on device and

Accessing custom rows of a TableView

孤街浪徒 提交于 2019-12-11 07:26:17
问题 I am pushing items to a data array and then adding these to a rowData array in order to create custom rows for a table. I need to know how to access these when a user clicks a specific row. I was previously using e.rowData, title etc. for accessing these elements when I had a basic table but now that it is a custom table, this isn't working. Don't worry about the parsing bit, that all works fine. All help appreciated! data.push({ title: items.item(i).getElementsByTagName("title").item(0).text

Titanium encodeURIComponent returns different value iOS / Android

北城余情 提交于 2019-12-11 06:27:59
问题 This simple script returns deferrent values for iOS/Android. My environment is titanium 6.0.1.GA var name = "arn:aws:sns:ap-northeast-1"; Ti.API.info("encodeTest:" + encodeURIComponent(name); [iOS] encodeTest:arn%3Aaws%3Asns%3Aap-northeast-1 [android] encodeTest:arn%%3Aaws%%3Asns%%3Aap-northeast-1 somehow in android escape character '%' is doubled. I have used this encodeURIComponent function many times before, but at that time (may be titanium 5.0.*.GA), it didn't happnen. 来源: https:/

A letter '%' is doubled on Android

梦想的初衷 提交于 2019-12-11 05:39:55
问题 Environment Titanium 6.0.3.GA / 6.0.2.GA / 6.0.1.GA var myname = "%"; Ti.API.info("test:" + myname); This simple code shows different output Android [INFO] test:%% iOS [INFO] test:% THis is the further investigation of Titanium encodeURIComponent returns different value iOS / Android It might be bug or not ?? I tried these too var myname = "1%1"; var myname = '1%1'; var myname = "1\%1"; Everything shows (on Android) [INFO] test:1%%1 来源: https://stackoverflow.com/questions/43251742/a-letter-is

Titanium App Apple store rejection due to non-public API focus:

我的梦境 提交于 2019-12-11 05:23:55
问题 I have an appcelerator titanium app that I have summited several versions of to the Apple store for beta testing and have had approved. The most recent version was rejected with the message: Your app uses or references the following non-public APIs: focus: Asking for clarification they replied: Thank you for your reply. Our team has re-reviewed this app to ensure our findings were accurate, we found this app contains references to the following selectors: "focus:" was found in the method -

Appcelerator: Proper Way Automatically Dismiss Keyboard

会有一股神秘感。 提交于 2019-12-11 05:03:31
问题 I'm writing an app using Titanium. I want to be able to automatically dismiss the keyboard anytime something outside of the text field is clicked. I have yet to find an elegant solution for this issue. Couple things that I've thought about, but am still looking for a better solution: Assign event listeners to basically everything else present in the view, and dismiss the keyboard (using textField.blur() ). I want to avoid this since it results in a LOT of code just to dismiss the keyboard.

Titanium iOS - Facebook SSO not returning to App

怎甘沉沦 提交于 2019-12-11 04:58:07
问题 I've recently added Facebook Single Sign On within my application using Appcelerator' Titanium. Which is working nicely but is failing to redirect back to my application automatically when presented with the "Already Authorized" facebook page. If the user clicks the "Okay" button within facebook the Application re-opens and works as per usual. I'm just looking to get rid of that extra step for users. Any suggestions? I've come across Objective C solutions such as : Does the Facebook iOS SDK

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