Community Questions & Answers

How to parse XML on mobile web

Hello, I need to parse an .xml file. I tried it using following code. On Android/iPhone works just fine, but when I try it on a mobile web it doesn't work. I'm getting a parse error and Titanium.XML.Document is empty... How can I parse the .xml file to...

alloy buttonGrid calling custom widget

Titanium SDK version 3.1.0.GA Mac OSX 10.7 Trying to perform a simple test to call a custom widget from a button on the buttonGrid widget. The login widget works because I tested it separately. ~~~ } id : 'login', title :...

Nine-patch image can't work

Android API: 4.1 x86 Titanium SDK: 3.1.0GA View: ~~~ <Button id="testBtn"/> ~~~ Tss: ~~~ "#testBtn": { backgroundImage: '/images/custom-slider-right.png', backgroundSelectedImage:'/images/custom-slider-left.png', ...

startActivity in android titanium module?

Hi, today i try to start activity in module using: ~~~ Intent i = new Intent(); i.setClassName("com.test.module", "com.test.module.myActivity"); this.getTiContext().getRootActivity.startActivity(i); ~~~ But the problem is: ~~~ Message:...

Add inner shadow to a textarea

I tried the following to add a inner shadow to a textarea. But couldn't add the shadow. fieldObject = Ti.UI.createTextArea({ height : '100dp', width : '250dp', top : '10dp', color : '#222', //borderWidth : '3dp', borderColor :...

Missing Java sdk

I am new to Titanium. I am trying to run a sample application. But i am facing "Missing Java SDK. Please make sure Java SDK is on your PATH" error.. I have set the path using this link...

Ti2DMatrix in a different context

I get this warning when using Ti2DMatrix: ~~~ [WARN] Creating [object Ti2DMatrix] in a different context than the calling function. ~~~ I think it's because i use url to create a window, and sends the Ti2DMatix as a parameter when creating the window. Is...

Socket connection timeout

Hi Need to open the cash draw via TCP/IP call. I can successfully telnet to open the draw from the terminal. I am however unable to connect to the it via Titanium socket. What could be the reasons? Code snippet ~~~ var socket =...

Symblic Links for 3.1.0 GA

I have 2 projects one for Company A and one for Company B. I'm also using git for my source control hosting. These 2 projects are about 98% the same code with some assets changed for each company. I'm trying to use symbolic links on the file system to...

Buffering next song in playlist

Hi all, question for people who do music streaming... I have a project that has a playlist of songs, and I need to be able to buffer part of the next song in a playlist, so when the current one ends, it can go to the buffered version. Then while its...

Titanium Graph with SQLite Values..??

HI developers very Good Noon, I'm facing some issues with Titanium graph plugin.. And How to plot graph with sqlite database values as already saved in my app. Please let me know dev's i'm waiting for ur help now.. Thanks in advance... SuthanM.

PayPay and Remote Views

We have created a paypal page on the server, and if it succeeds goes to a success page, and if canceled goes to the cancel page. This page is loaded in a webview. So I added this code: ~~~ echo "<html><head><script>function...

Overriding alloy generate

Hey all, I've scoured the docs, google groups, the internets, and this forum for an answer to this but can't seem to find anyone who's even asked the question before... Is there a way to use templates while calling alloy generate? I see that you can...

ListView: Swipe event not working

I want to use swipe event of listview with Titanium 3.1 SDK. But it is not working. Even touchstart, touchend etc. are not working. I wrote like: listView.addEventListener('swipe', function(e){ alert('swipe called); }); Can somebody suggest the...

Showing 51-100 of 8,623 1 2 3 4 5 6 7173