Community Questions & Answers
How to limit the zoom on Google Maps v2 and iOS maps?
Hi All, I'm working with maps on both iOS and Android. I've gone through the docs and I don't see anything that appears to address this need. I have as a goal to display locations in a way that supplies strictly high level information- nothing too...
Flurry analytics module in titanium module
Hi, I downloaded Flurry analytics JAR file. i should use Flurry in my project and i want to use my own module. i didnt find module that works in android. can you please explain to me how to create titanium module. i have see the tutorial in appcelerator...
how to read and write to aws s3 using REST and Titanium ?
I created a free tier membership with amazon web services. I have to upload and download files from my iPhone app. Can someone send sample code to do that. I also created a Access Key ID and Secret Access Key, and looking forward to use REST api of...
File and TiBlob not working on iOS
Hello, I'm trying to read a file and encoding it on Base64. Everyrhing is working super good on Android but when I use the same code on iOS I can't make it work. This are the exact steps. I take a photo with the camera and save the thumbnail as...
Android: Google Maps V2 Tiles Only Load the First Time Mapview is Rendered
Hi, I recently upgraded our app to use Google Maps V2 in Android. Everything seems to be setup correctly now and when the map is first loaded it renders normally -- tiles load and the map is moved to the specified lat and long. When the user starts...
View not centered after exiting CoverFlowView
When i use the below code it enters the cover flow view fine, and exits it fine, however when i tab to another view the view appears in the upper left corner almost completely out of...
Android video playbackState, seek ?
I am using `Ti SDK 3.1.0` and `Google APIs Android 4.0.3`. For some reason the playbackState for the video player isn't firing when a user drags/seeks the scrub bar on the player. All I can get is the play/pause events. Anyone know how to fix this...
How to pass multiple arguments and get data value into another window titanium
undefined for the second argument when passing value from one screen into another screen // First Screen Code. args [] = {name:'ABCD',value:'1234'}; argsToken [] = {token:'ABC123DEF456',value:'VALID'}; var Window =...
Moved to Ti SDK 3.1.0 and android crashing now
I have an app that was built using SDK 2.1.4. For the past week, I've been getting my iOS version of the app up to date with 3.1.0 SDK. I am now ready to do this for android. I compile to the device and I get this error `http://pastie.org/7921720` Pretty...
Cleaning up Modal Windows with Navigation Groups in Alloy Applications
Hi all- I have an application which launches a modal window. This modal window contains a form, and within the form, I have a NavigationGroup which a user can navigate between fields to select multiselect options within other views. The form also...
Can push be implemented without using urban airship or ACS?
I have my own server which is supplying all the data for my app, and wanted to configure my server to push notifications to my app on its own. I really dont need to send data to a third party like urban airship or the ACS. Is this possible? I've only...
How to apply Strike Line on tableview row
Hi All, I need to apply a strike line on tableview row, once I clicked on the checkbox in that tableview row. Here is the link for image, how I want to display. Image Link :...
Map setCenter() does nothing
~~~ $.companyMap.setCenter({x: jobLat, y: jobLng}); ~~~ jobLat and jobLng contain values like 50.30 depending on where a location is. But the setCenter function doesn't change the center of the map. I'm using the latest SDK and Titanium alloy
How to submit a bug to Titanium: setRegion not working on Ti.Map
Hi guys, setRegion() is throwing "Invalid Region" on real devices (not the simulator). This is a bug that breaks functionality in my app and it needs to be listed as a bug in titanium. Is there a guide on how to submit this?
Tableview - modal transition error
Hi, I'm implementing an RSS reader with a tableView. Clikking a row open (modal transition) a new window with a browserView pointing at the RSS row's url. When closing it come back to table view. But, if I click again in a row the App crash: ~~~ [DEBUG]...
Tabs bottom on Android using Views
Hi, I tried to simulate for Android a tab group bottom with views after Comunity app model (TabStripView). Here I have a problem, I don't know what is the best practice to keep tabs (built with views) in all pages. I have 3 tabs. For these I built 3...
Internationalization in ButtonBar labels using Alloy
Hello. I have a Map View with a ButtonBar at the bottom. I need the text of the labels in the ButtonBar to change according to the language of the phone. In order to achieve this I use internationalization. But I get an error everytime I run my code. I'm...
removeAllChildren not working on View
Using SDK 3.1.0GA on OSX with xcode 4.6.2 for iOS. removeAllChildren works on a scrollView, but no on a plain View. however, calling remove(child) works just fine. is this something weird with my setup or others noticed too?
how to add an image from k.js to p.xml from in alloy mobile app
hi friends i am new to develop an in alloy mobile application in titanium studio i had an issue like i want to add an view from k.js to p.xml in my application so plzzzzzzzzzzz help me
Image Converting
Hi, i want to know how can i convert image from png to jpeg using titanium? the source of the image can be camera of photo library
Help! Cant install "Node.ACS"
Hi, I cant install Node.acs. Please help me, here is the output when i try to install via terminal ~~~ shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied node.js:537 var cwd = process.cwd(); ...
HttpClient request Not work for iPhone
Hello Friend, From last coupele of days i stuck in an issue. For my app i need to call an API. I make Http request it works fine for Android and not for iPhone. Here is the code :- ~~~ var addrReq =...
Creating a jigsaw game with Titanium. Any tips?
Any tips for creating a simple iOS puzzle game? What about drag and drop? Any open logic or code?
Count hasCheck in multiselect(tableview).
Im having a problem with the counting of how many hasChecks are "true" in a multiselect(tableview). I need to limit the amount of options selected. Code: ~~~ var mSelOpts = Ti.UI.createTableView({ ...
How do I add a ti.paint PaintView in Alloy?
I've tried the below but am getting an error: 'Couldn't find variable: ti at index.js' Controller: ~~~ var paint = require('ti.paint'); ~~~ View: ~~~ <Alloy> <Window> <PaintView ns="ti.paint"...
Prohibit TableViewSection Repeats on Alloy DataBinding
Hi there- I have what I believe should be a simple question. I am doing a databind to a REST collection. The query works as expected, I receive my results, and the results print to my TableViewRows. I have my rows within a TableViewSection for grouping...
exitOnClose doesnt work with onAndroid:back
My first and main window: contains a ScrollableView. ~~~ <Alloy> <Window id="mainWindow" backgroundColor="black" height="100%" layout="vertical" exitOnClose="true"...
how to access a variable from one js to another js
hi friends i am new to titanium mobile development i had an issue like i want to access a variable of one js from remaining js files so any one plzzzzzzzzzzzzzzzz kindly help me
Titanium SDK 3.0.2 compatiblity Matrix
Hi everybody i would like to know the compatibility of titanium sdk 3.0.2 is it compatible with android SDK 4.2.2 ? and what is the Max Android/SDK Version that the Titanium SDK 3.0.2 supports thanks
Geolocation - Check if user is in circle
I'm working on a Titanium Project and need to check on a map if the current location is in the circle / radius of an annotation. When this state is true my app has to fire an event. I'm looking for a solution something similar to this:...
how to get server data from database to tableview
~~~ Ti.UI.setBackgroundColor('#fff'); var win=Ti.UI.createWindow({ backgroundColor:'#fff' }); var data=[]; var xhr=Ti.Network.createHTTPClient(); var url='http://example.com'; xhr.onload=function(){ var...
Global object
My intern developed an Titanium Android App and created an global object within the Ti.App namespace like this: Ti.App.ObjectName.function This seemed to work in Android but on iOS it doesn't work when called from a different Window, the...
How to just put two buttons in window with Alloy?
~~~ <Alloy> <Window class="container"> <Button id="button1" onClick="startA">Start A</Button> <Button id="button2" onClick="startB">Start bla bla...
close button on facebook button
Hi, I have a problem, close button on facebook popup doesn't fire any event. is it a bug ? iam display transparent (width opacity 0.5) view behind the popup and when i close facebook, it should disapear.. im using sdk 3.1 my code : ~~~~~ var fb =...
Open website QR in a webView
Hi! I need (again) help. I'm using the Scandit module to scan QR codes. It works well, but when you scan a QR code only open an alert: Alert success (QR): http://www.google.com OK And what I want is to open the url in a browser. I tried this, but the...
ShowCamera weird last picture display
I dont know if it happens to somebody, when I run my app to android (xperia z tobe exact). The ShowCamera, it does not take picture and save it properly, instead it takes the last picture from my album(gallery) and save it as the new image...
TableView and Table View Row
HI i'm trying to add row to table using for loop but it is not happening find the below code ~~~ var tabelarray = []; //alert('Sorry, we could not upload your photo! Please try again.'); var table = Ti.UI.createTableView({ backgroundColor...
Multi Page tif-Image - display in Titanium?
Hey, i wanna display a multi-page tif file in my application, but webview only shows me one page of the tif-file. Any idea how to show the other Pages? My current thoughts are around splitting it up before, or some image transformation - don't know if...
It's posible to create a view with rounded corners and anti-alias?
new ui.View({ height:40, backgroundColor: '#D66D32' borderRadius:20, borderWidth:2, ... }); It's posible to have the rounded corners anti-alias?
error integrating admob in iphone
~~~ var Admob = require('ti.admob'); var win = Ti.UI.createWindow({ backgroundColor: 'white' }); var ad; ad = Admob.createView({ top: 0, left: 0, width: 320, height: 50, publisherId: "a150644f9f71b76"}); // You can get your own at http:...
Printing support on Android?
I'm wondering if anyone has actually gotten printing to work on Android with Titanium? I've gotten as far as creating an intent, starting the activity and thus opening the app for printing (HP ePrint using the org.androidprinting.intent.action.PRINT...
Creating a Custom Dialog.
i want a design the custom alert Dialog with custom images and custom Button . any body who can guide me because i havent found any success yet. Thanks:)
'swipe' of tableview fired, but row/index properties are missing
os:mac os platform:android sdk:3.0.2.GA `swipe` is fired, but properties as `e.row`,`e.index` are missing in the event. but in the document, it says `swipe` event of the tableview has row/index...
i18n - Android - Multiple xml files
Hello, My app use 2 languages EN/FR. I splited the strings.xml file multiple files. It works great on iOS but fails on Android 4.2.2, Ti SDK 3.0.2 GA. Is it possible to split the strings.xml file into multiple files on Android ? Thanks.
Facebook Single Sign On with FB app installed on device give white screen
I'm trying to implement the Facebook module in a Titanium Alloy project to allow users to share content. When I authorize on a device where the facebook app is installed, it opens the facebook app, but then it gives the following white screen and nothing...
Photo Gallery
Hi, i am trying to get image from the photo Gallery, it's works sometimes and it crash on some device.. this is the code that i am using: ~~~ Titanium.Media.openPhotoGallery({ allowEditing: true, mediaTypes : [Ti.Media.MEDIA_TYPE_PHOTO], success...
TI is not defined
I run my very simple app, and I in the android emulator I get Runtime Error Location: [4,1] app.js Message: Uncaught ReferenceError: TI is not defined The app.js is // this sets the background color of the master UIView (when there are no windows/tab...
Titanium SDK 3.1.0 [ERROR] TypeError: argument of type 'NoneType' is not iterable on building android app
Hi, I´m trying to run an android app with Alloy framework and got this error: ~~~ [TRACE] Writing out AndroidManifest.xml [ERROR] Exception occured while building Android project: [ERROR] Traceback (most recent call last): [ERROR] File...
OCR Module
Hi I am trying to build an OCR application with Titanium. Are there OCR modules out there that I can try or buy? I would need an engine type; not a cloud or web service based type. Thank you very much!
What are the calendar control
What are the calendar control