Community Questions & Answers

animation

Hello Here I have this code ~~~ boton1.addEventListener('click', function() { var matrix1 = Ti.UI.create2DMatrix() matrix1 = matrix1.translate(0,180); var a1 = Ti.UI.createAnimation({ transform : matrix1, duration : 2000, autoreverse :...

Variable JSON parser

Is it possible to do something like that: ~~~ var VARIABLE = blablabla var table = Ti.UI.createTableView(tableViewOptions); var tableData = []; var xhr = Ti.Network.createHTTPClient({ onload: function() { // Ti.API.debug(this.responseText); ...

animation

Hello I need to create four views in an application with a menu at the top and pressing each button reaches the selected view type but with animation slide. thanks

New SDK's break Application - Android

Hi all, Anything higher than 2.0.2 cause problems with Android compile application. Downloads no longer work, calling android activity/intent to open a file no longer works, visual elements are all hosed up too. I think I'm about finished with Titanium....

How to upload an image to server?

I need to upload an image to my server but I know how to do to the php part my titanium's code: ~~~ Titanium.Media.takeScreenshot(function(event) { // tira printscreen var fotoCarta = event.media; var currentTime = new Date(); var hours =...

Android 4.0 Switch Widget

Does anyone know if you can create a switch widget in Android yet? The one I'm referring to is the Switch UI element that was introduced in Android 4.0 (On/Off toggle), similar to the ToggleButton. From what I can tell, Appcelerator has not added support...

Error on building Android Module

I got this error when y try to build my android module: `/Users/MyUser/Library/Application Support/Titanium/mobilesdk/osx/2.1.1.GA/module/android/build.xml:317: exec returned: 2` I had set my Android NDK and my build.properties looks like...

Android Build Error

Hi, I have been building mostly for iOS and have periodically been compiling for Android. The iOS builds have been working fine. The Android builds for 2.2 used to work fine, but are now broken. What changed is that I tried building for ICS and Jelly...

Efectos de movimiento

Hello I wanted to know if Titanium has the ability to handle motion effects by pressing a button, for example, pushed a button and I get a text from right to then be placed in a specific position. I hope comments thanks

Choosen value in picker results in Null.

Hi, I want to store the chosen value of a picker in a small sqlite database later. But when I try to receive the value, it results in Null. It would be even better if I could receive the `custom_item` value but at the moment I can't receive anything. I...

Make web emulator from mobile app

Hi. I am working on a mobile app for iOS and Android. The app works fine but i have a question that i am sure of is stupid so bare with me.... Would it be possible to make an "Online" web based "Emulator" from the code i got for my...

StoreKit

Hi, i used storekit exemple to implement in app purchase in my app. requestProduct() function works well and get me the product price from apple but when i request a buy by the purchaseProduct() function i got an error : message = "-[__NSCFString...

JSS is not working on Android HELP!! :S

in my app.android.jss i have: ~~~ #appceleratorLabel { width: 200; text-align:'right'; color:'#6633FF'; font-size:'20'; } ~~~ in my app.iphone.jss i have: ~~~ #appceleratorLabel { width: 200; text-align:'left'; ...

View.size updating it's values is delayed?

According to this JIRA, there is now the 'size' property of any view type which returns a TiRect (width,height,x,y): http://jira.appcelerator.org/browse/TIMOB-473 The problem is, this size property is for want of a better way of saying it, lazy...

HTML saved into SQLite

Hi I have a JSON feed that returns some HTML and then I'm trying to save that into my SQLite database, but the HTML seems to be causing issues with my code. Can anyone advise how to save HTML into the database, is there an encoding function or something...

Reading an android error

Can anyone else help make sense of this? I get a force-close when launching an app on the android emulator. It doesn't tell me the problem, the file, the location etc. It doesn't seem to tell me anything at all to help figure out whats causing the...

display the good photo in scrollableView

Hi, i have a lot of thumbs in my app. when i click in one thumb, the photo is displayed in fullscreen.. to have the possibility to go the photo after or before. im using a scrollable view. the problem is if the photo has position of 15 for example. all...

why do not I get the nav bar?

I am developing a simple ios app for a local theater. I created the structure with the tab group. In a tab I put all the months of the year with the corresponding button. When you click on the button opens the window with the code that you paste below. I...

TableView, rows and DB

Hey guys, just wondering if anyone could assist me. I've set up a window that takes in data through 3 different text input fields and they are then stored in a single DB and displayed in a tableview in a single row. Does anyone know if / how to only...

Scale Image to fullscreen

Hi guys, M having a weird problem. I am trying to scale an image to fullscreen using the following code: ~~~ var mainView = Ti.UI.createScrollView({ width :'auto', height : 'auto' }); var mvImageView = Titanium.UI.createImageView({ ...

Picker issue

The following code does not work as expected. ~~~ Ti.UI.backgroundColor = 'white'; var win = Ti.UI.createWindow({ exitOnClose: true, layout: 'vertical' }); var picker = Ti.UI.createPicker({ top:50 }); var data =...

Tide SDK Installation

I downloaded tideSDK 1.2.0 RC4 and installed it by selecting install specific titanium sdk, and I also extacted the contents of the .zip file into the ~/.titanium, and in either way I couldn't find the desktop application option on the create new project...

Calling Ti.App.fireEvent from External JS file

Hi In WebView I call Ti.App.fireEvent in an external JS file in a function that itself is a function method. It is not being called if **Ti.App.fireEvent** written in external JS file. It is not being called on onclick either which is defined on a SPAN...

app update for iphone5: screen height still iphone 4

Hi all! I'm updating an app for iPhone 5 compatibility. I want the app to run on full screen height, now that the iphone5 packs a larger screen compared to iphone4 and 4S. When I run the app in the simulator (in iphone 5 mode), there are black bars on...

2,515 views
asked 2 years ago by Joris
last activity 11 months ago

Swipeing rows in a tableview

Hey all, I am working on an app the has a tableview based off the example MasterView, DetailView that appcelerator provides. I am trying to make a swipe event on each individual row that just slides the contents of that row over to the left. There are...

iOS - Formatting TableView with JSON

I have this code that I modified from the sample projects. I have figured out that I can do stuff like "leftImage" and "color" in the JSON and the TableView will be changed accordingly. My question is where can I find a list of the...

Email template when creating users

Hello, I'm creating a mobile application with Titanium (SDK 2.1.3.GA) which is making use of the Appcelerator Cloud Services. In my app, users are being created in ACS. I would like to have the created users having their e-mail address confirmed using the...

Tableview style - remove iOS6 default striped background

Since iOS6, I have never had a issue with the table view striped background displaying as I have always used `backgroundColor : 'transparent',`. Here is my tableview with the grouped style. How can I remove the striped background so it is...

About the error code of Ti.StoreKit-1.6.0

I develop now using Ti.storekit-1.6.0. (TitaniumStudio SDK-2.1.3GA) Description below shows the current my test code ~~~ $btnItem1.addEventListener('click', function(e){ // 250 var product = 'net.oratta.info.0250'; var Storekit =...

how to know if httpSocket returned no result

is there a timeout event or how do you check if the httpSocket worked? I find it that 1/3 of the time I run the app, there is no response coming. In this scenario I want to resend the request, but how do you check that there was no response? Do you use...

Showing 27,901-27,950 of 66,098 1554 555 556 557 558 559 560 561 562 563 5641322