Community Questions & Answers

XML

Hi, i have a problem with parseString i get the following error : TypeError : cannot call method "parseString" of undefined. I just have a XML file, look at this : var setupXml = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory +...

Can you build an ipad and iphone app at the same time

Hi, I'm a bit confused why there's an ipad option separate to mobile, does this mean you can only create an iphone app and ipad app separately? Opften newer ipad apps in the store are able to work on both and are able to simply tweak layout for each. Is...

Local xml parsing

Hello Sir, In my Home Screen I have start button when i start button is pressed i handled these actions to parse the local xml values the following codings are attached: var f =...

Create views to mimic the tabGroup

Hey forum, I was wondering if anyone knows how to create views to mimic a tabgroup at the bottom. I want to keep the look but change the background colour and after some searching it seems that I can only do that by creating views and customizing...

Global static variables

On startup my application loads some constants from a remote server and keeps them in memory for use by other classes. In Java, I would have static variables in a certain class and access these static variables from any point within the app. How can I...

style property on a button

Hey guys I am trying to use the right nav button and settings its style. ~~~ var playerBtn = Ti.UI.createButton({ style:Titanium.UI.iPhone.SystemButton.PLAY }); win.setRightNavButton(playerBtn); ~~~ I can see the button, but the play icon isn't showing...

Packaging Error Titanium 1.2.2

I keep having a problem when building an app for distribution. I keep getting a packaging error, with a very long list in an alert. I have tired several different things to fix this. I uninstalled titanium, Xcode and reinstalled. Cleared out the build...

try/catch/finally

~~~ try { var x = Titanium.Network.createTCPSocket({..}); } catch(e) { alert(e); } ~~~ Your framework for exception handling is incorrect, e should not be a string, should be an object where e.message is the string.

Video Player error

I took an example from Q&A in order to get familiar with how to use the Video Player. I'm getting the following error. If anyone can point me towards the resolution, it would be greatly appreciated. Code snippet follows the error message. I'm on...

Application load event?

Is there an event listener that will detect when the application launches? For example, I have this in my app.js app.addEventListener('load', function () { showHome(); }); However, this event fires when images are loaded, and I only want it to...

passing variables

hi, i have tableViewRows and when i click. i want to pass variables to the second window.. i have this but it is not working 1st window : ~~~ var articleView = Ti.UI.createView({ left : 0 }); var imageArticleView =...

Titanium Mobile won't "save changes" for app icon filename?

I'm trying to change the app icon file name on my project in the "Edit" tab of Titanium mobile. Each time I click "Save Changes" on the project details, click on another project, then come back to my original, the app icon file name is...

746 views
asked 2 years ago by T.J. Mahaffey
last activity 2 years ago

cannot put image on the left in tableViewRow

hi, here is my code : ~~~ var articleView = Ti.UI.createView({ left : 0 }); var imageArticleView = Ti.UI.createImageView({ image : imageArticle, left: 0 }); var titreArticleView = Ti.UI.createLabel({ text : titreArticle, left :...

Picker window is behind current window

I have a tabgroup and a window in front of the tab group. I've added a regular picker to the window. When I click on the picker to change the value, the options open behind the window so you can't see it. If I close the window and go back to the tab...

Very basic session handling

I perform various Ajax requests with the app and PHP server. I want to simply: (1) get and store the session cookie created in PHP (get and store it in the app). (2) then send it to PHP (from the app) whenever needed. I can't find advice on this anywhere.

Advantages of Ti.Geolocation.forwardGeocoder?

Hi, I'm currently using `Titanium.Geolocation.forwardGeocoder` to translate addresses to lat/lng. The limitation of this not working for zipcodes is causing me headaches. If I switch to another API is there anything I'm losing (e.g. performance?). I'm...

WebView touch events

Are there any known limitations on WebView touch events? Or specifically on WebView touch events on the iPhone simulator? For instance, in a 'touchstart' event handler in the WebView's Javascript (which does get successfully called on the start of a...

Play Audio in background Android

Hello. I am working in a music player application where I need to play to audio from url inside the application . Using createAudioPlayer I played the music.But I could play it in the musicPlayer.js alone. When I navigate back to previous page, the music...

iTunes App Store data sets

Hi guys, We've just made fresh App Store data sets. If you want some, plese go to [www.datasets.biz](http://www.datasets.biz/products). We develop Ti apps too and use our data sets for market research mostly. Code strong.

Problem after Upgrade for iOS 4.3

After, i have upgrade Xcode and iOS i can't compile the app to run on my phone, appears that Result: -------- [BEROR]CodeSign error: The entitlements file '/Users/andre/Documents/Mobile/Troller/build/iphone/ Resources/Entitlements.plist' is...

App won't work twice in a row

Hi ! I have a TabGroup on Android and one of this tab shows a map with several annotations. It works great. But if I close the application, relaunch and come back to the map tab, it crashes. Here is the logCat output : http://pastebin.com/VkHji8j7 Any...

Create a window using python

I am trying to create a python function that will create a window at the moment i have ~~~ from Tkinter import * def confirm (message): root = Tk() root.title='' root.geometry=("200x200") ~~~ which throws " 'module' object has no...

Advertising

Has anyone successfully integrated their iphone AND Android app with an ad network using Titanium? All experiences appreciated.

Add a button to a map Annotation popup

Hi ! When you click on an Annotation on a map, you have a small rectangle displaying title and subtitle. How can I customize this rectangle ? I would like to add a button ot it that would open a new activity with data relative to this annotation. Thanks

Append Section to Table

####Problem: Is there a way to append a section to a table? You can do myTable.appendRow(row), but it appears to fail if you add a section element, that is, a TableViewSection. Is there such thing as an appendSection() method? ####Example: Ultimately what...

MapView Freeze if moved while adding annotations

Hi ! I am trying to show 135 annotations on my map (not all displayed at once when first screen is displayed). Coords are coming from JSON web service. The thing is that if I move the map while it is adding annotations, it will freeze for a dozen seconds...

Apple approval time..

Has anyone noticed a huge delay in approval these days?!.. earlier they used to come back within single digit days.. not anymore. Wat's goin on!? Updated: Thanks all.. it appears @8 business days is what I should expect. I will wait. Appreciate the info.

Mark point on an image

Hello I have a floor plan of a certain location. Now I would like a place to be highlighted, or draw a flag or something (with an image or whatever) when you choose a place. So for example I have room 1, 2 and 3. When I choose room 1 it gets...

Showing 35,351-35,400 of 47,663 1703 704 705 706 707 708 709 710 711 712 713954