titanium

How to create a request string with passing different values in Titanium?

痴心易碎 提交于 2019-12-08 14:04:50
问题 I am creating a URL-String like this: URLString = %@sale-ws/lots/sales?yardNumber=%@&saleFromDate=%@&range=%@&saleToDate=%@&pageSize=%@&pageNo=%@&sortBy=%@&sortType=%@&filterStartYear=%@&filterEndYear=%@&filterMake=%@&filterModel=%@&filterLocationId=%@&filterLane=%@&filterSellerId=%@&searchInSearchString=%@ So in Titanium i want to pass the values dynamically into a given string. I tried this one but did not get a proper response. var urlParameterStringNew =String.format(URLString,Alloy

appcelerator workaround for ti.include not working

假装没事ソ 提交于 2019-12-08 11:43:01
问题 Hi I have tried the workaround suggested by the appcelerator team (for dealing with the deprecation of ti.include in version 6.0.0) function include(file) { return eval(Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, file).read().text); } And I get an error, probably the system can't read the file. the error is: [ERROR] : TiBlob: java.io.FileNotFoundException: Resources/underscore-min.js I have managed to list the directory files through .getDirectoryListing() and couldn't find the

Calculate latitudeDelta and longitudeDelta in titanium maps [Android]

不羁的心 提交于 2019-12-08 11:31:23
问题 I need a help in showing the correct zoom level in Titanium maps for Android. I am showing the route from current location to some other location.The distance is different every time. Can it be possible that I calculate the values of latitudeDelta and longitudeDelta based on the distance and show the map zoomed up according to that? If yes, how could it be possible? Thanks in advance! 回答1: As the the documentation states the smaller the delta value, the closer the zoom on your map. That means

Titanium - "The certificate for this server is invalid. You might be connecting to a server that is pretending to be DOMAIN.COM”

会有一股神秘感。 提交于 2019-12-08 11:22:07
问题 I am developing an app for iOS using Titanium Appcelerator. I am struggling with securing the connections to my server. I bought a UCC certificate to protect my server (and other websites) and installed it. When I go on any browser, it displays that the connection is secured. Now, when I try to create a connection from the app to my server, I get the following error: The certificate for this server is invalid. You might be connecting to a server that is pretending to be DOMAIN.COM I've tried

Dynamic style change in Titanium Alloy

泄露秘密 提交于 2019-12-08 10:34:24
问题 I am new to the Titanium-Alloy. I am creating a 9X9 matrix using xml mark up. I want to change the background color of all the cells if I clicked on a single cell. My questions are 1) Can I use class property like in jquery $(".col").click(function() { $(".col").css("background-color","red"); }); 2) Should I change the background color using id property of each and every cell 3) Is it possible to assign a common click listner to all the cells. Following is my xml markup <View id="rowContainer

Titanium: Where is the SQLite DB Stored?

家住魔仙堡 提交于 2019-12-08 07:31:12
问题 I started a titanium app that uses a sqlite db. I'm getting strange DB results so just want to browse the database using FF SQLite Manager but I'm not sure where the database is? This is the code that creates the db (part): var db = (function() { //create an object which will be our public API var api = {}; //maintain a database connection we can use var conn = Titanium.Database.open('quote'); I'm running Titanium studio on a Mac. Thanks, Billy 回答1: i thought it was something like /Library

OpenGLRenderer: Bitmap too large to be uploaded into a texture in android titanium

痴心易碎 提交于 2019-12-08 06:42:40
问题 In Titanium appcelerator, when I capture an image and show in an ImageView , image is not being shown, instead, below warning is being shown. [WARN] : OpenGLRenderer: Bitmap too large to be uploaded into a texture (1840x3264, max=2048x2048) How to solve this problem? Whereas in tablet it is working fine, but in high resolution device its not working. This one occurs when I insert an image into a ImageView when shot from camera or pick from the gallery. 回答1: This is because different phones

titanium mobile date picker from text field

北慕城南 提交于 2019-12-08 06:40:47
问题 I want to do the following: when people click on a text field they see a date picker. they click "done" button at the top and the date picker disappears and they are back on the form. How can I accomplish this using titanium mobile for iphone ios? 回答1: You can use Textbox AddeventListener and Animation function. like var donebtn = Ti.UI.createButton({ title : "Done", }); var toolbar_pick = Ti.UI.iOS.createToolbar({ backgroundColor : "#f00", bottom : -50, items :[donebtn], barColor :'#000', })

Get contact details to titanium from native iOS contact app

喜欢而已 提交于 2019-12-08 06:27:59
问题 I'm new to Titanium. Currently I'm working on a project in this the user needs to use the contact details from iOS contacts App. My app.js looks like this Window = require('ui/handheld/ApplicationWindow'); var win = Window(); win.open(); var button = Ti.UI.createButton({ title : 'Show Contacts', width : 100, height: 50, }); win.add(button); button.addEventListener('click',function(e){ Titanium.Contacts.showContacts({ }); }); When I click on a button the following code is displayed: And when I

PhoneGap or Appcelerator Implementation

我只是一个虾纸丫 提交于 2019-12-08 06:09:30
问题 This is more of an advice question rather than a specific question. I am developing an application for mobile devices. Its basic functionality will be to open PDF files, Video files, and to open certain webpages. Would this be best implemented in PhoneGap or Appcelerator? 回答1: PhoneGap and Appcelerator Titanium are both very popular open-source JavaScript frameworks for packaging and deploying mobile applications. At Universal Mind, we have clients that leverage both and clearly both