<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
> 
<channel>
	<title>Appcelerator Developer Center Q&amp;A Tag Feed (titanium)</title> 
	<atom:link href="http://developer.appcelerator.com/questions/feed/tag/titanium" rel="self" type="application/rss+xml" /> 
	<link>http://developer.appcelerator.com/questions/feed/tag/titanium</link> 
	<description>Appcelerator Developer Center Q&amp;A feed for the tag: "titanium"</description> 
	<lastBuildDate>Mon, 20 May 2013 01:45:14 -0700</lastBuildDate> 
	<pubDate>Mon, 20 May 2013 01:45:14 -0700</pubDate>
	<copyright>Copyright (c) 2008-2013 by Appcelerator Inc.</copyright>
	<webMaster>info@appcelerator.com</webMaster>
	<generator>Appcelerator Developer Center</generator>
	<ttl>5</ttl>
	<language>en</language>
	<item>
		<title>Save error log in a file</title> 
		<link>http://developer.appcelerator.com/question/152601/save-error-log-in-a-file</link>
		<pubDate>Mon, 20 May 2013 01:22:33 -0700</pubDate>
		<dc:creator>Dev .</dc:creator> 
				<category><![CDATA[error]]></category> 
				<category><![CDATA[titanium]]></category> 
				<category><![CDATA[filesystem]]></category> 
				<category><![CDATA[error log]]></category> 
				<category><![CDATA[alloy]]></category> 
				<guid isPermaLink="true">http://developer.appcelerator.com/question/152601/save-error-log-in-a-file</guid>
		<description><![CDATA[How to save error logs in an external file ?...

Thanks]]></description>
		<content:encoded><![CDATA[<p>How to save error logs in an external file ?...</p>

<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>how to trim var in titanium store into separate variables</title> 
		<link>http://developer.appcelerator.com/question/152580/how-to-trim-var-in-titanium-store-into-separate-variables</link>
		<pubDate>Sun, 19 May 2013 13:11:33 -0700</pubDate>
		<dc:creator>kiran arishanapalli</dc:creator> 
				<category><![CDATA[javascript]]></category> 
				<category><![CDATA[titanium]]></category> 
				<category><![CDATA[alloy]]></category> 
				<guid isPermaLink="true">http://developer.appcelerator.com/question/152580/how-to-trim-var-in-titanium-store-into-separate-variables</guid>
		<description><![CDATA[how to trim var in titanium and get value into separate variables`var string1,token1;`

`{
name = John;
token = John1234;
}`

@thanks in advance]]></description>
		<content:encoded><![CDATA[<p>how to trim var in titanium and get value into separate variables<code class="codeblock codeblock-inline">var string1,token1;</code></p>

<p><code class="codeblock codeblock-inline">{
name = John;
token = John1234;
}</code></p>

<p>@thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>[Mac OS X] Can't install Titanium CLI &amp; Alloy - Invalid Password</title> 
		<link>http://developer.appcelerator.com/question/145775/mac-os-x-cant-install-titanium-cli--alloy---invalid-password</link>
		<pubDate>Sat, 15 Dec 2012 03:42:38 -0800</pubDate>
		<dc:creator>Baris Sencan</dc:creator> 
				<category><![CDATA[mac]]></category> 
				<category><![CDATA[update]]></category> 
				<category><![CDATA[titanium]]></category> 
				<category><![CDATA[osx]]></category> 
				<category><![CDATA[titanium studio]]></category> 
				<guid isPermaLink="true">http://developer.appcelerator.com/question/145775/mac-os-x-cant-install-titanium-cli--alloy---invalid-password</guid>
		<description><![CDATA[I just updated Titanium Studio and Titanium SDK to the latest version. A Titanium Update window pops up when I open Titanium Studio and asks me to install Titanium CLI and Alloy. When I press the install button a dialog pops up that says &quot;Titanium wants to make changes. Provide your password to allow installation&quot; which doesn't look like the native permission request dialog at all. I enter my password anyway and even though I am 100% sure that it is correct Titanium tells me that my password is incorrect and I have to enter it again.]]></description>
		<content:encoded><![CDATA[<p>I just updated Titanium Studio and Titanium SDK to the latest version. A Titanium Update window pops up when I open Titanium Studio and asks me to install Titanium CLI and Alloy. When I press the install button a dialog pops up that says &quot;Titanium wants to make changes. Provide your password to allow installation&quot; which doesn't look like the native permission request dialog at all. I enter my password anyway and even though I am 100% sure that it is correct Titanium tells me that my password is incorrect and I have to enter it again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Problem with upload a database!</title> 
		<link>http://developer.appcelerator.com/question/152559/problem-with-upload-a-database</link>
		<pubDate>Sat, 18 May 2013 13:10:52 -0700</pubDate>
		<dc:creator>Giuseppe Balzano</dc:creator> 
				<category><![CDATA[android]]></category> 
				<category><![CDATA[database]]></category> 
				<category><![CDATA[titanium]]></category> 
				<guid isPermaLink="true">http://developer.appcelerator.com/question/152559/problem-with-upload-a-database</guid>
		<description><![CDATA[- Titanium SDK: 3.1.0.GA
- Android Runtime: V8
- Target: Android 
- O.S: Windows 7

Hi, i want upload a string into my database that is in the folder resources/data, unfortunately it doesn't work, any suggestions? 


~~~
var win = Ti.UI.createWindow();

var db = Titanium.Database.install('/data/surveys_data.db');


db.execute('INSERT INTO Survey (Value1) VALUES(?)', 'Il signore degli anelli');
var sql = db.execute('SELECT Value1 from Survey');

var name = sql.fieldByName('Value1');
alert(name);


win.open();
~~~

Table of database: Survey 
Row into Survey: Value 1


Thanks]]></description>
		<content:encoded><![CDATA[<ul>
<li>Titanium SDK: 3.1.0.GA</li>
<li>Android Runtime: V8</li>
<li>Target: Android </li>
<li>O.S: Windows 7</li>
</ul>

<p>Hi, i want upload a string into my database that is in the folder resources/data, unfortunately it doesn't work, any suggestions?</p>

<p><pre class="javascript codeblock"><span class="kw2">var</span> win <span class="sy0">=</span> Ti.<span class="me1">UI</span>.<span class="me1">createWindow</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span>
&nbsp;
<span class="kw2">var</span> db <span class="sy0">=</span> Titanium.<span class="me1">Database</span>.<span class="me1">install</span><span class="br0">&#40;</span><span class="st0">'/data/surveys_data.db'</span><span class="br0">&#41;</span><span class="sy0">;</span>
&nbsp;
&nbsp;
db.<span class="me1">execute</span><span class="br0">&#40;</span><span class="st0">'INSERT INTO Survey (Value1) VALUES(?)'</span><span class="sy0">,</span> <span class="st0">'Il signore degli anelli'</span><span class="br0">&#41;</span><span class="sy0">;</span>
<span class="kw2">var</span> sql <span class="sy0">=</span> db.<span class="me1">execute</span><span class="br0">&#40;</span><span class="st0">'SELECT Value1 from Survey'</span><span class="br0">&#41;</span><span class="sy0">;</span>
&nbsp;
<span class="kw2">var</span> <span class="kw3">name</span> <span class="sy0">=</span> sql.<span class="me1">fieldByName</span><span class="br0">&#40;</span><span class="st0">'Value1'</span><span class="br0">&#41;</span><span class="sy0">;</span>
<span class="kw3">alert</span><span class="br0">&#40;</span><span class="kw3">name</span><span class="br0">&#41;</span><span class="sy0">;</span>
&nbsp;
&nbsp;
win.<span class="kw3">open</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span></pre>
Table of database: Survey 
Row into Survey: Value 1</p>

<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Store value into separate set of objects</title> 
		<link>http://developer.appcelerator.com/question/152567/store-value-into-separate-set-of-objects</link>
		<pubDate>Sat, 18 May 2013 15:15:49 -0700</pubDate>
		<dc:creator>kiran arishanapalli</dc:creator> 
				<category><![CDATA[javascript]]></category> 
				<category><![CDATA[titanium]]></category> 
				<category><![CDATA[alloy]]></category> 
				<guid isPermaLink="true">http://developer.appcelerator.com/question/152567/store-value-into-separate-set-of-objects</guid>
		<description><![CDATA[listObj =   (
                   {
               disc = &quot;&quot;;
               title = &quot;&quot;;
           },
                   {
               disc = &quot;&quot;;
               title = &quot;&quot;;
           },
                   {
               disc = &quot;&quot;;
               title = &quot;&quot;;
           },

                {
               disc = &quot;&quot;;
               title = &quot;&quot;;
           }
       );
       EmpName = KiranKumar;
       EmpNo = E29901234007;


I want to store listObj in one array the array count will be four '4' and EmpName into string var and EmpNo into another variable.  any one advice me to do this.]]></description>
		<content:encoded><![CDATA[<p>listObj =   (
                   {
               disc = &quot;&quot;;
               title = &quot;&quot;;
           },
                   {
               disc = &quot;&quot;;
               title = &quot;&quot;;
           },
                   {
               disc = &quot;&quot;;
               title = &quot;&quot;;
           },</p>

<pre><code>            {
           disc = &amp;quot;&amp;quot;;
           title = &amp;quot;&amp;quot;;
       }
   );
   EmpName = KiranKumar;
   EmpNo = E29901234007;
</code></pre>

<p>I want to store listObj in one array the array count will be four '4' and EmpName into string var and EmpNo into another variable.  any one advice me to do this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>How to pass multiple arguments and get data value into another window titanium</title> 
		<link>http://developer.appcelerator.com/question/152537/how-to-pass-multiple-arguments-and-get-data-value-into-another-window-titanium</link>
		<pubDate>Fri, 17 May 2013 12:45:53 -0700</pubDate>
		<dc:creator>kiran arishanapalli</dc:creator> 
				<category><![CDATA[titanium]]></category> 
				<category><![CDATA[appcelerator]]></category> 
				<category><![CDATA[alloy]]></category> 
				<guid isPermaLink="true">http://developer.appcelerator.com/question/152537/how-to-pass-multiple-arguments-and-get-data-value-into-another-window-titanium</guid>
		<description><![CDATA[undefined for the second argument when passing value from one screen into another screen

// First Screen Code.

    args [] = {name:'ABCD',value:'1234'};
    argsToken [] = {token:'ABC123DEF456',value:'VALID'};
    var Window = Alloy.createController('SecondView',args,argsToken).getView();

// Second Screen Code

// First argument

    var args = arguments[0] || {};
    var data = [];  
    data    = args;
    Titanium.API.info('data Value::'+data);

// Second arguments

var argsToken = arguments[1] || {};
var token = [];
token = argsToken;
Titanium.API.info('Token Value::'+token);


Here from data i am getting value which is {name:'ABCD',value:'1234'}
for the second arguments[1] with argsToken its getting undefined.
I am not able getting for second argument {token:'ABC123DEF456',value:'VALID'}]]></description>
		<content:encoded><![CDATA[<p>undefined for the second argument when passing value from one screen into another screen</p>

<p>// First Screen Code.</p>

<pre><code>args [] = {name:'ABCD',value:'1234'};
argsToken [] = {token:'ABC123DEF456',value:'VALID'};
var Window = Alloy.createController('SecondView',args,argsToken).getView();
</code></pre>

<p>// Second Screen Code</p>

<p>// First argument</p>

<pre><code>var args = arguments[0] || {};
var data = [];  
data    = args;
Titanium.API.info('data Value::'+data);
</code></pre>

<p>// Second arguments</p>

<p>var argsToken = arguments[1] || {};
var token = [];
token = argsToken;
Titanium.API.info('Token Value::'+token);</p>

<p>Here from data i am getting value which is {name:'ABCD',value:'1234'}
for the second arguments[1] with argsToken its getting undefined.
I am not able getting for second argument {token:'ABC123DEF456',value:'VALID'}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Table Search View</title> 
		<link>http://developer.appcelerator.com/question/152144/table-search-view</link>
		<pubDate>Wed, 08 May 2013 13:38:54 -0700</pubDate>
		<dc:creator>Biswajeet Nayak</dc:creator> 
				<category><![CDATA[android]]></category> 
				<category><![CDATA[searchbar]]></category> 
				<category><![CDATA[tableview]]></category> 
				<category><![CDATA[ui]]></category> 
				<category><![CDATA[titanium]]></category> 
				<guid isPermaLink="true">http://developer.appcelerator.com/question/152144/table-search-view</guid>
		<description><![CDATA[Can anybody provide me a simple working example of the table search view...i have written a code to search in the table view using a simple textfield and its change event.. it searches well.... but infact due to the refreshing of the table ui... i dont get the original row index of the searched row.... always it returns the index as 0. i have lot of problems with it.

can anybody help me in this???

thank you!!]]></description>
		<content:encoded><![CDATA[<p>Can anybody provide me a simple working example of the table search view...i have written a code to search in the table view using a simple textfield and its change event.. it searches well.... but infact due to the refreshing of the table ui... i dont get the original row index of the searched row.... always it returns the index as 0. i have lot of problems with it.</p>

<p>can anybody help me in this???</p>

<p>thank you!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>How to apply Strike Line on tableview row</title> 
		<link>http://developer.appcelerator.com/question/152533/how-to-apply-strike-line-on-tableview-row</link>
		<pubDate>Fri, 17 May 2013 08:55:36 -0700</pubDate>
		<dc:creator>Kapil Maheshwari</dc:creator> 
				<category><![CDATA[tableviewrow]]></category> 
				<category><![CDATA[titanium]]></category> 
				<category><![CDATA[strike]]></category> 
				<guid isPermaLink="true">http://developer.appcelerator.com/question/152533/how-to-apply-strike-line-on-tableview-row</guid>
		<description><![CDATA[Hi All,

I need to apply a strike line on tableview row, once I clicked on the checkbox in that tableview row. 

Here is the link for image, how I want to display.

Image Link : [https://dl.dropboxusercontent.com/u/73616789/img1.png](https://dl.dropboxusercontent.com/u/73616789/img1.png)

I know that, using creating view with height : 1, we can do that, but any other suggestion will be appreciated. 

Thanks in advance]]></description>
		<content:encoded><![CDATA[<p>Hi All,</p>

<p>I need to apply a strike line on tableview row, once I clicked on the checkbox in that tableview row.</p>

<p>Here is the link for image, how I want to display.</p>

<p>Image Link : <a href="https://dl.dropboxusercontent.com/u/73616789/img1.png">https://dl.dropboxusercontent.com/u/73616789/img1.png</a></p>

<p>I know that, using creating view with height : 1, we can do that, but any other suggestion will be appreciated.</p>

<p>Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>Titanium SDK 3.0.2 compatiblity Matrix</title> 
		<link>http://developer.appcelerator.com/question/152516/titanium-sdk-302-compatiblity-matrix</link>
		<pubDate>Fri, 17 May 2013 06:10:12 -0700</pubDate>
		<dc:creator>Olivia Ellis</dc:creator> 
				<category><![CDATA[titanium]]></category> 
				<category><![CDATA[android sdk]]></category> 
				<category><![CDATA[titanium sdk]]></category> 
				<category><![CDATA[compatibilty]]></category> 
				<guid isPermaLink="true">http://developer.appcelerator.com/question/152516/titanium-sdk-302-compatiblity-matrix</guid>
		<description><![CDATA[Hi everybody 
i would like to know  the compatibility of titanium sdk 3.0.2  
is it compatible with android SDK  4.2.2 ?
and what is the Max Android/SDK Version  that the Titanium SDK  3.0.2 supports 
thanks]]></description>
		<content:encoded><![CDATA[<p>Hi everybody 
i would like to know  the compatibility of titanium sdk 3.0.2<br />
is it compatible with android SDK  4.2.2 ?
and what is the Max Android/SDK Version  that the Titanium SDK  3.0.2 supports 
thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>How to place button at the center of View in Titanium</title> 
		<link>http://developer.appcelerator.com/question/132440/how-to-place-button-at-the-center-of-view-in-titanium</link>
		<pubDate>Sun, 19 Feb 2012 22:29:56 -0800</pubDate>
		<dc:creator>Hikmat Khan</dc:creator> 
				<category><![CDATA[center]]></category> 
				<category><![CDATA[titanium]]></category> 
				<category><![CDATA[horizontally]]></category> 
				<category><![CDATA[view position center]]></category> 
				<category><![CDATA[vertically]]></category> 
				<guid isPermaLink="true">http://developer.appcelerator.com/question/132440/how-to-place-button-at-the-center-of-view-in-titanium</guid>
		<description><![CDATA[Hey all,
I want to place a button at the exactly at the center(vertically and horizontally) of view.

how can i do it.


~~~

var mainWin = Titanium.UI.createWindow({
	backgroundColor:'#FF00FF',
	layout:'vertical'
});

var view = Titanium.UI.createView({
	height:'auto',
	width:'100%',
	backgroundColor:'#FFDDEE',
	top:5,
	left:5,
	right:5,
	layout:'horizontal'

});



var button = Titanium.UI.createButton({
	height:'auto',
	width:'80',
	title:'centered',
	verticalAlign:'center',
	
	
	
});

view.add(button);

mainWin.add(view);

mainWin.open();


~~~]]></description>
		<content:encoded><![CDATA[<p>Hey all,
I want to place a button at the exactly at the center(vertically and horizontally) of view.</p>

<p>how can i do it.</p>

<p><pre class="javascript codeblock"><span class="kw2">var</span> mainWin <span class="sy0">=</span> Titanium.<span class="me1">UI</span>.<span class="me1">createWindow</span><span class="br0">&#40;</span><span class="br0">&#123;</span>
    backgroundColor<span class="sy0">:</span><span class="st0">'#FF00FF'</span><span class="sy0">,</span>
    layout<span class="sy0">:</span><span class="st0">'vertical'</span>
<span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span>
&nbsp;
<span class="kw2">var</span> view <span class="sy0">=</span> Titanium.<span class="me1">UI</span>.<span class="me1">createView</span><span class="br0">&#40;</span><span class="br0">&#123;</span>
    height<span class="sy0">:</span><span class="st0">'auto'</span><span class="sy0">,</span>
    width<span class="sy0">:</span><span class="st0">'100%'</span><span class="sy0">,</span>
    backgroundColor<span class="sy0">:</span><span class="st0">'#FFDDEE'</span><span class="sy0">,</span>
    top<span class="sy0">:</span><span class="nu0">5</span><span class="sy0">,</span>
    left<span class="sy0">:</span><span class="nu0">5</span><span class="sy0">,</span>
    right<span class="sy0">:</span><span class="nu0">5</span><span class="sy0">,</span>
    layout<span class="sy0">:</span><span class="st0">'horizontal'</span>
&nbsp;
<span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span>
&nbsp;
&nbsp;
&nbsp;
<span class="kw2">var</span> button <span class="sy0">=</span> Titanium.<span class="me1">UI</span>.<span class="me1">createButton</span><span class="br0">&#40;</span><span class="br0">&#123;</span>
    height<span class="sy0">:</span><span class="st0">'auto'</span><span class="sy0">,</span>
    width<span class="sy0">:</span><span class="st0">'80'</span><span class="sy0">,</span>
    title<span class="sy0">:</span><span class="st0">'centered'</span><span class="sy0">,</span>
    verticalAlign<span class="sy0">:</span><span class="st0">'center'</span><span class="sy0">,</span>
&nbsp;
&nbsp;
&nbsp;
<span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span>
&nbsp;
view.<span class="me1">add</span><span class="br0">&#40;</span>button<span class="br0">&#41;</span><span class="sy0">;</span>
&nbsp;
mainWin.<span class="me1">add</span><span class="br0">&#40;</span>view<span class="br0">&#41;</span><span class="sy0">;</span>
&nbsp;
mainWin.<span class="kw3">open</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span></pre></p>
]]></content:encoded>
	</item>
	<item>
		<title>set specific time for local notification for android</title> 
		<link>http://developer.appcelerator.com/question/150097/set-specific-time-for-local-notification-for-android</link>
		<pubDate>Wed, 27 Mar 2013 01:17:25 -0700</pubDate>
		<dc:creator>sangeetha xvalue</dc:creator> 
				<category><![CDATA[titanium]]></category> 
				<category><![CDATA[appcelerator]]></category> 
				<guid isPermaLink="true">http://developer.appcelerator.com/question/150097/set-specific-time-for-local-notification-for-android</guid>
		<description><![CDATA[hi, 
How to set specific time for local notification.for example daily morning 10 AM i need to display notification.someone help]]></description>
		<content:encoded><![CDATA[<p>hi, 
How to set specific time for local notification.for example daily morning 10 AM i need to display notification.someone help</p>
]]></content:encoded>
	</item>
	<item>
		<title>TableView and Table View Row</title> 
		<link>http://developer.appcelerator.com/question/152508/tableview-and-table-view-row</link>
		<pubDate>Fri, 17 May 2013 03:42:52 -0700</pubDate>
		<dc:creator>Kusuma Jammula</dc:creator> 
				<category><![CDATA[android]]></category> 
				<category><![CDATA[tableview]]></category> 
				<category><![CDATA[tableviewrow]]></category> 
				<category><![CDATA[titanium]]></category> 
				<category><![CDATA[alloy]]></category> 
				<guid isPermaLink="true">http://developer.appcelerator.com/question/152508/tableview-and-table-view-row</guid>
		<description><![CDATA[HI i'm trying to add row to table using for loop but it is not happening find the below code

~~~
var tabelarray = [];
					//alert('Sorry, we could not upload your photo! Please try again.');
					var table = Ti.UI.createTableView({
						backgroundColor : &quot;orange&quot;,
						height : 600,
						width : 500,

						arraytable : tabelarray

					});
					for (var x = 0; x &lt; response.twinlist.length; x++) {

					var row2 = Ti.UI.createTableViewRow({
						className : 'row2',
						//selectedBackgroundColor : 'blue',
						rowIndex : x,
						touchEnabled : true,
						height : 100,
						backgroundColor : 'blue'

					});

					
					var img1 = Titanium.UI.createImageView({
					image : response.mainpicture,
					left : 10,
					//size:10,
					top : 10,
					height : 50,
					width : 50
					});

					row2.add(img1);

tabelarray.push(row2);
}
					table.add(tabelarray);
					$.wins.add(table);
~~~

plz help me out]]></description>
		<content:encoded><![CDATA[<p>HI i'm trying to add row to table using for loop but it is not happening find the below code
<pre class="javascript codeblock"><span class="kw2">var</span> tabelarray <span class="sy0">=</span> <span class="br0">&#91;</span><span class="br0">&#93;</span><span class="sy0">;</span>
                    <span class="co1">//alert('Sorry, we could not upload your photo! Please try again.');</span>
                    <span class="kw2">var</span> table <span class="sy0">=</span> Ti.<span class="me1">UI</span>.<span class="me1">createTableView</span><span class="br0">&#40;</span><span class="br0">&#123;</span>
                        backgroundColor <span class="sy0">:</span> <span class="st0">&quot;orange&quot;</span><span class="sy0">,</span>
                        height <span class="sy0">:</span> <span class="nu0">600</span><span class="sy0">,</span>
                        width <span class="sy0">:</span> <span class="nu0">500</span><span class="sy0">,</span>
&nbsp;
                        arraytable <span class="sy0">:</span> tabelarray
&nbsp;
                    <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span>
                    <span class="kw1">for</span> <span class="br0">&#40;</span><span class="kw2">var</span> x <span class="sy0">=</span> <span class="nu0">0</span><span class="sy0">;</span> x <span class="sy0">&lt;</span> response.<span class="me1">twinlist</span>.<span class="me1">length</span><span class="sy0">;</span> x<span class="sy0">++</span><span class="br0">&#41;</span> <span class="br0">&#123;</span>
&nbsp;
                    <span class="kw2">var</span> row2 <span class="sy0">=</span> Ti.<span class="me1">UI</span>.<span class="me1">createTableViewRow</span><span class="br0">&#40;</span><span class="br0">&#123;</span>
                        className <span class="sy0">:</span> <span class="st0">'row2'</span><span class="sy0">,</span>
                        <span class="co1">//selectedBackgroundColor : 'blue',</span>
                        rowIndex <span class="sy0">:</span> x<span class="sy0">,</span>
                        touchEnabled <span class="sy0">:</span> <span class="kw2">true</span><span class="sy0">,</span>
                        height <span class="sy0">:</span> <span class="nu0">100</span><span class="sy0">,</span>
                        backgroundColor <span class="sy0">:</span> <span class="st0">'blue'</span>
&nbsp;
                    <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span>
&nbsp;
&nbsp;
                    <span class="kw2">var</span> img1 <span class="sy0">=</span> Titanium.<span class="me1">UI</span>.<span class="me1">createImageView</span><span class="br0">&#40;</span><span class="br0">&#123;</span>
                    image <span class="sy0">:</span> response.<span class="me1">mainpicture</span><span class="sy0">,</span>
                    left <span class="sy0">:</span> <span class="nu0">10</span><span class="sy0">,</span>
                    <span class="co1">//size:10,</span>
                    top <span class="sy0">:</span> <span class="nu0">10</span><span class="sy0">,</span>
                    height <span class="sy0">:</span> <span class="nu0">50</span><span class="sy0">,</span>
                    width <span class="sy0">:</span> <span class="nu0">50</span>
                    <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span>
&nbsp;
                    row2.<span class="me1">add</span><span class="br0">&#40;</span>img1<span class="br0">&#41;</span><span class="sy0">;</span>
&nbsp;
tabelarray.<span class="me1">push</span><span class="br0">&#40;</span>row2<span class="br0">&#41;</span><span class="sy0">;</span>
<span class="br0">&#125;</span>
                    table.<span class="me1">add</span><span class="br0">&#40;</span>tabelarray<span class="br0">&#41;</span><span class="sy0">;</span>
                    $.<span class="me1">wins</span>.<span class="me1">add</span><span class="br0">&#40;</span>table<span class="br0">&#41;</span><span class="sy0">;</span></pre>
plz help me out</p>
]]></content:encoded>
	</item>
	<item>
		<title>grid view in titanium android emulator</title> 
		<link>http://developer.appcelerator.com/question/151841/grid-view-in-titanium-android-emulator</link>
		<pubDate>Thu, 02 May 2013 00:35:18 -0700</pubDate>
		<dc:creator>sangeetha xvalue</dc:creator> 
				<category><![CDATA[titanium]]></category> 
				<category><![CDATA[appcelerator]]></category> 
				<category><![CDATA[titanium studio]]></category> 
				<guid isPermaLink="true">http://developer.appcelerator.com/question/151841/grid-view-in-titanium-android-emulator</guid>
		<description><![CDATA[hi all,

did any possible to display  grid view with 5 column and 9 rows.]]></description>
		<content:encoded><![CDATA[<p>hi all,</p>

<p>did any possible to display  grid view with 5 column and 9 rows.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Apache Ant</title> 
		<link>http://developer.appcelerator.com/question/152407/apache-ant</link>
		<pubDate>Wed, 15 May 2013 04:31:08 -0700</pubDate>
		<dc:creator>Uma Maheshwari M</dc:creator> 
				<category><![CDATA[titanium]]></category> 
				<guid isPermaLink="true">http://developer.appcelerator.com/question/152407/apache-ant</guid>
		<description><![CDATA[Can any one say what is the use of apache-ant-1.9.0-bin in titanium???????????]]></description>
		<content:encoded><![CDATA[<p>Can any one say what is the use of apache-ant-1.9.0-bin in titanium???????????</p>
]]></content:encoded>
	</item>
	<item>
		<title>Problem While Running Kitchen Sink Application</title> 
		<link>http://developer.appcelerator.com/question/152442/problem-while-running-kitchen-sink-application</link>
		<pubDate>Thu, 16 May 2013 00:14:31 -0700</pubDate>
		<dc:creator>Uma Maheshwari M</dc:creator> 
				<category><![CDATA[titanium]]></category> 
				<guid isPermaLink="true">http://developer.appcelerator.com/question/152442/problem-while-running-kitchen-sink-application</guid>
		<description><![CDATA[Hi,
   Iam Facing the below Error while running the Kitchen Sink Application Can u please help in this issue....
[ERROR] :  Build process exited with code 1
[ERROR] :  Project failed to build after 4s 642ms
[ERROR] :  Emulator process exited with code 1]]></description>
		<content:encoded><![CDATA[<p>Hi,
   Iam Facing the below Error while running the Kitchen Sink Application Can u please help in this issue....
[ERROR] :  Build process exited with code 1
[ERROR] :  Project failed to build after 4s 642ms
[ERROR] :  Emulator process exited with code 1</p>
]]></content:encoded>
	</item>
	<item>
		<title>unable to set image in paint view in titanium?</title> 
		<link>http://developer.appcelerator.com/question/141375/unable-to-set-image-in-paint-view-in-titanium</link>
		<pubDate>Thu, 23 Aug 2012 04:43:21 -0700</pubDate>
		<dc:creator>sumit kumar</dc:creator> 
				<category><![CDATA[titanium]]></category> 
				<category><![CDATA[sliderbar]]></category> 
				<category><![CDATA[setimage]]></category> 
				<category><![CDATA[paintview]]></category> 
				<guid isPermaLink="true">http://developer.appcelerator.com/question/141375/unable-to-set-image-in-paint-view-in-titanium</guid>
		<description><![CDATA[Hi,
 i have created drawing using paint and i saved it as a image and insert it in database and then placed as a image in paint image but it gives folloawing error when i set image in a paintview

 CGContextSaveGState: invalid context 0x0

I have used following code to setimage in paintview

var paintView = Titanium.Painter.createPaintView({
			top: 0,
			left: 0,
			right: 0,       
			bottom: 0,
			strokeColor: '#0f0',
			//strokeColor: '#ffffff',
			strokeAlpha: 255,
			strokeWidth: 10,
			});


 paintView.addEventListener('touchend',function(e) 
		{

		      var paintimage = paintView.toImage();
		      imagedb.addtempImage(paintimage);

						
		});

    exports.addtempImage = function(imageitem) {
	  var  db = Ti.Database.open('db');
	  db.execute('INSERT INTO Tempdrawingimage (tempimage) values (?)', imageitem);
	  var dbrows =db.execute('SELECT tempimage FROM Tempdrawingimage');
	   Ti.API.info( dbrows.getRowCount());
	   dbrows.close();
	  db.close();
    };
sliderbar.addEventListener('swipe',function(e) 
       {    
       	     var tempimg =  imagedb.gettempImage(Ti.App.myglobaltempimage);
	        paintView.clear();
	        paintView.image = tempimg;
          	}
          	
	   
		});]]></description>
		<content:encoded><![CDATA[<p>Hi,
 i have created drawing using paint and i saved it as a image and insert it in database and then placed as a image in paint image but it gives folloawing error when i set image in a paintview</p>

<p>CGContextSaveGState: invalid context 0x0</p>

<p>I have used following code to setimage in paintview</p>

<p>var paintView = Titanium.Painter.createPaintView({
            top: 0,
            left: 0,
            right: 0,<br />
            bottom: 0,
            strokeColor: '#0f0',
            //strokeColor: '#ffffff',
            strokeAlpha: 255,
            strokeWidth: 10,
            });</p>

<p>paintView.addEventListener('touchend',function(e) 
        {</p>

<pre><code>          var paintimage = paintView.toImage();
          imagedb.addtempImage(paintimage);


    });

exports.addtempImage = function(imageitem) {
  var  db = Ti.Database.open('db');
  db.execute('INSERT INTO Tempdrawingimage (tempimage) values (?)', imageitem);
  var dbrows =db.execute('SELECT tempimage FROM Tempdrawingimage');
   Ti.API.info( dbrows.getRowCount());
   dbrows.close();
  db.close();
};
</code></pre>

<p>sliderbar.addEventListener('swipe',function(e) 
       {<br />
             var tempimg =  imagedb.gettempImage(Ti.App.myglobaltempimage);
            paintView.clear();
            paintView.image = tempimg;
            }</p>

<pre><code>    });
</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>Function call</title> 
		<link>http://developer.appcelerator.com/question/152471/function-call</link>
		<pubDate>Thu, 16 May 2013 08:44:39 -0700</pubDate>
		<dc:creator>Zain Saqib</dc:creator> 
				<category><![CDATA[mobile]]></category> 
				<category><![CDATA[titanium]]></category> 
				<category><![CDATA[ios]]></category> 
				<category><![CDATA[function scope]]></category> 
				<guid isPermaLink="true">http://developer.appcelerator.com/question/152471/function-call</guid>
		<description><![CDATA[Hello everybody.. I am stucked in a weird problem regrading to function call. I have declared a function in my map.js file but when I call it in my app.js file it is not accessible in fact reports an error as &quot;undefined is not a function&quot;. My code snipet will make more things clear.. Please help me out regarding to this issue.. thank you.!!]]></description>
		<content:encoded><![CDATA[<p>Hello everybody.. I am stucked in a weird problem regrading to function call. I have declared a function in my map.js file but when I call it in my app.js file it is not accessible in fact reports an error as &quot;undefined is not a function&quot;. My code snipet will make more things clear.. Please help me out regarding to this issue.. thank you.!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Facebook reauthorize keeps gettign called</title> 
		<link>http://developer.appcelerator.com/question/152429/facebook-reauthorize-keeps-gettign-called</link>
		<pubDate>Wed, 15 May 2013 11:17:15 -0700</pubDate>
		<dc:creator>David Sharek</dc:creator> 
				<category><![CDATA[iphone]]></category> 
				<category><![CDATA[facebook]]></category> 
				<category><![CDATA[titanium]]></category> 
				<category><![CDATA[reauthorize]]></category> 
				<guid isPermaLink="true">http://developer.appcelerator.com/question/152429/facebook-reauthorize-keeps-gettign-called</guid>
		<description><![CDATA[I'm not sure what I'm doing wrong here, any help with the Facebook authorize and reauthorize process would be greatly appreciated.

When a user presses a button, the following function is called:

~~~
var fb;
var facebookLogin = function(){
	fb = require('facebook');
 	fb.appid = MY_APP_ID;
 	if (!fb.loggedIn) {
 		fb.permissions = ['read_stream'];
 		fb.forceDialogAuth = false;
 		fb.authorize();
 		fb.addEventListener('login', function(e) {
		    if (e.success) {
				Ti.API.info(&quot;Facebook logged in! &quot; + e.success);
				postToFacebook();    
		    } else if (e.error) {
		        Ti.API.info(&quot;Facebook error: &quot; + e.error);
		    } else if (e.cancelled) {
		        Ti.API.info(&quot;Facebook connection canceled&quot; + e.cancelled);
		    }
		});
 	}else{
 		postToFacebook();
 		Ti.API.info(&quot;User ID&quot; + Ti.Facebook.uid);
		Ti.API.info(&quot;Access Token: &quot; + Ti.Facebook.accessToken); 	
	};
};

var postToFacebook = function(){
 		fb.reauthorize(['publish_actions'], 'me', function(e){
	        if (e.success) {
	            fb.requestWithGraphPath('me/photos', {
			message: &quot;MY_MESSAGE&quot;, 
			picture: MY_PICTURE_BLOB},
			&quot;POST&quot;, function(e) {
					if (e.success) {
				    	Ti.API.info(&quot;Success!  From FB: &quot; + e.result);
				    }else{
				       	if(e.error){
				          	Ti.API.info( e.error);
				        }else{
				        	Ti.API.info(&quot;something else&quot;);
				        }
				    }
				});
	        } else {
	            if (e.error) {
	                alert(e.error);
	            } else {
	                alert(&quot;Unknown result&quot;);
	            }
	        }
	    });
 	}
~~~


The problem is, the app keeps switching to Facebook in order authorize. Even when I have authorized the app, the app switches back to Facebook with a message saying I have already authorized the app.

All I want to do is post to my Facebook wall without having to constantly switch back and forth to Facebook for authorization, I understand that I would have to switch to FB when I log in, but after that, I don't want the user to have to interact with the FB authorization screen. 

This seems like such an easy process, what am I doing wrong?

Testing Environment
---------------------------
mobile Titanium SDK: 3.x Platform &amp; version: iOS for now but soon Android Device: iOS simulator and iPhone 5 physical device Host Operating System: OSX 10.8.3 Titanium Studio: 3.1]]></description>
		<content:encoded><![CDATA[<p>I'm not sure what I'm doing wrong here, any help with the Facebook authorize and reauthorize process would be greatly appreciated.</p>

<p>When a user presses a button, the following function is called:
<pre class="javascript codeblock"><span class="kw2">var</span> fb<span class="sy0">;</span>
<span class="kw2">var</span> facebookLogin <span class="sy0">=</span> <span class="kw2">function</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#123;</span>
    fb <span class="sy0">=</span> require<span class="br0">&#40;</span><span class="st0">'facebook'</span><span class="br0">&#41;</span><span class="sy0">;</span>
    fb.<span class="me1">appid</span> <span class="sy0">=</span> MY_APP_ID<span class="sy0">;</span>
    <span class="kw1">if</span> <span class="br0">&#40;</span><span class="sy0">!</span>fb.<span class="me1">loggedIn</span><span class="br0">&#41;</span> <span class="br0">&#123;</span>
        fb.<span class="me1">permissions</span> <span class="sy0">=</span> <span class="br0">&#91;</span><span class="st0">'read_stream'</span><span class="br0">&#93;</span><span class="sy0">;</span>
        fb.<span class="me1">forceDialogAuth</span> <span class="sy0">=</span> <span class="kw2">false</span><span class="sy0">;</span>
        fb.<span class="me1">authorize</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span>
        fb.<span class="me1">addEventListener</span><span class="br0">&#40;</span><span class="st0">'login'</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">&#40;</span>e<span class="br0">&#41;</span> <span class="br0">&#123;</span>
            <span class="kw1">if</span> <span class="br0">&#40;</span>e.<span class="me1">success</span><span class="br0">&#41;</span> <span class="br0">&#123;</span>
                Ti.<span class="me1">API</span>.<span class="me1">info</span><span class="br0">&#40;</span><span class="st0">&quot;Facebook logged in! &quot;</span> <span class="sy0">+</span> e.<span class="me1">success</span><span class="br0">&#41;</span><span class="sy0">;</span>
                postToFacebook<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span>    
            <span class="br0">&#125;</span> <span class="kw1">else</span> <span class="kw1">if</span> <span class="br0">&#40;</span>e.<span class="me1">error</span><span class="br0">&#41;</span> <span class="br0">&#123;</span>
                Ti.<span class="me1">API</span>.<span class="me1">info</span><span class="br0">&#40;</span><span class="st0">&quot;Facebook error: &quot;</span> <span class="sy0">+</span> e.<span class="me1">error</span><span class="br0">&#41;</span><span class="sy0">;</span>
            <span class="br0">&#125;</span> <span class="kw1">else</span> <span class="kw1">if</span> <span class="br0">&#40;</span>e.<span class="me1">cancelled</span><span class="br0">&#41;</span> <span class="br0">&#123;</span>
                Ti.<span class="me1">API</span>.<span class="me1">info</span><span class="br0">&#40;</span><span class="st0">&quot;Facebook connection canceled&quot;</span> <span class="sy0">+</span> e.<span class="me1">cancelled</span><span class="br0">&#41;</span><span class="sy0">;</span>
            <span class="br0">&#125;</span>
        <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span>
    <span class="br0">&#125;</span><span class="kw1">else</span><span class="br0">&#123;</span>
        postToFacebook<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span>
        Ti.<span class="me1">API</span>.<span class="me1">info</span><span class="br0">&#40;</span><span class="st0">&quot;User ID&quot;</span> <span class="sy0">+</span> Ti.<span class="me1">Facebook</span>.<span class="me1">uid</span><span class="br0">&#41;</span><span class="sy0">;</span>
        Ti.<span class="me1">API</span>.<span class="me1">info</span><span class="br0">&#40;</span><span class="st0">&quot;Access Token: &quot;</span> <span class="sy0">+</span> Ti.<span class="me1">Facebook</span>.<span class="me1">accessToken</span><span class="br0">&#41;</span><span class="sy0">;</span>    
    <span class="br0">&#125;</span><span class="sy0">;</span>
<span class="br0">&#125;</span><span class="sy0">;</span>
&nbsp;
<span class="kw2">var</span> postToFacebook <span class="sy0">=</span> <span class="kw2">function</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#123;</span>
        fb.<span class="me1">reauthorize</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="st0">'publish_actions'</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="st0">'me'</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">&#40;</span>e<span class="br0">&#41;</span><span class="br0">&#123;</span>
            <span class="kw1">if</span> <span class="br0">&#40;</span>e.<span class="me1">success</span><span class="br0">&#41;</span> <span class="br0">&#123;</span>
                fb.<span class="me1">requestWithGraphPath</span><span class="br0">&#40;</span><span class="st0">'me/photos'</span><span class="sy0">,</span> <span class="br0">&#123;</span>
            message<span class="sy0">:</span> <span class="st0">&quot;MY_MESSAGE&quot;</span><span class="sy0">,</span> 
            picture<span class="sy0">:</span> MY_PICTURE_BLOB<span class="br0">&#125;</span><span class="sy0">,</span>
            <span class="st0">&quot;POST&quot;</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">&#40;</span>e<span class="br0">&#41;</span> <span class="br0">&#123;</span>
                    <span class="kw1">if</span> <span class="br0">&#40;</span>e.<span class="me1">success</span><span class="br0">&#41;</span> <span class="br0">&#123;</span>
                        Ti.<span class="me1">API</span>.<span class="me1">info</span><span class="br0">&#40;</span><span class="st0">&quot;Success!  From FB: &quot;</span> <span class="sy0">+</span> e.<span class="me1">result</span><span class="br0">&#41;</span><span class="sy0">;</span>
                    <span class="br0">&#125;</span><span class="kw1">else</span><span class="br0">&#123;</span>
                        <span class="kw1">if</span><span class="br0">&#40;</span>e.<span class="me1">error</span><span class="br0">&#41;</span><span class="br0">&#123;</span>
                            Ti.<span class="me1">API</span>.<span class="me1">info</span><span class="br0">&#40;</span> e.<span class="me1">error</span><span class="br0">&#41;</span><span class="sy0">;</span>
                        <span class="br0">&#125;</span><span class="kw1">else</span><span class="br0">&#123;</span>
                            Ti.<span class="me1">API</span>.<span class="me1">info</span><span class="br0">&#40;</span><span class="st0">&quot;something else&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span>
                        <span class="br0">&#125;</span>
                    <span class="br0">&#125;</span>
                <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span>
            <span class="br0">&#125;</span> <span class="kw1">else</span> <span class="br0">&#123;</span>
                <span class="kw1">if</span> <span class="br0">&#40;</span>e.<span class="me1">error</span><span class="br0">&#41;</span> <span class="br0">&#123;</span>
                    <span class="kw3">alert</span><span class="br0">&#40;</span>e.<span class="me1">error</span><span class="br0">&#41;</span><span class="sy0">;</span>
                <span class="br0">&#125;</span> <span class="kw1">else</span> <span class="br0">&#123;</span>
                    <span class="kw3">alert</span><span class="br0">&#40;</span><span class="st0">&quot;Unknown result&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span>
                <span class="br0">&#125;</span>
            <span class="br0">&#125;</span>
        <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span>
    <span class="br0">&#125;</span></pre></p>

<p>The problem is, the app keeps switching to Facebook in order authorize. Even when I have authorized the app, the app switches back to Facebook with a message saying I have already authorized the app.</p>

<p>All I want to do is post to my Facebook wall without having to constantly switch back and forth to Facebook for authorization, I understand that I would have to switch to FB when I log in, but after that, I don't want the user to have to interact with the FB authorization screen.</p>

<p>This seems like such an easy process, what am I doing wrong?</p>

<h2>Testing Environment</h2>

<p>mobile Titanium SDK: 3.x Platform &amp; version: iOS for now but soon Android Device: iOS simulator and iPhone 5 physical device Host Operating System: OSX 10.8.3 Titanium Studio: 3.1</p>
]]></content:encoded>
	</item>
	<item>
		<title>Titanium Alloy Framework Back Button Apps Close</title> 
		<link>http://developer.appcelerator.com/question/151547/titanium-alloy-framework-back-button-apps-close</link>
		<pubDate>Thu, 25 Apr 2013 02:10:40 -0700</pubDate>
		<dc:creator>Vijay B</dc:creator> 
				<category><![CDATA[titanium]]></category> 
				<category><![CDATA[alloy]]></category> 
				<guid isPermaLink="true">http://developer.appcelerator.com/question/151547/titanium-alloy-framework-back-button-apps-close</guid>
		<description><![CDATA[Hello

I've got an application that opens a controller from index, however when pressing the back key on android it exits the application.

I am launching the controller like so:

	var addNew = Alloy.createController('addData');
	addNew.getView().open();

what am I doing wrong?

Thanks]]></description>
		<content:encoded><![CDATA[<p>Hello</p>

<p>I've got an application that opens a controller from index, however when pressing the back key on android it exits the application.</p>

<p>I am launching the controller like so:</p>

<pre><code>var addNew = Alloy.createController('addData');
addNew.getView().open();
</code></pre>

<p>what am I doing wrong?</p>

<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Can't open windows and close it and back to the last windows</title> 
		<link>http://developer.appcelerator.com/question/150936/cant-open-windows-and-close-it-and-back-to-the-last-windows</link>
		<pubDate>Sun, 14 Apr 2013 16:58:40 -0700</pubDate>
		<dc:creator>Mohamed Ibrahim</dc:creator> 
				<category><![CDATA[android]]></category> 
				<category><![CDATA[titanium]]></category> 
				<category><![CDATA[titanium studio]]></category> 
				<guid isPermaLink="true">http://developer.appcelerator.com/question/150936/cant-open-windows-and-close-it-and-back-to-the-last-windows</guid>
		<description><![CDATA[Hi, i developed and Android App with the following structure, 

http://oi47.tinypic.com/ftdli8.jpg

i call from app.js different windows and when i click back, it should go back to the calling window.
it i am on mymap.js and click back button it should go back and by the previous windows can also call the original windows through back button,,
My problem is i can go back always one step ,, from the image i attached, i can go from mymap.js only to desc.js.

please help me]]></description>
		<content:encoded><![CDATA[<p>Hi, i developed and Android App with the following structure,</p>

<p>http://oi47.tinypic.com/ftdli8.jpg</p>

<p>i call from app.js different windows and when i click back, it should go back to the calling window.
it i am on mymap.js and click back button it should go back and by the previous windows can also call the original windows through back button,,
My problem is i can go back always one step ,, from the image i attached, i can go from mymap.js only to desc.js.</p>

<p>please help me</p>
]]></content:encoded>
	</item>
</channel>
</rss>