Community Questions & Answers
Store Array with Local Notifications in APP
Dear Appcelerator people, Is there a way to store an array with local notifications in the APP itself? So when im closing the APP completely and reopening it i still can detect the stored notifications? now i have this piece of code for global...
Close All Windows At Once
Hi, In iOS there is a default behaviour, when you navigate more than one level in a window that is assigned on a tab as its main window, and then click on the tab, it goes right to the main window of this tab (no matter how deep you have navigated. I am...
exit functionality in android application
hi, i am developing an android application in 3.0.2 sdk in this app i want exit from application on click of a button , i have used the following code for that : var activity = Titanium.Android.currentActivity; activity.finish(); when i click...
Window don't close
I am making an iPhone app with a facebook like slide navigation, which is working just fine. In addition I have 3 buttons on the top bar where I need different overlay windows for each button - first tap opens the overlay and second tap close the window...
Browser Connect to Background TCP Listener Hangs in CLOSE_WAIT
Place a TCP listener into the background created with Titanium.Network.Socket.createTCP method. Connect to the listener from Mobile Safari (http://localhost:50505/) on the same device or simulator hangs a TCP session in a CLOSE_WAIT status even after...
getting force close and infinite loop in my app
hi , i am getting force closed in my application at two points. 1) i am trying to scan a QR code after scanning if click on tab containing list view it is going to infinite loop. 2) when i enter data in to text box and continue the process of my...
Can't close window inside Geolocation getPosition error
Platform: Android 4.2.2 SDK: 3.1.0 RC Alloy project I'm opening a new window with ~~~ $.btn_add.addEventListener("click", function(e) { var report = Alloy.createController('report'); report.getView().open(); }); ~~~ inside my...
Refresh Page upon tab click
Hi All I am looking for a way to reload a page upon a tab click currently it just maintains the previous state i want it to completely close and reopen again. I am a newbie at titanium so some help with this would be amazing. ~~~ // this sets the...
Close TabGroup iPhone / SDK 3.0
Hi. Im trying to close a Titanium.UI.TabGroup with tabgroup.close(). The tabgroup closes, but it doesnt seem that it is released from memory. When trying to rebuild the tabgroup, it seems like it keeps all the windows from the previous tabgroup aswell,...
UIApplicationExitsOnSuspend
Has anyone got this to work? I have even tried it on KS and it does nothing. The app enters suspend mode only and does not close down in completion. Is there more to just editing the info.plist file in build > iphone? regards in anticipation. AndyG.
exitOnClose doesn't work with me.....
now i made widgets in my app and in the first page win i click in my back system in android doesn't give me any response ........... This is my code in the widget:(// Originally derived from example code from Appcelerator developer relations. $.windowStack...
iOS vs Android Window Close
Hi, In iOS i tried to close a window with `win.close();` and it never worked (it just made everything back but did not go back also) so instead, I use : ~~~ Titanium.API.currentTabGroup.getActiveTab().close(win,{animated:true});| ~~~ currentTabGroup is...
How do i close my win?
Hi. I have a function that runs in a window that i am creating onClick on btn. It used to be on a tab but i decided to move to a button inside the app and that made problems for me.. The window (That is created inside the function) has navBarHidden:...
Window Animation (Open)/Close
Hi, I've been searching the Q&A for a while now with no really specific answer for what I'm looking for. I want nothing more but an sliding animation for when the window I'm using closes. To be more exact, here's what I'm working with: I have chosen...
Minimize application when press back button
how to minimize application when i pressed back in home screen but not back to splashscreen??
Close window with no animation
How can I close a window (sub nav of a tab group) without animation? The close method seems to accept an animation object, but I have not been able to use it successfully at least on the phone. I need a way to get back to the root tab window and closing...
Alloy widget's window can open but fail to close
I am running Ti.SDK 3.0.2GA with Alloy1.0. I can't solve the problem I have with my code. The problem: The widget opens successfully but fails to close. Appreciate any help pointing out the fix for this problem. Thank...
Close app with exit button
Hiya, I've made an exit button on my app window(The first window created in app.js, all windows are added to this one). I'd like to close the entire app when someone pressed the "exit" button. However, it doesn't seem to work. Could someone...
I got out of memory error in android app?? How to resolve it???
When i open 6 to 7 page then i got out of memory error and foreclose my application and crash. how can i handle it???
.close does not work as expected with Alloy framework
Hello, I have read a lot of threads in the Q&A here as well as threads on Stack Overflow and other communities that the .close() method should completely close and remove a window. As I understand the documentation and the threads and comments I have...
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...
How to close all Windows and open another Window in Android with out pushing win object to stack
Hi, I need a better solution for closing all opened windows and open new window only in android. My case :- User can click on logout button in any page. That time I have to close all opened (model:true) windows and show login window. In iOS I used...
App crashes when I try to close a window
I have a window that has nothing but a tableview on it. In this table view there are navigation buttons, an image, and a log out button. All the navigation buttons work fine, but when I click the log out button it crashes. The 'click' listener on...
Titanium closes window painfully slow
I have an application that opens a login window, then a navaigation window, and then the window of the module they wish to use. For one particular module it displays the most recent 30 blocks of information and displays them in a tableview. It looks like...
set exitOnClose application not exit real
app.js: ~~~ var win1 = Ti.UI.createWindow({ backgroundColor : 'red', exitOnClose : true, fullscreen : false }); win1.open(); ~~~ when touch android back key to home screen, but the Settings -> Applications -> Manage applications show the...
Closing a window hosting a webview
Hi All, I have facing a problem in closing a child window which has a webview added to it. The child window is added to a main window. Here is the code snippet: ~~~ function ApplicationWindow() { //load component dependencies var FirstView =...
Close application with onclick
Hello, I got an AlertDialog, when a users clicks on 'Ok'. My application should shutdown. Does anybody knows how to do this? Greetings, Jacob
Animate windows and remove/close first window
Hi In my app the frontpage consists of 2 pages and a tabgroup inbetween. The first page is a login page, the next is a "whats new" page which is avaiable even when you are not logged in. As I understand it I should be able to close the...
Application stays in cache even after quitting in Android
I have created an application for android and I am facing a critical problem. My application should quit when I press the back button. On pressing back button, I am coming out of the application, but the application is getting cached in the memory. If I go...
Open a modal window AFTER modal window has finished close event, call back or anything
I have 2 modal windows in a titanium iOS app. win1 is open. I want to close it, then when that is finished animating, open modal win2. so pseudo code of what i want would be: `win1.addEventListener('onclosecomplete', function(e) { ...
TimePickerDilaog at click of text in label view
I am doing an app for timetracker.... i have button check in/check out for the app... when i press check in a table view appears ... having column for in and out time..... now when i press check in a time stamp appears for in and out label... now i...
Multiple Options Dialogs Open on Button Click - iPad
I have a button in my Top Navbar. On click it opens the dialog directly below with the ^ pointing right below the button. Works awesome. Except... When I click the button again it opens dialog box right over it. It seems that the option dialog screen...
how to cancel physical back button in dialog show?
how to cancel physical back button in dialog show? I have a dialog alert, when the dialog show , user click physical back button will not to do anything. but I set back button code, the trace still going to ---jump1---- or ---jump2----statement. how to...
Close event on a "page curl" modal window
It seems that the close event is never fired on a window with a "partial curl". Hitting the curl closes in fact the window, but the "close" event is never listened (changing the modal transition and adding a real "close"...
Window.close doesn't work after plugin is used
Application type: Mobile Titanium SDK: 2.1.3v20120915120319 Device iOS 6.0.1 Host OS: OS X 10.8.2 Titanium Studio: 2.1.2.201208301612 So I'm trying to use the com.mirasense.scanditsdk plugin. It works great other than trying to close the scan window. ...
Window open and close with flip animation closes too quickly
I have 2 Windows that can flip between eachother using Titanium.UI.iPhone.AnimationStyle.FLIP_FROM_RIGHT and Titanium.UI.iPhone.AnimationStyle.FLIP_FROM_LEFT The problem is when the Titanium.UI.iPhone.AnimationStyle.FLIP_FROM_RIGHT animation fires to go...
Close parents of actual window
Is there any way to close parents of actual window?
What is the best option to open windows
Hi, All I have a multiple window app and have buttons to go back to previous pages if I use my app the first time all works well but if I page back my some of my icons on my page does not work. if a page opens it looks like this ~~~ winMail.add(new...
Close parent window
Hello, Is there a way to close the parent of actual window?
closing the photogallery if autohide = false
Hi Suppose i set the **autohide** option in **Titanium.Media.openPhotoGallery** to be **false**. How can then i hide the photogallery in case of success, cancel or error. Thanks
Eventlistener doesnot return to tableview
Hi, as a newbie i have a problem returning to a tableview after a click event. I have a tableview and click on a row opens a small map with annotation. Now i want to click the map to return back to the tableview. The 'win.close(map view)' close the the...
Empty a Window
Hi, I have a window that contains six buttons, each button has a Click event that fills a window named products, this six products are displayed depending on the button pressed. My problem is that when I return to the window of the six main buttons and ...
What happened to the close event?
~~~ Ti.App.addEventListener('close',function(event) { //-- The home button was pressed/app was closed }); ~~~ The above no longer works on iOS or Android. I am using the latest Ti SKD release: 2.1.2 GA The last SDK I was using when it was working was...
stopped unexperctedlly
Application type: mobile Titanium SDK: 2.1.0GA Platform & version: Android 2.3 Device: Android emulator and physical device Host Operating System: Windows 7 Titanium Studio: 1.0 Dear folk, I got this unexpectedly stopped error, doesn't anyone has any...
Close Event for Window?
I'm working in Titanium Desktop, I'm not sure how to do this, but I was looking for a way to capture an event when a window closes. This works for when the application closes, but I think it fires after the window closes because I put the code to process...
Android application closing problem with sdk 1.9.0 (V8)
Hi, i have Android Application using 1.9.0 with V8 (Testing on Samsung Galaxy ACE android 2.2.3). When i close the application (android back button), seams that it doesn't exit immediately. It's not appearing in task manager, but if i try to open it, it...
Is there any way I can respond to the application close event?
Is there any event that I can respond to when the application is closed? I want to send a message to the server, informing the user closed the app
Android window close event not firing
For some reason, my app, build with 1.7.2 is not able to add an event listener to a window's close event, on Android. Here's my code: ~~~ Window.addEventListener('close', function() { alert('the window was closed'); }); ~~~ Nothing. Ideas? This only...
'android:back' not closing my window.
Hi,I am developing android application.In my application I need to close one window on click of back button of android device. My code looks like ~~~ var win = Ti.UI.currentWindow; var label1 = Ti.UI.createLabel( { text:'Edit ', }); var img_win =...
close and open an app iOS
hi, i'd like close and re-open my app. how can i do it? thanks