Community Questions & Answers

commonjs approach not working

Hi all, I am making custom able view rows based on the JSON returned . In the rows i need to show the distance between the user and the restaurants which we get in the json. I am using commonjs approach as the Ti.geolocation is asynchronous .But my code...

sql.isValidRow

Hello Develop this code but to get to this window, if I have no records in the database shows me an error "no such table" review the documentation but did not find anything to help me, as someone else thinks you're doing these funny...

gcm module making question

i'm trying to make GCM module, using https://github.com/Kuraturpa/titanium-c2dm but i'm confused with this. //android java <- this working with eclipse ~~~ GCMRegistrar.checkManifest(this); ~~~ //titanium ~~~ GCMRegistrar.checkManifest(?); ~~~ i'm...

Need help with callback

Ok, I need a little help understanding the callback, my code only seems to execute the callback then stops. let me explain. I have a function (pretty straight forward) ~~~ bs.core.FacebookDialog = function() { Ti.Facebook.addEventListener('login',...

adjust screen

Hello As I can make my app fits all screens of android devices. thanks regards

tableview,searchbar and headers

Hi, in my android app i have a tableview with alphabetical headers, my problem is that when the user types a letter in the searchbar alle the headers of the tableview remains visible, i want that only the headers of my search results rows are visibles how...

create slider with value causes app to blow up

I have existing code that worked on 1.8 and am updating to the latest SDK 2.1.0 GA for Android. If I try and set min, max, or value the slider blows up when the window opens. If i remove these values the window opens fine. The problem then is if i move the...

Create table name using a variable

I am trying to create a table in my db with a name dependent on a variable ~~~ var db = Ti.Database.install('areas.sqlite','templates'); Titanium.API.log(currentWin.tableName); db.execute('CREATE TABLE IF NOT EXISTS ? (id INTEGER, area TEXT,...

local image in webview

hi, i have a webview with content, local images. i have this code : ~~~ html = "<html><body><table><tr><td style='background-image: url('" + Ti.Filesystem.resourcesDirectory + 'images/fond_titre_actu.png' +...

Error from Facebook login dialog - try again later...

Today I started implementing the Ti.Facebook module and I did login successfully twice, but when I went to use a new account, i forgot my password and it failed twice and told me to try again later, later has been about 4 hours and I cant figure out what...

Is there a bug in the distribute package compiler ?

Hi, We have an issue while trying to build our app to a ready-to-distribute package (Distribute - Android app store). The dev package works pretty well on device but it trows the following error at run-time with the distribute package : ~~~ Error while...

grafted createhttpclient

Hi everyone I've got a problem with two createHTTPClient() one inside the other. This is my code: ~~~ function get_paesi(){ var loader = Titanium.Network.createHTTPClient(); if (!Titanium.Network.online) { alert("Connect to Internet"); }...

Global Events - Best Practice for Memory

I have a "completed" app and I am now going through and cleaning up code, trying to add needed comments, and possibly conserve memory where I can. I learned I may have been using a bad practice when it comes to global event listeners. Consider...

Image View crashing on create

(developing for iOS using Ti sdk 1.6.2 - only stale version that works with my large .xml) All I am trying to do is create an imageView in my existing scrollview. This imageView is to replace a big table I made programatically. I just dont understand how...

tableView.data not working

Hi, I am facing some issues with tableView. I have a table with data set using `myTable.setData(data)` But when i use `myTable.data` or `myTable.getData()`, no data is returned. I need to use the myTable.data to change the value of some Labels that are...

iPhone - Formulary to add a contact

Hello, I working to find a way to call the native iOS formulary to add a contact on an iPhone with the know field fill in. I have seen the API contacts in Titanium, but it's just add a contact without formulary. I would like to be able to modify all...

register a BroadcastReceiver

I am newbie and dont know much. Can anyone please tell me how to register for BroadcastReceiver using titanium appcelerator ?

Violation of Apple Review Guild 11.13

Thanks for reading my question. Our company has developed an App and would like to submit to Apple Store for review. Our app is a restaurant ordering system and must connect to an internal/inhouse server. So for Apple review team to review and test the...

code for creating my own event firers?

can somebody give me the code for creating a functionality similar to AddEventLitener and remove event listener for my own js classes? I want to define custom events such as refresh or stopped

Centre map on a user's location

I have a map in a tab. I want the map to centre on the user's location when opened. The map opens fine and shows the user's location, but does not centre on it. The `getCurrentPosition` method is being called straight away (on app open), but I would...

contact form

i need a contact form for my app to use reservations, it will like a simple email form. is there any example for this, or templates? thanks

respond to when an activity is closed

If internet is disabled I respond by showing the intent with the action android.settings.WIRELESS_SETTINGS. How do I know when the back button is pressed? or should i rely on the network change event?

contact form

i need a contact form for my app to use reservations, it will like a simple email form. is there any example for this, or templates? thanks

Showing 27,851-27,900 of 62,902 1553 554 555 556 557 558 559 560 561 562 5631259