Community Questions & Answers

Android not using it's tss file

Titanium 3.2.3 Android 4.4 Mac 10.9.3 inside app/styles/ are my styles for iphone. and inside app/styles/android/ are my styles for android. This is what the docs said styles and other elements should be laid out. Problem is when run on device, android...

ACS - Using Session_id after login

~~~ Cloud.Objects.create({ classname: 'myObj', session_id: currentUser.session_id, ~~~ `session_id` here is being passed (after login & storing the session id, then close the app), reopened the App into a loggedin state, though I keep...

Android animation

Hello friends, I have a question since I am trying animations and want to make a little more advanced animations equal to flip card, fading, etc.. But Android can not find anything in the official documentation Titanium android if this but not if there is...

Android tab text color?

Is it possible yet to change the text color of android tabs in a tab group? Right now, the tabs are black and the text is black, which makes them all unreadable, obviously. :-(

Android app Crash On Resume

Hello, I have a strange problem. My app works fine, the problem is when the app goes into background and you browse different app and resume back to my app it just shows blank screen(App crashes). Steps : 1- Open my app 2 - Brows app 3 - Bring app to...

Chart for Android

Titanium v 3.2.3 Android 4.4 I have created a chart using chartjs. This works fine on iphone but doesn't display on android. I have applied the workaround with chromium by setting borderRadius to greater than 0. Now, I have different error message in...

Variable in AddEventListener

Hi guys, I got a quick and newbie question on variables in javascript I was wondering is it possible to get the updated value in a whenever I scroll the scrollView? Many thanks! Code example: ~~~ var a =...

function return boolean

i wish that a function can return an boolean. But i get only " { } ". This function is in a file in the forlder "lib". Thanks :) code: ~~~ function searchDb(titleSearch){ var result = false; var db =...

Did someone have seen this?

This is a really strange behavior from Titanium.UI.ListView. Copy and paste this code below in your app.js file and take a look. 1. Swipte one of the first items to the left. 2. Scroll down and you will see there are other witch was swiped as well. 3. I...

Alloy SQLite DB

Hello, I am just trying to select only one field from table. Below code works and it returns whole row. ~~~ var subscribers = Alloy.Collections.subscriber; subscribers.fetch({query:'SELECT * from subscriber where id="' + args.id +...

html5 offline app feature and WebView

I want to build such app in which webview loads local index.html and resources which this index.html uses like css,js are fetched from remote server.Now I want to leverage html5 offline application feature.How can I do? For details. I try loading remote...

Sample of Alloy custom condition

The official doc: http://docs.appcelerator.com/titanium/3.0/#!/guide/Alloy_XML_Markup-section-35621528_AlloyXMLMarkup-ConditionalCode mentions that we could use custom "if" attribute to conditionally display UI element based on global...

Badge icon in tab is not changing

Hi everyone!, hope someone could help me, I've the following problem with Alloy: I'm trying to refresh my badge counter for a tab_2 when an element is clicked in tab_1. app/controllers/tab_1.js ~~~ $.myElement.addEventListener('click', function() { ...

Could someone please tell me what this icon is?

https://www.dropbox.com/s/hbl25qdtexn0wql/Screenshot%202014-07-16%2017.11.50.png I am trying to import a mobile classic project and it does not show up as a mobile app, also if I create a mobile app, delete the content and paste in the project it will...

Multiple Buttons in Listview Template

Hello, How can i add multiple Buttons on ListView Template and add an eventhandler? So far i got this. But i get an empty list with no buttons. ~~~ _.each(results, function(result, id){ var resultSection = Ti.UI.createListSection({ headerTitle:...

Problem with getting data from array

Hi, I have some code which creates a Table View Row for the data in an array. The code works fine up until the event listener. I create a variable stringTitle which is suppose to get the "title" data from each row and the value goes into the...

App Inactivty Timeout Doesn't Persist

I have a timeout function that forces a user back to the login screen after inactivity for a certain amount of time: ~~~ function resetTimeout() { if (typeof (Alloy.Globals.timeout) != "undefined")...

XHR - POST not GET

Does anyone happen to know why the XHR object converts a GET to POST on IOS when data is passed in the send method? It's not even consistent and fubar on android. FFS!

Help Needed with ImageViews on Android

Hi Everybody, I'm new to appcelerator and mobile develeopment and really could use some help with an imageview issue I'm having. I have an imageview that works fine under IOS but I get a "Could not stream bitmap" error under android. Here's...

Showing 251-300 of 62,260 1 2 3 4 5 6 7 8 9 10 111246