Community Questions & Answers
save image into database
now i'm trying to save image into database but everything is working good but image didn't pass to the php file so when the php file insert it into the database it look like ' ' empty row so what is the problem here.?? ~~~ upload.addEventListener('click',...
Probem with a the WAMP server connection
Hello everyone, I am trying to connect to the WAMP server installed in my PC and using this code: ~~~ var mybouton = Titanium.UI.createButton({ title:"connect", height:"auto", width:150, bottom:10 }); var mytflogin =...
Moving Android App to New Account?
If I deploy my app to google play under my developer account can I later move it to my clients account?
How do I get the index of a TableViewRow?
I'm trying to use TableView#insertRowBefore() which requires a table row index. How do I get the index of a TableViewRow?
android maps crashing with NoClassDefFoundError
I'm using Maps v1 on Android and getting sporadic crash reports from Google Play - so far the rate is 3 crashes out of 200 installs over the past week or so. The app is built on Titanium 3.0.1GA; the earlier app version only had one such report on 4,000...
camera image is rotating?
hi friends hear i am doing camera application but after taking picture i am saving it in to gallery and as well as i am displaying on to new window at that time my image is rotating so could u guys please help me (my issue is image is rotating after...
how to use progress bar in alloy mobile app?
hi friends i am new to alloy mobile application and in my application i have to add a progress bar while getting data from server and stops it after getting data and i have to callucate the %of download and displayed as label along with progress bar .i...
Is there a callback for progress when sending data to a network socket?
I have a function "send" which is shown below, that is part of a networking .js file I'm building up and have run into a problem. Everything is working except for being able to track progress when transferring a file across the...
toImage no working
I have tried the function toImage on android it doesn't work when I store the ~~~ var image = Ti.UI.createImageView({image: "path.png"}); var img = image.ToImage(); var toDisplay = Ti.UI.createImageView({image:...
Submission Failed due to use of Public API : UDID
Submission Failed due to use of Public API : UDID Anyone knows who is the cuplrit? I have taken out flurry, Krooshal. Left only Admob, nl.icept.apprate, and Ti Cloud...
Own Android Push with gcm
Hello, in my App I included Apcelerator Cloud Services to send push notifications to android and ios. This works without any problems but I want to send the notifications from my own server. Everything is working fine with ios and I can send push...
Buttons on tableView using tableViewRow
I have a following code snippet: var win = Ti.UI.createWindow({backgroundColor:'white'}); var row = Ti.UI.createTableViewRow(); var table = Ti.UI.createTableView({width:200,height:150,borderWidth:1,borderColor:'red'}); var but =...
How to limit the zoom on Google Maps v2 and iOS maps?
Hi All, I'm working with maps on both iOS and Android. I've gone through the docs and I don't see anything that appears to address this need. I have as a goal to display locations in a way that supplies strictly high level information- nothing too...
Flurry analytics module in titanium module
Hi, I downloaded Flurry analytics JAR file. i should use Flurry in my project and i want to use my own module. i didnt find module that works in android. can you please explain to me how to create titanium module. i have see the tutorial in appcelerator...
how to read and write to aws s3 using REST and Titanium ?
I created a free tier membership with amazon web services. I have to upload and download files from my iPhone app. Can someone send sample code to do that. I also created a Access Key ID and Secret Access Key, and looking forward to use REST api of...
File and TiBlob not working on iOS
Hello, I'm trying to read a file and encoding it on Base64. Everyrhing is working super good on Android but when I use the same code on iOS I can't make it work. This are the exact steps. I take a photo with the camera and save the thumbnail as...
Android: Google Maps V2 Tiles Only Load the First Time Mapview is Rendered
Hi, I recently upgraded our app to use Google Maps V2 in Android. Everything seems to be setup correctly now and when the map is first loaded it renders normally -- tiles load and the map is moved to the specified lat and long. When the user starts...
View not centered after exiting CoverFlowView
When i use the below code it enters the cover flow view fine, and exits it fine, however when i tab to another view the view appears in the upper left corner almost completely out of...
Android video playbackState, seek ?
I am using `Ti SDK 3.1.0` and `Google APIs Android 4.0.3`. For some reason the playbackState for the video player isn't firing when a user drags/seeks the scrub bar on the player. All I can get is the play/pause events. Anyone know how to fix this...
How to pass multiple arguments and get data value into another window titanium
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 =...
Moved to Ti SDK 3.1.0 and android crashing now
I have an app that was built using SDK 2.1.4. For the past week, I've been getting my iOS version of the app up to date with 3.1.0 SDK. I am now ready to do this for android. I compile to the device and I get this error `http://pastie.org/7921720` Pretty...
Cleaning up Modal Windows with Navigation Groups in Alloy Applications
Hi all- I have an application which launches a modal window. This modal window contains a form, and within the form, I have a NavigationGroup which a user can navigate between fields to select multiselect options within other views. The form also...
Can push be implemented without using urban airship or ACS?
I have my own server which is supplying all the data for my app, and wanted to configure my server to push notifications to my app on its own. I really dont need to send data to a third party like urban airship or the ACS. Is this possible? I've only...
How to apply Strike Line on tableview row
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 :...
Map setCenter() does nothing
~~~ $.companyMap.setCenter({x: jobLat, y: jobLng}); ~~~ jobLat and jobLng contain values like 50.30 depending on where a location is. But the setCenter function doesn't change the center of the map. I'm using the latest SDK and Titanium alloy
How to submit a bug to Titanium: setRegion not working on Ti.Map
Hi guys, setRegion() is throwing "Invalid Region" on real devices (not the simulator). This is a bug that breaks functionality in my app and it needs to be listed as a bug in titanium. Is there a guide on how to submit this?
Tableview - modal transition error
Hi, I'm implementing an RSS reader with a tableView. Clikking a row open (modal transition) a new window with a browserView pointing at the RSS row's url. When closing it come back to table view. But, if I click again in a row the App crash: ~~~ [DEBUG]...
Tabs bottom on Android using Views
Hi, I tried to simulate for Android a tab group bottom with views after Comunity app model (TabStripView). Here I have a problem, I don't know what is the best practice to keep tabs (built with views) in all pages. I have 3 tabs. For these I built 3...
Internationalization in ButtonBar labels using Alloy
Hello. I have a Map View with a ButtonBar at the bottom. I need the text of the labels in the ButtonBar to change according to the language of the phone. In order to achieve this I use internationalization. But I get an error everytime I run my code. I'm...
removeAllChildren not working on View
Using SDK 3.1.0GA on OSX with xcode 4.6.2 for iOS. removeAllChildren works on a scrollView, but no on a plain View. however, calling remove(child) works just fine. is this something weird with my setup or others noticed too?
how to add an image from k.js to p.xml from in alloy mobile app
hi friends i am new to develop an in alloy mobile application in titanium studio i had an issue like i want to add an view from k.js to p.xml in my application so plzzzzzzzzzzz help me
Image Converting
Hi, i want to know how can i convert image from png to jpeg using titanium? the source of the image can be camera of photo library
Help! Cant install "Node.ACS"
Hi, I cant install Node.acs. Please help me, here is the output when i try to install via terminal ~~~ shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied node.js:537 var cwd = process.cwd(); ...
HttpClient request Not work for iPhone
Hello Friend, From last coupele of days i stuck in an issue. For my app i need to call an API. I make Http request it works fine for Android and not for iPhone. Here is the code :- ~~~ var addrReq =...
Creating a jigsaw game with Titanium. Any tips?
Any tips for creating a simple iOS puzzle game? What about drag and drop? Any open logic or code?
Count hasCheck in multiselect(tableview).
Im having a problem with the counting of how many hasChecks are "true" in a multiselect(tableview). I need to limit the amount of options selected. Code: ~~~ var mSelOpts = Ti.UI.createTableView({ ...
How do I add a ti.paint PaintView in Alloy?
I've tried the below but am getting an error: 'Couldn't find variable: ti at index.js' Controller: ~~~ var paint = require('ti.paint'); ~~~ View: ~~~ <Alloy> <Window> <PaintView ns="ti.paint"...
Prohibit TableViewSection Repeats on Alloy DataBinding
Hi there- I have what I believe should be a simple question. I am doing a databind to a REST collection. The query works as expected, I receive my results, and the results print to my TableViewRows. I have my rows within a TableViewSection for grouping...
exitOnClose doesnt work with onAndroid:back
My first and main window: contains a ScrollableView. ~~~ <Alloy> <Window id="mainWindow" backgroundColor="black" height="100%" layout="vertical" exitOnClose="true"...
how to access a variable from one js to another js
hi friends i am new to titanium mobile development i had an issue like i want to access a variable of one js from remaining js files so any one plzzzzzzzzzzzzzzzz kindly help me
Titanium SDK 3.0.2 compatiblity Matrix
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
Geolocation - Check if user is in circle
I'm working on a Titanium Project and need to check on a map if the current location is in the circle / radius of an annotation. When this state is true my app has to fire an event. I'm looking for a solution something similar to this:...
how to get server data from database to tableview
~~~ Ti.UI.setBackgroundColor('#fff'); var win=Ti.UI.createWindow({ backgroundColor:'#fff' }); var data=[]; var xhr=Ti.Network.createHTTPClient(); var url='http://example.com'; xhr.onload=function(){ var...
Global object
My intern developed an Titanium Android App and created an global object within the Ti.App namespace like this: Ti.App.ObjectName.function This seemed to work in Android but on iOS it doesn't work when called from a different Window, the...
How to just put two buttons in window with Alloy?
~~~ <Alloy> <Window class="container"> <Button id="button1" onClick="startA">Start A</Button> <Button id="button2" onClick="startB">Start bla bla...
close button on facebook button
Hi, I have a problem, close button on facebook popup doesn't fire any event. is it a bug ? iam display transparent (width opacity 0.5) view behind the popup and when i close facebook, it should disapear.. im using sdk 3.1 my code : ~~~~~ var fb =...
Open website QR in a webView
Hi! I need (again) help. I'm using the Scandit module to scan QR codes. It works well, but when you scan a QR code only open an alert: Alert success (QR): http://www.google.com OK And what I want is to open the url in a browser. I tried this, but the...
ShowCamera weird last picture display
I dont know if it happens to somebody, when I run my app to android (xperia z tobe exact). The ShowCamera, it does not take picture and save it properly, instead it takes the last picture from my album(gallery) and save it as the new image...
TableView and Table View Row
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...
Multi Page tif-Image - display in Titanium?
Hey, i wanna display a multi-page tif file in my application, but webview only shows me one page of the tif-file. Any idea how to show the other Pages? My current thoughts are around splitting it up before, or some image transformation - don't know if...