Community Questions & Answers
How to know exactly where we click on a image ?
Hello, I have a image of map of USA's state and I need to know on wich state the person click ? I want to do that on Androïd, iPhone and iPad ? How can I do that ? I was thinking about color... But I don't have any way to do that... Because I'm sur I'll...
Query regarding module.exports error
Hi, im trying to make an app for android making use of a ApplicationTabGroup.js in common folder, as well as another 2 pages for the 2 tabs within the applicationtabgroup.js. All of these 3 pages are in the common folder. I've been getting this...
How to customize the annotation
I have a map and a custom pin for each location. When I click on a pin I get an area pop-up above the pin (title, subtitle). The text in the area is too close to the borders of the area. The questions is how to add some padding/margin around the...
How to pass a data binding into a <Require> component?
Hi all, first time poster here. I'm trying to write a reusable component into which I can pass a bound data element and having problems understanding if this is possible. I'd like to call it something like: ~~~ <Alloy> <Model...
What is the iOS alternative to setBackgroundSelectedColor
Just as the title says it: What is the iOS alternative to setBackgroundSelectedColor
When calling window.close(), close window, not app - iOS Development
Currently, if I do something like this: ~~~ // this is the main window of the app.. aka the root window and cannot be closed. var win = Titanium.UI.currentWindow; //create a window that I want to close, which all elements on this page (views, buttons...
Set background image to textfield with relative positon.
Hi.. I'm trying to give a background image to text field in relative position. I've a login page, I'd like to add a user icon in username field and a lock icon in password field. Just like leftimage in tablerow. Is it possible? Please help me. I'd tried...
Tableview , tableviewrows, code general function all rows
I work in Android hello, I have about 20 rows. longclick in row1, the rigthimage changes to 'xxxxx.png'. (and if I close the aplication is saved). ~~~ var row1 = Ti.UI.createTableViewRow({ title: 'title1',font : { fontSize : '30'} ,data1:'16-05-1968',...
My app is working fine for Android and closes automatically after one second in iphone
In iphone simulator closes automatically. Please help me and tell the possible solution.
android remote image dosent showup
hi, i have a crossApp (IOS , android) and i showing some images remotely from the server it showup on IOS , but never show up on android ( i use imageView and method setImage(URL OF THE IMAGE)) and i tried to set URL from another server or any...
Experience using Titanium4j ?
Hello everybody, We are a team of Java developers and have to write Titanium Applications. Appcelerator only provide a JavaScript API but we came accross Titanium4j (http://emitrom.com/titanium4j) which seems to use Java. Has anyone used this...
TableViewRow with Elements selectedBackgroundColor
Hello guys, i have TableViewRow with Elements my problem is that select from TableView does not. This is my View...
Small WebView in iPad is not rendered properly
Hi, I have created a webview with these properties: ~~~ "#WebLinkDisplayer" :{ top : 0, bottom : 0, width : '50%', disableBounce : true, scalesPageToFit : true, url : 'http://remote.url' } ~~~ Now when I open an URL (it is a remote...
QRcode Scanner Twist
I installed a module for QR code scanner, it works fine. After scan, It gives link and also information about parsed content. After on click on the link, it redirects to a website or the site where pdf's or ebooks could be downloaded. But if I want to...
tabbed bar in a table row is not working in alloy
Hi, In my view file I added code like this. <Alloy> <Collection src="feed" /> <Window layout="horizontal" id ="feedback"> <View class="container"> <TableView...
Open Two Instances of a Local URL in WebView with Different Contexts
Hi I'm using a Javascript charting library in my Alloy app and I've set up a reusable HTML file which will display different charts depending on the parameters sent to it. This works fine as a single instance but I'm now trying to add two WebViews...
Scrollable view inside a scroll view
the code is working fine in emulator but I run the app in device its not working.any suggestion pls ~~~ Ti.UI.setBackgroundColor('#fff'); var win=Ti.UI.createWindow({ modal:true, backgroundColor:'#fff', title:'Assessment' }); var...
Launch image in Xcode using default instead of new one
I have an app that is just updated from 2.1.4 to 3.0.0. When i build it to my iPhone, and I check the Xcode, the launch image is using the default titanium instead of using the new launch image that I provide. The naming is correct so I don't understand...
Problems handling ipad/iphone versions - uploading to app store
Hey, i hope there is any way to solve this: Situation: I've uploaded an app (ipad/iphone) to the appstore. Problem: The ipad isn't really regarded by my app, so everything looks a bit creepy and so on ... I wanna achieve (for the time i am setting up the...
Image sharing on twitter
I am trying to share image on twitter using social.js, with Twitter rest api 1.1 but unable. I get an error saying with message saying 'Bad Authentication data' and error code 215. If anybody has done some such thing, his/her suggestions are required.
Performance problem
Hi, i'm working in an application for Android and when i test it in emulator or in the Android device the change of windows is slow and i dont now if is because is a developer version and when i build the final version the application speed is better, or a...
my application crashes when installed on a motorola razor
Hello everyone when I try to install my app on a Motorola Razor model XT910 (Android 4.0.4) the application crashes. The log is throwing: ~~~ D/00:08:08.724 GC_CONCURRENT freed 1068K, 11% free 9908K/11043K, paused 84ms+7ms D/00:07:37.044 No JNI_OnLoad...
Android alerts not working
Building a mobile app and running into issues running some confirm / alert dialogs when trying to register for push on android. My dialog boxes are not appearing in the simulator at all. The below code should run at start up(along with a gps location (yes,...
TableView scrollToIndex doesn't show entire row
- **Application Type:** mobile - **Titanium SDK:** 3.1.1.GA - **Platform & Version:** iOS 6.1 - **Device:** iOS Simulator - **Host Operating System:** OSX 10.8.3 - **Titanium Studio:** 3.1.1.201306112235 I'm using the scrollToIndex method to scroll a...
Tab Application issue in iOS
Hello everyone, I am building an App for both Android and iOS. for android everything is working fine but in iOS I am having weird issue. I have a main_screen.js which open directly from app.js. my main_screen.js have 4 buttons which open respective tab...
Studio 3.1.1 Default Display Size
Is it just me or does setting the default display size in Studio 3.1.1 make no difference? I always get the non-retina version of the simulator. And the "Run" and "Debug" are back to the 3.0 arrangement in App Explorer view. Really?
Enabling Native Apps To Open File In Titanium App
Many native apps have the ability to open a file they have in another app. For example, if you have a pdf saved in iBooks it offers you the ability to open that file in another app, such as the generic mail app. How do I enable it such that, for example a...
to remove app name on the top
Hi iam getting my app name in a grey color bar on the top of my app in te child windws, how can i hide it. Thanks.
Creating an Android module project
I've noticed that the file/folder structure and contents of an Android module project folder is different depending on whether it's created from the command line or within the IDE. Any one else notice this or can tell me why this is the case? Thank you.
android amulator 7in doesn't work
android amulator 7in doesn't work hegive me this message ~~~ [INFO] : Emulator process exited successfully [INFO] : Project built successfully in 13s 517ms [INFO] : Emulator not running, exiting... ~~~
error using internationalization
hello titanium community, I'm beginner using titanium and I'm following the guide for develop mobile apps using titanium. In the part of internationalization there is a exercise and I got this error: [ERROR] Exception occured while building Android...
offline map and leaflet
Hi i' m just starting with titanium and would like to do a test app that need an offline map with markers, i'm using latest SDK and is for ios and android. I found this article but it doesn't bundle a complete example, i tried to get all peaces together...
How can I manipulate text of row 3 in a tableview?
Say I have a tableview with 10 rows, and inside each row are two labels (labelA and labelB). If I wanted to change the text of labelB in row 3, what would be the call to do that? Thanks!!
Mobile app install ads
Hi, one of our customer asked to use Facebook's ads, the guide he sent us says "Include the following code to be executed when your app opens for the first time by the user. This will allow the app to ping back the install event to Facebook when the...
Cannot find app.js in App Explorer
Hi. I'm new to using Titanium, and the initial README file tells me that to begin editing my app (targeted to Android), I should edit app.js. I tried finding app.js through the App Explorer pane, but I couldn't find it. Eventually, I did a search through...
Defining an array within a 'for' loop?
Hey all, I'm new to JavaScript and I'm having trouble understanding this sample code for a Q&A mobile app. The following code is for the question page of the mobile app: for(var i = 0; i < question['answers'].length; i++){ var answer =...
Image visible= false/true savedata
I work in Android. I have a button. When I press the button the image changes from visible / not visible. I can save the configuration as (visible / not visible)? (if I close the application I want to be saved) I have worked with sqlite databse, but do...
Record Sound Not Working on Simulator or Device
Below is a snippet of code from my app. Most of which was taken directly from Kitchen Sink. I have tried multiple different solutions but nothing seems to be working. It does not work on the Simulator or a Device. What am I missing. The Kitchen Sink does...
Module iOS call internal functions
Hi, I have the following code in Titanium: var m_fingerprinting = require('com.tveo.fingerprinting'); m_fingerprinting.startlisten; This code call to function in Objetive-C in this code: -(NSString*)startlisten { NSLog(@"[FINGERPRINTING]...
voice search is not working..
hello everyone i got big problem in my emulator..actually i m developing one application which has faciality of speech to text and text to speech ..after doing lots of google search i have found the way to enable that in my emulator ...that is...
BB10 Titanium Studio Error (File or dir does not exist blackberry/In)
I have updated to the new Titanium Studio and I have problems deploying to BB10 devices. There are not problems deploying to BB10 Simulator or deploying with Momentics: - Titanium SDK 3.1.1GA (Mac Lion) - BB10 Device ~~~ [Command] :source...
Using MicroStrategy with Titanium in module ?
Is it possible to use 3rd party library (Micro-strategy mobile sdk for ios ) in module ? Has any body have got luck to achieve the same? If yes do explain how to use it with Titanium IOS Module.
How to set hardware accelerated to true for a window - Android
I need to set hardware accelerated to true for a particular window(activity) not for entire application. Requirement: To play video in webview in android it is required to set hardwareAccelerated to true. But by setting this in application borderRadius...
JSON, Scrollable and Ti.Draggable
Hi, I am trying to make my views (images from a JSON file) in a ScrollableView drag from within the window into a view that is also in that window. I know how that would work but i am having trouble trying to get the event listeners like 'start' and 'end'...
Table view lazy loading not quite working properly
Hi, Running SDK 3.1, Android 2.3+ Hopefully I'm missing something obvious, but I don't see it, so please help!! I have three screens in my app that load remote images to display in a table view. One is working just fine, the other two are behaving...
Camera Functionality for IOS & Android
Titanium.Media.showCamera({ success:function(event) { // called when media returned from the camera Ti.API.debug('Our type was: '+event.mediaType); if(event.mediaType == Ti.Media.MEDIA_TYPE_PHOTO) { var...
Camera Functionality for IOS & Android
if (Ti.Platform.osname === 'iphone' || Ti.Platform.osname === 'ipad') { var win = Ti.UI.createWindow(); var recordVideoButton = Titanium.UI.createButton({title: 'Record A Video', bottom: 3, height: 30}); var recordVideo = function(){ ...
Facebook liking by og:likes
Hi, on [facebook site](https://developers.facebook.com/docs/opengraph/guides/og.likes/) I found a hint to like a website by [og:likes](https://developers.facebook.com/docs/opengraph/guides/og.likes/). How can I use with the new facebook module? Rainer
Titanium deletes the images while compiling.
Hi.. Titanium encounters a problem in adding images to default image folder in Resources. When I add new image to this folder, Titanium automatically deletes the image on compiling the app. Same problem is there when I tried to delete an image from the...
Is it possible to merge/record two audio files with Titanium SDK?
Hi everyone, I have a few questions about Audio recording with Titanium. I'd like to build an app that can record audio (via the microphone). During this recording, I'd like to play in the same time an audio sound. Is that possible? I also would like to...