Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (threading)
Browsing latest articles
Browse All 19 View Live

Asynchronous DB, threads or worker processes in Titanium mobile?

Is there any way to do processing in the background? At the moment I'm updating my database just after displaying information to the user, but if they move too quickly they have to wait for the DB to...

View Article



Module development - call into the JS space from the ObjectiveC space in main...

Hi, Does anybody know how to call into the JS space from ObjectiveC space on the main thread with return value? In 1.7.1 the whole Ti API got picky about threads. A short background: We are working on...

View Article

Strategies for threaded actions (running tasks in the background)

I need to fire off several tasks each time the app starts - mainly http calls, for example to grab the latest data the user has entered on the website and to synchronize their mobile initiated items to...

View Article

Memory Leakage Problem (Titanium Desktop)

Hello All, I am using Titanium Desktop to develop a desktop application which responsible for managing media library. Where I need to execute some command line argument to extract TAG and FFMPEG...

View Article

How to tell when worker thread is complete?

Hello, I'm using a worker thread to carry out a search (simply checking an array of strings for a certain query) in the background of my main thread; it works wonderfully, but I can't seem to get it to...

View Article


Concurrency in Titanium

Hi there, It is the second time I find concurrency control problems in an application I am developing for three months now. I worked around the first one because I didn't find any built-in solution to...

View Article

Handling UI thread

I'm taking a screenshot in my app. I have a callback that accepts the screenshot and holds on to. It then shows a button that will present a new screen. I've run into an issue where when I try to show...

View Article

Thread management function (not a question, just an answer to my own)

Hello everyone, I was looking for a neat way to create multi threads with Titanium. I eventually found this post...

View Article


Threading Support?

Anyone care to share some best practices with regard to implementing multi-threading in an iPhone app with Titanium? As far as I can see there's no direct support for thread creation/management. So far...

View Article


Backgroung worker to start thread

I want to search some files on the disk and may that take some more time, so i want to start this process as background worker in separate thread and also want to monitor the progress showing some...

View Article

Cross platform multi-threading within Titanium Mobile

What is the best way to write multi-threaded applications using Titanium mobile? I see some posts on creating multiple execution contexts by opening new windows. Is that the best way? Wouldn't they...

View Article

Multithreading in Titanium

Hi everybody! I am creating an app in which I want some network-related things to happen in the backround and keep the UI responsive. Can somehow threads be used? I have seen that others recommend...

View Article

Android, During a long operation, setTimeout not firing.

I have a very long operation that is running in the background, and timers do not run their callback function once I start the long operation, even in what SHOULD be a separate javascript context (IE,...

View Article


IOS Titanium Module calling performSelectorInBackground

We are developing a IOS Titanium module that has to start a background thread in order to watch and fire events to the Titanium App. Calling performSelectorInBackground or NSThread start always causes...

View Article

Threading

Hi all, the following code is a loop which I have to run which will update my UI with the correct meta data title of a song currently played on the radio. I need the loop to run every 10 seconds-ish. I...

View Article


How to create multithreading in mobile sdk

I need to run some network operations in multi-threaded environment, can anybody tell me how to do that in titanium mobile sdk

View Article

THreading in Titanium

Hi, I was wondering how can I have multiple threads running within Titanium. I have to perform an expensive task (synchronization between local DB and a server) that would freeze the UI if I can not...

View Article


working with thread

Hi i want to make a thread wich evry 3 seconds run through the remote database and send the newer result as a notification for the mobiel client i have make the notification but I lost i can found a...

View Article

SQLite heavy transactions blocks UI

I have heavy and continuous SQLite db access to feed UI with data to show. Because of the single thread nature of JS this causes lags and freezes in the UI. How can I perform such heavy operations in...

View Article
Browsing latest articles
Browse All 19 View Live




Latest Images