Community Questions & Answers

Hyperlink text in Titanium

I'm pretty new to app development, and I'm creating a tabbed Android application. I'm trying to carry out what I suspect is a very simple task in hyperlinking some text. I would like to create a label such that when the text is clicked, the website opens...

Http client error

Application type:mobile,Titanium sdk:3.3.0 GA,OS:Mac OSX 10.9.3,Titanium studio:3.3. Hi, I am not able to connect with server using Http client in both android and ios.It was working fine before ~~~ [ERROR] : TiHttpClient: (TiHttpClient-1) [36311,43196]...

Copy / Paste Context Menu

Hello, i'm trying to figure out how to change the context menu language for copy / paste in iOS. Where can i change this? It's always english no matter which device language is set. Thanks!

How to debug the iOS module?

How can I debug the iOS native module? I tried to print the debug message with `NSLog(...)` in the public method in the module, but nothing happen within the Ti Studio console Thanks!

Temporary Alert Dialog box

Hi all, I need a alert dialog just a few seconds, then must be closed automatically. I use alloy, index.xml: <AlertDialog id="Actualizado" persistent="false" message="InformaciĆ³n recibida correctamente" /> Then in...

Reducse apk size

I've asked this quesion before but didt get answer, I need to reduce apk size which is by default 9 MB , is there is ssome way to do this by removing not used liberaries for example , ad if there is how to do it and what is its concequences?

How to Query Music Library

Hi, I have found this API in the docs : Titanium.Media.queryMusicLibrary Is there any example in how to use it? I'd like to retrieve an array with all the artists in the ipod music library. Is that possible? Thanks Marc

Alloy ACS update existing custom object

Hi, I use Aaron Saunders ACS example https://github.com/aaronksaunders/ci.alloy.acs.books/tree/master/app Collection fetch works great. Please could anyone tell me how to update existing object in the cloud. Calling "save" will add new object,...

Slide window Effect in Alloy

Hi, I have decided to work on alloy for development. So, I am here to ask my first question. I want the window open with sliding effect from Right to left. I have used the animation effect from left to Right slide window. Which I have implemented using...

Android hiding action bar problem

I'm trying to hide the action bar from my Android app but I've run into an issue. The action bar is hidden from my index page, but whenever I open a modal window, the action bar is shown. To hide the action bar, I am utilizing the Android theme method...

How to check Device has Sim or not?

Hi All, I am new to titanium, I have a requirement to have call from the Application, During search i have some code using openUrl. I feel it is fine, Suppose if i am iPod or iPad or if i have which dont have Sim card, How can i identify that it will...

Save images in android

Application type:mobile,Titanium Sdk:3.3.0 GA,OS:Mac OSX,platform:Android I am displaying these images in tableview.I want to save images to gallery.1st image is saved properly if I save the 2nd image only 2 nd image is shown 1st image is not...

How to disable back swipe gesture on iOS 7

Hi. In iOS 7 Apple add new default navigation behavior. You can swipe from left border of the screen to go back on navigation stack. But in my app, this behavior conflict with my custom left menu. So, is it possible to disable this new gesture?

Missing icon file when submiting IOS app

Hi, I have two blocking errors when I submit my app to Apple : *"Missing required icon file. The bundle does not contain an app icon for iphone / ipod touch of exactly 57x57, in png format for IOS versions < 7.0"* and more or less the same...

Difference between TCD and TCAD??

What exactly is the difference between TCD and TCAD? From what I understand, both are one and the same thing just that TCAD is an earlier version and now it is being called as TCD. In that case, why are there different set of labs for TCD and TCAD at the...

How to disable a button

Hi i have a button with an event listener, i did this ~~~ buttonname.enabled=false; ~~~ but its not working event listerner is still firing.How to disable this button?? Thanks.

Unable to build Android application

Hi, I have the following setup: Titanium Studio: 3.3.0 SDK: 3.3.0GA Alloy: 1.4.1 Titanium: 3.3.0 Android SDKs available: 2.2, 2.3.3, 4.1.2 JDK: 1.7 OS: Windows 7 32-bit I have created a sample project and I have been able to build and run it on...

Validate page before closing

I have a preferences page and I want to validate the info before the user can navigate away from the page. I want to alert the user if they did not enter information into a field before leaving the page. I know that I can use a close event listener, but...

Alloy TabGroup hierarchical issue

I am trying to make a hierarchical content setup like image in link but I am running into an issue to adding 3rd window to the stack. I have tried adding it using Tab.open method but it errors with an undefined message. Any help on what I am doing wrong...

Sync database on app start

Hello, I'm fetching the content for my app via an external source. This content is stored in a local database. Now I want the sync function (this function is checking for new content and saving it to the local database) to be executed on app start. I want...

Showing 1-50 of 15,365 1 2 3 4 5 6308