Community Questions & Answers
Facebook reauthorize keeps gettign called
I'm not sure what I'm doing wrong here, any help with the Facebook authorize and reauthorize process would be greatly appreciated. When a user presses a button, the following function is called: ~~~ var fb; var facebookLogin = function(){ fb =...
Open Gallery when camera is opened
Hi, I'm trying to select a picture from gallery (with the camera already opened) to overlay with the camera view. The problem is that I cant take a picture after select the image from the gallery, because some camera problem (works if I dont open the...
How do I rearrange children in a view hierarchy?
I need to set the child at position 3 to a widget after a user clicks on a button but I noticed that the View class @ http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.View only allows "read only" access. I don't need to remove the...
Storekit - state of purchase
Hi, i want to talk about purchase. It is possible to know if user have bought a product ? without saving state on db after buy it and restore purchase, but with call "requestProduct" throught callback information. Thanks for you answer.
user location near a annotation
Im building an app with titanium and i am creating multiple annotations on a google map. My question is if somehow i can check if user location is near an annotation and lets say fire an alert. Is this possible? In a similar project with javascript i was...
Android: Display "next" or "done" on keyboard
I want my ascii/text keyboard in my textarea to display "next" or "done" in the bottom right corner, so when I click it it doesn't make a newline but blurs the field. My code: ~~~ var win = Ti.UI.createWindow({ backgroundColor :...
iOS - problems with fonts
Good evening, i want change the font from a label. I had read the documentation but it does not work for me. http://docs.appcelerator.com/titanium/latest/#!/guide/Custom_Fonts I try many fonts like "Arial" or "Helvetica" also i...
Yes... another TableView in ScrollView question
Are there any suggestions for getting a tableView to be scrollable within a scrollView? I've tried setting canCanelEvents on the parent scrollView but then that causes issues with not being able to scroll at all if you happened to try to scroll up while...
displaying data in android
Hi all i'm trying to parse data using json web service and poster it in emulator so i create a database like below but now i want to post up the data and i don't know how can someone help me please ~~~ var win = Ti.UI.createWindow( { ...
Detect click on webview to fire event to app
Hi I'm using SDK 3.1 I'm trying to fire an event in a webview and detected it at app level. I've followed all the post I have found on this subject but I cannot make it work. I need to attach an event listener to all images, which are generated from the...
titanium non-swipeable taleview
If you look at the settings app on the iphone, it has multiple table viewes one under another. tough when I swipe the screen, I son't swipe the rows of each tableview, but the whole screen. Can I create a tableview, that is just a table, and does not...
Admob Module Update?
When is the Admob Module going to get updated? As of May 1st, Apple is now rejecting apps that use the current version of the module. We are 15 days into this with no update. This needs to be updated, why is Appcelerator not updating this module?
Stream video
Hi. I am wondering if it would be possible to do a feature in an app that allows the owner of the app to record a video and have it shown in the users devices in real time. (Push notifications to let them know that there's a live feed going on.) If...
Can you remote debug a WebView
I have an app that includes a WebView on iOS. Apparently, it should be possible to enable remote debugging on such apps from Safari on Mountain Lion. Can this be enabled with a webview in Appcelerator? It seems it can be done in native code like this:...
Emulator not running
Hi, this is my first request of help. I am new in Titanium world. I have installed Titanium Studio, like described by the tutorial, on an Ubuntu 11.10 desktop machine. I have configured Titanium Studio with Android SDK 2.2 (as required by Titanium) and API...
Files are not copying into resource bundle
I am using Openears framework to create a iOS Module. While I am running titanium project for this ios module, application crashes. I checked that some files from Openears framework is not copying into resource bundle of app. Please refer below...
How to use the Database values in the Google Graph API
HI Dev's, I used google API for my application static format. But i want to access the database values to plot the graph. Is there any solutions for this. ~~~ var mapwebView = Ti.UI.createWebView({ height : 900, width : 800, color :...
Ti.nfc License violation detected issue
Hi all, I'm using Ti.nfc module but I'm getting a "Licence violation" error. I've downloaded the module from: https://github.com/appcelerator-modules/ti.nfc/blob/master/android/dist/ti.nfc-android-1.2.1.zip and installed in Studio via Help >...
How to package Google Maps API?
I have an Android Titanium module project which uses the class MapActivity from the Google APIs. By default, maps.jar (Android SDK level 8) was already referenced in my module project. I added ~~~ <uses-library...
Facebook 3.1 iOS module opens Safari on reauthorize(['publish_action'],...) call
Facebook 3.1 iOS module opens Safari on reauthorize(['publish_action'],...) call. As you can see -- writing permissions asked there. The question: is it should be like that? I expected some iOS 6 native dialog, as it appears for reading permissions. Can't...
Picker Custom UI
Hi there, Been searching around but have not found any info or doco on changing the picker UI? I have a date one setup but would like to modify the look of it as it is rather boring and considering the real estate the stupid thing takes up, i'm hoping...
Adding ADT Plugin
Cannot complete the install because one or more required items could not be found. Software being installed: Android Native Development Tools 20.0.0.v201206242043-391819 (com.android.ide.eclipse.ndk.feature.group 20.0.0.v201206242043-391819) Missing...
Apache Ant
Can any one say what is the use of apache-ant-1.9.0-bin in titanium???????????
get longitude and latitude from adress
Hi, Is it possible to get latitude and longitude after taping an adresse ? for example : paris.. thanks
Use local images in html (Webview)
Hi! In my app I must download a image... i store it in applicationDataDirectory. then i must put the image in a html document and the html into a webview. this is my code: ~~~ function descargarImagen(urlImagen) { var f //Creamos una...
Detect screen inchs
Hi Guys, I known Titanium.Platform.displayCaps property, but I'm confused. How I can detect if App is running on 4", 7" or 10" screen? Thanks :)
Reordering rows with gestures (Android)
Hi, I've a table with some data and I need that the user can reorder the rows without using Up Down buttons on every row. It would be nice to use drag&drop other kinds of gestures. Using this example, how I'd do it? ~~~ var win =...
not working on ios
hi i am new to mobile development using titanium alloy and i am facing a problem by using gradients and glossy where as it is working for android but not for ios can any one help me out plzzzz
Loop through a Json File ?!
Hey Guys, i have tried several things, but i just can't get it work... I wanna loop through my json data with a recursiv function. I've uploaded an example to my webserver. Help would be so much awesome. my mind is totally fucked by that stuff...
Creating a glossy type button to work in android and IOS
hi all i'm very new to tss i had done some coding to create a glossy buttons for my apps with reference to css3 glossy buttons but i got stuck how to add padding and shadows to my button plz help me out
error
i have integrated admob module first it worked well but after that am getting following error. can anyone help me. thanks. ~~~ [Ads ( 1777)] To get test ads on this device, call adRequest.addTestDevice(AdRequest.TEST_EMULATOR); [INFO][Ads ( 1777)]...
animation in titanium
hi all, iam creating a game project in titanium.in this i have 5 levels.when each level completed i have displayed a alert message as "successfully cleared" instead of this i need to display the animation like bursting the ballon after that it...
Player audio for android
Hi everyBody! I created an audio player. It's ok for IOS device, but i want used for android. But with Android my audio player does not work I click on my song and 1 minute after my application exit. Thanks for your answers. ~~~ function Playlist()...
Emulator not running, exiting...
Application type: mobile Platform & version: Android 4.2.2.[armeabi-v7a] Device: Android emulator Host Operating System: Windows 7 Titanium Studio: 3.1.0.201304151600, Date: 15 April 2013, 16:04:14 Running the Helo World that comes with the...
Font Family Picker
I am planning to make font picker using Alloy but before I can start I have few question regarding this. How do I get the default list of font family e.g in android so I can display it for picking? If I use custom font, do I simply put the .otf file inside...
Problems publishing apps on itunes because of UDID
Hello! Since apple does not allow to acccess the udid i have a problem publishing my apps. Does anyone know about issues for these three modules (in relation to iOS): ti.cloud v 2.3.3, ti.admob 1.4.0, facebook 3.0.0 Is there also a recommended way to...
Can't make Google Maps v2 work
Evening, I'm using **Titanium SDK 3.1.0.GA** and **Alloy 1.0**. Imported Maps Module 2.1 as well (even if the docs say that it's bundled on SDK 3.1). The only thing I achieve is a blank map, with zoom buttons, just as described...
Titanium memory management
i want to know that .. how it is handle in titanium i have searched a lot for that i want to check . how Memory is allocated and deleted and when i delete this objectes because in xocde we have method where we can dealloc this . now how can we handle it3...
Android Application for MIPS Hardware(ex. GalaxyTab) includes titanium modules (Android NDK)
My Application, including titanium android modules (like admob on the MarketPlace), **can't run on MIPS architecture Hardware. (ex. Galaxy Tab)** The reason might be that the modules are made for armeabi, armeabi-v7a, and x86 by Android NDK. So, I...
errors in integration of admob
[ERROR] Error generating R.java from manifest [ERROR] C:\Users\Xvalue\My Documents\Titanium_Studio_Workspace\combadd\build\android\AndroidManifest.xml:17: error: Error: String types not allowed (at 'configChanges' with value...
Single iPhone App with different UI skins and same code base
Hello, I have a single code base of an app in Titanium SDK 3.0.2 for iOS 5+ that works fine. I have a customer who wants to change the font, background skins but on the other hand I don't want to have the basic UI skins. Is it possible to have two...
Missing components in the table when scrolling
Sample is simple to test. Keep scrolling and at some point you will see the textfield or switch missing from the row. A bug? ~~~ var win = Ti.UI.currentWindow; var btn = Ti.UI.createButton({ title :...
Why can't I check in my project with TFS for Titanium?
I'm using Titanium Studio with build 3.0.1.201212181159 and TFS server plug-in for Eclipse version 11.0.0 and working on OS X 10.8. Yesterday I tried to check in some changes on my project but when it was trying to log in to TFS the window showed a page...
Stopping ADB server failed (code -1).
Hi all, I upgraded my OS to Ubuntu 12.04 LTS 64 bit, and a problem appears when I run the emulator, I try to install again the Android SDK, an error appears in the log `Stopping ADB server failed (code -1).` the installation continue, but I think that...
Garbage collector with Alloy
Hi, I would like to know something. When you have multiple controllers depending each of a view with a window, is it better to open once the window and play with open/close or to definitly close the window and pen a new one. Do the destroy method of the...
[alloy] [android] how do I open a window from a background service, when my app doesn't already have focus?
I am creating an alarm app, I have a service that checks every 60 seconds if there is an alarm that needs to go off, (maybe not the best way to do this?) Anyways, if there is an alarm that needs to go off this minute, I want to launch a window. This works,...
Android - 9patch image as View backgroundImage not scaling properly
I have a 9patch image which scales nicely as the _backgroundImage_ of a button. When I take this same image and apply it as the _backgroundImage_ of a _View_, it does not scale intelligently - just stretches the whole image. The same thing happens when...
Multiselect - limit how many options can be selected.
Im trying to find out a way to limit how many options can be selected in a multiselectview. How shall I make the if-statement? ~~~ var mSelOpts = ui.createTableView({ style: Ti.UI.iPhone.TableViewStyle.GROUPED, ...
View repositioning after WebView load event
Hi, I have a scroll view (as a master container) for dynamically changing content.. The problem is; I have to put a View right after a WebView. But i couldn't manage to reposition the View after WebView is loaded (and resized) Any help is...
Error building alloy project on a android device and AVD
Application type: mobile Titanium SDK: Build: 3.1.0.201304151600 platform and version: Android 4.0.4 device: Android emulator, Galaxy Note Host operating system: Windows 7 enterprise service pack1 A test case: create sample hello world application ->...