Community Questions & Answers
showig alert dialog only once
i want to show alert dialog only once after the user logs in first time he should not see alert if he logins again.Is it possible?
Close tabGroup and open window
So, I have a window(win) with a facebook login. When I log in, the tabGroup (3 tabs) is opened. Inside one of the tabs, the third one, I have a logout button. I want that, when I log out, the tabGroup closes (as all windows inside of it) and open the log...
Auto fit the row size of table to window size.
Hi. I've table in which rows have an image field and three labels. I'm not able to display them properly to fit different window sizes. How to make this possible?? my code is view.xml ~~~ <Window class="container" id= "win"...
Query regarding module.exports error
Hi, im trying to make an app for android making use of a ApplicationTabGroup.js in common folder, as well as another 2 pages for the 2 tabs within the applicationtabgroup.js. All of these 3 pages are in the common folder. I've been getting this...
Select Multiple Images Using Photo Gallery Picker (Android and iOS)
At the moment I am using Ti.Media.openPhotoGallery to select an individual image from the device photo gallery: ~~~ Ti.Media.openPhotoGallery({ autoHide: true, mediaTypes:[Ti.Media.MEDIA_TYPE_PHOTO], success: function(e) { if (e.mediaType ===...
Slide window Effect in Alloy
Hi, I have decided to work on alloy for development. So, I am here to ask my first question. I want the window open with sliding effect from Right to left. I have used the animation effect from left to Right slide window. Which I have implemented using...
Android alerts not working
Building a mobile app and running into issues running some confirm / alert dialogs when trying to register for push on android. My dialog boxes are not appearing in the simulator at all. The below code should run at start up(along with a gps location (yes,...
Titanium SDK 3.1.0 [ERROR] TypeError: argument of type 'NoneType' is not iterable on building android app
Hi, I´m trying to run an android app with Alloy framework and got this error: ~~~ [TRACE] Writing out AndroidManifest.xml [ERROR] Exception occured while building Android project: [ERROR] Traceback (most recent call last): [ERROR] File...
Solution for those with the "Android + Webview = Resource Images Not Showing" Problems
Hey guys, Thought I'd share this since I spent hours pulling my hair out (until 6am) and trawling through dozens of the same questions posted here over the last 2 years. I slept on it and came up with a solution today. As some of you will know, having...
Android new Navigation Drawer?
There is a way to use the new [Navigation Drawer](http://developer.android.com/training/implementing-navigation/nav-drawer.html) with [ActionBarDrawerToggle](http://developer.android.com/reference/android/support/v4/app/ActionBarDrawerToggle.html) within...
Android - 'NoneType' is not iterable???
I just started getting this error, and nothing I do can get rid of it. It started after I installed the new V2 Map module and added the relevant stuff to my tiapp.xml, but getting rid of that and cleaning does not make the error go away. ~~~ [ERROR]...
Exception in Google Play Store
Application Type: mobile Titanium SDK: 2.1.3.GA Platform & Version: Android (No Version supplied by Google Play) Device: Physical Device (No more Information by Google Play) Some time ago, we released a new version of our app to the Google Play...
save check box state in android
i am using check box for saving data in database .if it is checked then app redirecting to other screen by saving data after that if i click on device back button then app showing it is not checked.how can i fix this issue?
Emulator process exited with code 1
I am new on Titanium Studio. I try to test the sample : KitchenSink with Androide Emulator. Titanium Studio, build: 3.1.1.201306112235 OS : Window 7 Errors are following : Titanium Command-Line Interface, CLI version 3.1.1, Titanium SDK version...
error after new update
~~~ [ERROR] unable to sign jar: java.util.zip.ZipException: duplicate entry: lib/armeabi/libstlport_shared.so [ERROR] : Build process exited with code 1 [ERROR] : Project failed to build after 2m 21s 883ms ~~~
Image sharing on twitter
I am trying to share image on twitter using social.js, with Twitter rest api 1.1 but unable. I get an error saying with message saying 'Bad Authentication data' and error code 215. If anybody has done some such thing, his/her suggestions are required.
problem while running on device after the last update
~~~ [ERROR] Exception occured while building Android project: [ERROR] Traceback (most recent call last): [ERROR] File "C:\Users\Moghazy\AppData\Roaming\Titanium\mobilesdk\win32\3.1.0.GA\android\builder.py", line 2553, in <module> [ERROR] ...
Automatically open app when visiting website
Hi all, Is it possible to make an application automatically open when visiting a website in my phone's web browser? For example, on my Android Smartphone if I visit Reddit then Android will ask if I want to view it in a browser or in a certain...
deleteRow is not deleting the row properly.
Hi Everyone, I am stuck on a silly problem. I have a table in which data is fetched from local database. What I want is when I longclick on the any row an alert is shown which contains a delete button by clicking on delete button record should be deleted...
Android Custom Font in WebView
I have a custom font included with my app that works on both iphone and android. on iPhone I can even use it in a web view, but I don't seem to be able to do this on Android. Any one had any success with custom fonts in webview on Android? any...
android action bar menu
i have an application based on TABGROUP and i have followed the examplae il doc page here: http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.Android.Menu (alloy example) i have put the code in Window that is inside a Tabgroup and when window is...
Image visible= false/true savedata
I work in Android. I have a button. When I press the button the image changes from visible / not visible. I can save the configuration as (visible / not visible)? (if I close the application I want to be saved) I have worked with sqlite databse, but do...
WebView and Js give me headache Please Help
I have an web view on Windows witch use Jquery 1.7 carousel. All the Js on the html fire Action on html navigrator but on the Iphone or Android device don't fire any event. Titanium Web view ~~~ Ti.App.addEventListener('ClickWeb', function(e) { ...
voice search is not working..
hello everyone i got big problem in my emulator..actually i m developing one application which has faciality of speech to text and text to speech ..after doing lots of google search i have found the way to enable that in my emulator ...that is...
Stop the back button closing app on Android
I'm having real trouble structuring the app to make the windows behave like I describe in [this Q](http://developer.appcelerator.com/question/34141/window--view-structure-to-get-app-to-behave-like-this). I'm now trying to go back to basics. Here's a 2...
Table view lazy loading not quite working properly
Hi, Running SDK 3.1, Android 2.3+ Hopefully I'm missing something obvious, but I don't see it, so please help!! I have three screens in my app that load remote images to display in a table view. One is working just fine, the other two are behaving...
Creating a module for displaying admob interstitial ads
I got the following errors when using my customized admob module for interstitial ads. [Screenshot of my error](http://d24btqn3e6lhgr.cloudfront.net/images/error_admob.png) The interstitial ad shows nicely but after it appears, it crashed. An exception...
Click event not fired after animation on android
I have a view that is out of screen. At the start of app, the view will animate into the screen. Problem is that I have a click event listener on the view. After animating, when i click on the view, the event listener is not fired. Anyone have a fix on...
Titanium.Media.createSound cannot find my file :(
OK, that's probably obvious, but I've spent last 5 hours and cannot find the answer. I want to display an image and play sound. I put image and mp3 file into the same directory. Creating a view with background image works fine: ~~~ var view1 =...
Set background image to textfield with relative positon.
Hi.. I'm trying to give a background image to text field in relative position. I've a login page, I'd like to add a user icon in username field and a lock icon in password field. Just like leftimage in tablerow. Is it possible? Please help me. I'd tried...
Scrollable view inside a scroll view
the code is working fine in emulator but I run the app in device its not working.any suggestion pls ~~~ Ti.UI.setBackgroundColor('#fff'); var win=Ti.UI.createWindow({ modal:true, backgroundColor:'#fff', title:'Assessment' }); var...
Performance problem
Hi, i'm working in an application for Android and when i test it in emulator or in the Android device the change of windows is slow and i dont now if is because is a developer version and when i build the final version the application speed is better, or a...
Tableview , tableviewrows, code general function all rows
I work in Android hello, I have about 20 rows. longclick in row1, the rigthimage changes to 'xxxxx.png'. (and if I close the aplication is saved). ~~~ var row1 = Ti.UI.createTableViewRow({ title: 'title1',font : { fontSize : '30'} ,data1:'16-05-1968',...
QRcode Scanner Twist
I installed a module for QR code scanner, it works fine. After scan, It gives link and also information about parsed content. After on click on the link, it redirects to a website or the site where pdf's or ebooks could be downloaded. But if I want to...
My app is working fine for Android and closes automatically after one second in iphone
In iphone simulator closes automatically. Please help me and tell the possible solution.
Nfc libraries
Does titanium have any libraries for nfc?
android remote image dosent showup
hi, i have a crossApp (IOS , android) and i showing some images remotely from the server it showup on IOS , but never show up on android ( i use imageView and method setImage(URL OF THE IMAGE)) and i tried to set URL from another server or any...
error using internationalization
hello titanium community, I'm beginner using titanium and I'm following the guide for develop mobile apps using titanium. In the part of internationalization there is a exercise and I got this error: [ERROR] Exception occured while building Android...
Action Item in same row as Tabs
Hey, I was wondering if it's possible to create a TabGroup, paired with Action Items in one single row. I'm currently on SDK3.0/Ti3, testing on a Android 4.1.2 device. My goal was to create something like...
SkImageDecoder::Factory returned null when doing a HTTP Request on Android with Ti3.0.0+ and Alloy
Hi Guys, I've noticed some strange behavior when making a HTTP Request using HTTPClient on Android. I was previously using the 2.1.4GA SDK, but had to start using 3.0.0GA+ today after I updated Titanium Studio, the Titanium CLI and Alloy this morning....
How to set hardware accelerated to true for a window - Android
I need to set hardware accelerated to true for a particular window(activity) not for entire application. Requirement: To play video in webview in android it is required to set hardwareAccelerated to true. But by setting this in application borderRadius...
my application crashes when installed on a motorola razor
Hello everyone when I try to install my app on a Motorola Razor model XT910 (Android 4.0.4) the application crashes. The log is throwing: ~~~ D/00:08:08.724 GC_CONCURRENT freed 1068K, 11% free 9908K/11043K, paused 84ms+7ms D/00:07:37.044 No JNI_OnLoad...
Active emulator failing to mount app
In the past, to install my application on an Android emulator I would first launch the AVD manager. From there I would choose my desired device and launch the emulator. After it completed opening I would then call `titanium build` from the command line....
App crashing with NullPointerException [Android]
I have a simple scrollview with some images in it (image inside view ordered as a grid inside the scrollview) and added a click event on each image. When I click the image a new window will popup with content. But I have random crashes (app will close...
android amulator 7in doesn't work
android amulator 7in doesn't work hegive me this message ~~~ [INFO] : Emulator process exited successfully [INFO] : Project built successfully in 13s 517ms [INFO] : Emulator not running, exiting... ~~~
Android Emulator id error
Hi, I'm currently trying out the Titanium CLI (Running Titanium SDK 3.1.0.GA and Alloy 1.2.0 on Ubuntu) to build an Android app using the Alloy framework. I am able to create a basic Alloy app using 'titanium create' followed by 'alloy new' and then I'm...
Android/iPhone Get pixel level data
I'm interested in getting the rgb values of a given pixel of a photo when it's tapped by the user. Is this even possible?
Android: pinching of web map view with leaflet
Hi, I know, native is better. but there are reasons to use leaflet.: ~~~ var leaflet = Ti.UI.createWebView({ url: 'http://leaflet.cloudmade.com/examples/mobile-example.html' }); leaflet.open(); ~~~ On iPhone it worls fine, but on Android the following...
Cannot find app.js in App Explorer
Hi. I'm new to using Titanium, and the initial README file tells me that to begin editing my app (targeted to Android), I should edit app.js. I tried finding app.js through the App Explorer pane, but I couldn't find it. Eventually, I did a search through...
youtube video not working in Webview with anyDensity set to false
youtube videos in an frame inside an android WebView stopped working in our apps. no video (black screen) but can hear sounds and see video controls.