Community Questions & Answers

Geolocation Android

i am developing an Android app and i have to get the latitude and longitude to save it in a database.. but i can't make it work.. this is my code.. ~~~ if (Titanium.Geolocation.locationServicesEnabled === false){ Alerta.message="Servicios de...

Android Font Size Inconsistency

Hi, I have 2 android tablets by different companies both with DPIs of 213 and heights pretty similar (1205 vs 1216 - as reported by Ti.Platform.displayCaps.platformHeight). My code for a given label looks...

ti.nfc: Requested module not found: ti.nfc

Hi, I am trying to use the ti.nfc module in SDK: 3.4.0.GA and I get: ~~~ [ERROR] TiExceptionHandler: (main) [128,93754] ----- Titanium Javascript Runtime Error ----- [ERROR] TiExceptionHandler: (main) [0,93754] - In ti:/module.js:280,9 [ERROR]...

Having hard time to debug with Console info

Hi everybody, Right now I'm having a hard time trying to test an App I'm working on, I created a new controller (working with Alloy) and at first I try to run it, but I got this weird console data, and at the end an a message stating that the code has a...

Access Genymotion app files

Hello! I'm using Genymotion as my Android emulator to test an app built initially for iOS. I'm getting errors every time I try access any file saved into applicationDataDirectory by the app. The file never actually exists apparently. I can't find any...

How to pass value TextField to alert?

how can i pass values text field from Alert dialog? This is My text field ~~~ tableView = function(e){ var tableView = Titanium.UI.createTableView({ left : 0, right : 0, top : e.top, bottom : 0, width : Ti.UI.FILL, height :...

Have children fill parent equally

Let's say you wanted to create an iOS Style Tabbar with 4 Tabs. You want the Tabbar to fill the screen horizontally and each Tab to be the same width so they equally fill the Tabbar. How would you do that? Giving each Tab a width of "25%" and...

how do i tweet in titanium?

I keep on hearing about something called "social.js", but i cannot find any appcelerator documentation on it. I can certainly find github social.js files, but are they legit? Does anybody know of where appcelerator discuss how to go about...

Buttons plays 3 sounds in order

Hey all, i want to make a button play 3 sounds in the order that i choose, with the code that i have below,they all play at the same time. note:each sound has a button attached to it and when the sound is playing the button's width increases by (this part...

Splash screen incorrect res folder

Hi people! I've created Splash Screen for my app through http://ticons.fokkezb.nl . On smartphone, splash screens are ok, but on tablet they look out of resolution (it seems it loads default.png splash screen). How can I fix that? Thank you!

Is it possible to specify a model via a passed argument?

Hello all, I'm developing an application which will allow the user to view a series of checklists. Each checklist is stored in a separate database table and will be shown in a TableView, one per window. What I want to know is if there's a way I can pass...

android splashscreen not fit screen

Hi, I have an android device with this screen parameters: ~~~ [INFO] : Ti.Platform.displayCaps.dpi: 320 [INFO] : Ti.Platform.displayCaps.platformHeight: 1184 [INFO] : Ti.Platform.displayCaps.platformWidth: 768 [INFO] : Ti.Platform.displayCaps.xdpi:...

Could not detect a valid IOS SDK

Hi all, I have installed in my Mac OS 10.9.5, Titanium Studio 3.4.0, Titanium SDK 3.4.0, ~~~ Host OS: Mac OS X OS Version: 10.9.5 OS Arch: x86 JRE Version: 1.6.0_65 JRE Vendor: Apple Inc. JRE Home:...

1 Time Use Button

hey all, i wanted to make a button that can only be pressed once after which it will disappear... however this button should be present if the window is refreshed... My code so far... ~~~ startButton = Ti.UI.createButton...

JSON byte array to image

Hi All, I'm trying to convert byte[] into image. The byte[] comes from JSON (web service). I am trying this way ~~~ var file = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, 'image.png'); // Save...

Showing 1-50 of 64,359 1 2 3 4 5 61288