background services in Titanium - android

In my application I need to sync my local database with web server. Now I can able to sync with web server, but I need to do this as background service(like gmail sync). How do I do background service in Titanium (both Android and iphone)

Titanium Service for Android and ios platform
Android Services
iOS Services
Note that you will have to handle this different in each platform.

Related

How to deploy DL model to the cloud and run it on Android app?

I am working on a deep learning android app. I have trained and tested the model and everything is complete in that area. Now I have to deploy it on the cloud.
If a user used the app their data is sent to the model which resides on the cloud and the result are sent back to the user's mobile app and displayed. The reason the model is deployed on the cloud is because it is to be an "online learning system".
What I don't understand now is how do I connect the android app user interface (developed in android studio) and the model.
Should I use Kafka or anything like that? If yes, what steps do I need to follow to deploy my jupyter notebook to the cloud and then connect the whole system to the android app user interface.
You wouldn't use Jupyter. You'd embed your model in a web server and interact with it like any other HTTP service from your mobile app
Kafka alone isn't an HTTP service and doesn't host ML models; it would need to be paired with other tooling. KSQL, for example, does have a REST endpoint. Example - https://github.com/kaiwaehner/ksql-machine-learning-udf

Integrate IBM RTC to worklight for Android App

I need to develop an Android App which will sync the work-items from RTC Server and show as push notifications to the manager, who can approve, comment or cancel that work-item.
For this, i did explore RTC APIs on jazz.net and integrate its client to Eclipse, after this i also successful in making connection to the Server by using RTC Example provided, So please tell me how can i integrate it into Android App
whether i need to work on eclipse plugin development OR using Plain Java Client Libraries?
and whether i can use worklight for integration and get server rich features?
Worklight does not have anything to do with this.
It's just a framework to develop mobile applications.
You need to figure out if RTC provides API to do what you want.
If yes, you need to implement this API in the application.
The communication to the server is done by adapters, assuming that the RTC server has endpoints that allow connecting to.

Using Azure Mobile Service SDK instead of Volley

I am developing an android application using Asp.Net Web api as a backend service. Up to now, I made my whole requests from android client to web api service using Volley and built my framework according to this perspective. However, while reading some documents about Azure platform. I find out Azure Mobile Services and its own Android SDK like MobileClient and in document says that we can also use this SDK in our native android application and it brings in cloud sync, authentication, etc.
My system already works and changing my android application to Azure Mobile Service SDK causes lots of extra effort. It is worth it?, or does Azure Mobile Services SDK make my android application more scalable, secure, etc.

How can I connect to a non-default version of an App Engine app through the Cloud Endpoints client library for Android?

The App Engine backend of my Android app is actually a non-default version of an App Engine project. However, if I connect to the App Engine backend from Android device through the Cloud Endpoints client library that is auto-generated from the backend, I see that the results retrieved indicate that I get connected to the default version of the App Engine project.
How can I make the Android application connect to the non-default version?
As always, thanks so much for your valuable advice!
I believe you can connect using the version specific url by using the setRootUrl method on the builder when creating the endpoint-client?
myEndpointBuilder.setRootUrl("https://<versioned-address>/_ah/api/")

IBM Worklight - Can SQLite be used to share data between Android service and Webview?

I need to save an id through the Webview and then access it through my Android service.
I would like to know if I can use SQLite in my Webview (via cordova interface) and
also from my Android service, while accessing the same database.
Cordova uses Web SQL for Storage: http://docs.phonegap.com/en/1.2.0/phonegap_storage_storage.md.html
There is, however, a Cordova plug-in to use SQLite: https://github.com/pgsqlite/PG-SQLitePlugin-Android
To learn how to use Cordova plug-ins in Worklight, see these IBM Worklight Getting Started training modules
You should then be able to access the database from the Android service: How to use SQLite from Services in Android?
I am guessing the Android service will run only when the app is not running? I don't know if there will be any conflicts if both run at the same time.

Categories

Resources