titanium

Titanium sqlite ORDER BY statement

十年热恋 提交于 2019-12-11 14:19:19
问题 Using Titanium appcelerator. How can i sort my database with an sql query which is activated on a button click. my code so far is: SortButton.addEventListener('click',function(e){ sortList(); }); function sortList() { db.execute("SELECT * FROM SavedList ORDER BY SavedListed ASC"); } 回答1: Your code : db.execute("SELECT * FROM SavedList ORDER BY SavedListed ASC"); is correct. Just open database before db.execute and close it after db.execute. It will work. To open database : var db = Ti

Appcelerator on Windows: No valid Android SDK Targets Found

谁都会走 提交于 2019-12-11 13:28:52
问题 I'm trying to run an app on my Samsung Galaxy S6 installed with Marshmallow 6.0 in Appcelerator. I have downloaded Android Studio and used the SDK Manager to download the SDK for the OS. However, when trying to run my code, the console outputs these errors: [ERROR] : No valid Android SDK targets found. [ERROR] : Please download an Android SDK target API level 23 or newer from the Android SDK Manager. I tried uninstalling the API level 23 for Marshmallow 6.0 and reinstalling it directly

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

Track App Version in Google Analytics

瘦欲@ 提交于 2019-12-11 12:47:23
问题 I am using Google Analytics module( https://marketplace.appcelerator.com/apps/5081?2014113336 ) in my Titanium App. 1). Is there any way to track my app version to Google Analytics. In that module documentation no information regarding this. 2). How can I test Google Analytics in my app? After integrating GA, I didn't see any data on my GA account. (even realtime data also empty https://www.google.com/analytics/web/#realtime ) 3). When creating new Account in Google Analytics, which one

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

Does PhoneGap use just UIWebVIew or is it doing something more then that? Nitro?

你离开我真会死。 提交于 2019-12-11 11:47:05
问题 Does PhoneGap just use UIWebVIew or is it doing something more then that? Can it take advantage of Apples Nitro VM? I'm currently exploring the choices for porting our javascript app to native. I'm researching PhoneGap and Titanium, trying to figure out how they differ. Thanks for any insight. 回答1: Yes PhoneGap uses a UIWebView but it is highly customized with lots of custom javascript which gets injected into the page. No as it uses a UIWebView it doesn't gets to use the NITRO javascript

Titanium Studio with Windows Phone Plugin: Titanium SDK does not support the Windows platform

被刻印的时光 ゝ 提交于 2019-12-11 11:41:25
问题 I want to do Windows Phone development with Titanium Studio. I followed https://wiki.appcelerator.org/display/guides2/Getting+Started+with+the+Windows+Phone+SDK#GettingStartedwiththeWindowsPhoneSDK-UsingStudio(Preview) in order to get the Windows plugin. After a required restart of the software, the Windows option apears in the Deployment Targets when creating a new project. Unfortunately, for all Titanium SDK Versions I have installed, 3.5.1.GA, 3.5.0.GA, 3.4.0.GA, 3.3.0.GA, I am getting an

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

Use node.js module in a Titanium app?

╄→гoц情女王★ 提交于 2019-12-11 11:05:25
问题 Currently I am writing a small Titanium app for testing. I need to include a module from NPM to titanium. In this case I am trying with https://github.com/oortcloud/node-ddp-client I am having the error saying Titanium couldn't find module. The code I used for include is var DDPClient = require("./lib/node_modules/ddp"); Can I use node.js modules in Titanium? Thank you 回答1: require('./lib/node_modules/ddp/lib/ddp-client.js'); It's very likely this module won't work for you. It has a lot of

Requiring external JavaScript file

℡╲_俬逩灬. 提交于 2019-12-11 10:22:28
问题 After reading all the relevant answers in SO and posts in the Appcelerator forums I still can't get this to work: I have an application developed in Appcelerator, and I want to load an external JavaScript file in some of my controllers. My App structure is as follows: + app - assets - controllers - models + lib - IndicatorWindow.js ... Inside a controller I have the following code: var uie = require('lib/IndicatorWindow'); But when I run this on an Android phone I get: Uncaught Error: