Community Questions & Answers
What database to work with?
Hey there. Im building my first Titanium application for mobile. Its a very simple application where the idea more or less is to add the users information to a database and then return statistics based on all the user inputted data. Its only based on 3...
Can't scroll to last row in tableview when generated from remote json.
I'm grabbing a remote json file and using it to build a simple table view. Each row contains a thumbnail image and a short line of text. There are about 25 rows, and when I scroll down, I can't scroll past the second to last row. If I switch tabs and...
Resize remote image for web view
Hi guys, I have a remote image that I want to display in web view. The problem is, the image is too large and hence it doesn't fit the screen. So I want to know how can I fit the image into the screen? I'm building for blackberry and is using a very old...
Upgrade local database with remote database
Application type: mobile Platform: Android Hi guys, I have a question for you. how can I update the local database of the app with a remote database? thank's
Loading remote images is slow
I have done some apps (ios and android) with Titanium with a list of items and images, restaurants for example. Some of this apps have more than 500 items. The question is: I think Titanium loads remote images really slow. If I compare my apps with other...
Using Alloy and pulling data from a remote REST API (JSON)?
I've been away from Titanium for about 6 months and have just started working on a fairly simple little app, that pulls a list of items from our existing json api with basic authentication. I've been trying to look through the docs, but really cant fathom...
Mobile Safari Meta Tags Not Working If Loaded Via LOCAL Webview
We have an app that uses a lot of webviews, and have managed to get the web content (images and text) looking correctly on iPHone4 high res and on older iPhones by making the page very large, and having the page scale automatically using this meta tag in...
How to check if a scrollableview is done preloading all images?
with cacheSize you can set the number of images that the scrollableview has to preload, but how can I check when it's done preloading? Reason I need to know is because I want to show a loading indicator while loading X-number of remote images, that...
Remote image caching, use HttpClient or custom cache
There is some posts over there speaking about how to implement a custom cache mechanism for remote images in ImageView: - Titanium guide explains it here :...
change videoplayer url
Hi, I have a 2 remote videoplayer urls, low bandwidth and high bandwidth. I have an OptionDialog opening on start, ment to change the video url. I have buttons which are ment to change the bandwidth on click. However, these two methods are not changing the...
Download Remote SQLITE DB Android
I Dont no my mistake hope someone can help me. Here is my code ~~~ var dbProd = Ti.Database.install('/db/gastroapp.db','gastroapp'); btnUpdateProdDB.addEventListener('click', function(e){ //function UpdateDB() { //var osha =...
remote apk
Hello I wonder if I can make an app that can remotely update the apk intalada in the tablet (I think it may be by ssh, vnc etc). I hope for your response and probably already some have this same question. thanks
How to get the number of files in a remote directory (without server-side scripts)
Hi! I'm wondering if anyone knows whether it's possible to retrieve and store all the URLs of the files in a remote directory (i.e. not on device) in an array, or otherwise how to get the number of files in that directory. The thing is that I have a...
How to Get Remote File Timestamp
I'm creating a mobile app that needs to compare a remote text file's date (timestamp) to determine if I need to download it (ie. it's newer than previous download). I don't want to download the file first because the new local file gets the current time...
Update app's local html webview'ed files.
I've been struggling with this on and off for a while and keep working around it, but I really am tired of it and want to figure out a solution. For some reason I never ask things on here because I would prefer to puzzle out problems myself than simply...
SQL server and/or Sharepoint
what is the best approach to access remote data from an iphone/android etc... The data resides on SQL server or SharePoint.
fire event on webview with remote url
Hello, i have a webview with a remote url. i want to open links in that file in safari - not in the webview. is there a way to do that? thanks and best regards, Roman
Remote images in table row / jump position / crash app
I'm using remote images within a table view and don't seem to be getting very far. I've tried imageViews and webViews, both with similar issues: * images show up randomly * images change position within the table while scrolling (!), jumping literally...
Urgent: how to clear/reset Titanium remote image cache (Android)?
Hi, we are receiving a lot of reports from our Android users about our apps (at least 2 different ones) abruptly becoming UNABLE to display ANY remote image. Once an app gets the problem, it is stuck there and DELETING THE APP and reinstalling does NOT...
Android Streaming Video
I am hoping I am just missing something, but is it not possible to do remote streaming video with Android in Appcelerator? It would seem that "Titanium.Media.VideoPlayer" does not accept a URL on Android... Am I doing something wrong? is there...
Ti.App.fireEvent for the remote webview
The Ti.App.FireEvent is giving me the error when i'm working with remote webview.The error it is saying "ReferenceError: Can't find variable: Ti...", but Ti.App.FireEvent is working fine when i'm using the local webview html file in my resource...
Remote JSON into Table View
I have tried this a million different ways and I cant seem to get it to work. I have a page on a server that outputs a JSON dataset. I want to capture that data and put it into a table. it seems like the downloading of the JSON works but I cant figure...
Mobile iOS - Masking remote images
This is not a question, but an answer to masking remote images. It seems the "createMaskedImage" method only works if the image is local... which I guess makes sense if it essentially creates a new image with the source image and mask... feature...
How to save a remote image/picture to database or filesystem
I create a remote imageview, I want to save the remote image to database or filesystem. I tried this code: --- var img_url = "http://www.google.com/intl/en_ALL/images/srpr/logo1w.png"; var remote_image_view =...
VideoPlayer FullScreen Done Button
Hi there, i have a video player that plays videos from remote url, so i have looked at the Kitchen Sink example for remote url and i have done my player like this; ~~~ Ti.include("functions.js"); var video_pencere =...
iOS Remote Image Cache
Hi, I know that SDK 1.8.0 automatically caches remote images (in Library/Caches) once, so next time when this image is requested from a server, the cached file will be displayed automatically. Works even if user is offline. Now I upgrade to lastes SDK...
Take a remote database on android
Hi, in my android app i need to populate a tableview with data from a remote database, how can i do it?
get data from a nonlocal JSON
Hey, I want to fill a tableview with data from a json file. With the local json file everything works fine but i don't really get how to do the same thing with the json file being "on the web". I know this sis possible but i dont know how to do...
Clear cache remote image
I need help. How I can clean the cache of a remote image of a imageview? Example: KitchenSink> BaseUI> Views> Image Views> Remote Image First download the image and show. The following, show the image of the cache. **I need to clean the...
problem with remote images and imageView
for some reasons imageView does not show remote images which is located on my server, and this problem only with jpg and png files but gif can be displayed without any problem ? here is my code ~~~ // var img =...
Remote Json TableViewRow
hi, i am using remote json and want make a restaurant menu with it, but i can't understand how can i put row header to categorized menus. i am trying to make something like the picture http://s10.postimage.org/xvmet85hl/menu.png i can pull all menu...
making global database for app
hi , I have no issue to ( select/insert/delete ) from internal db ( database installed in the app ) from remote site but the problem : each user will have his own database without make changes in the remote global database like this code : ~~~ function...
iOS Application Fails to Resume on Time and Crashes on Remote Play
I've managed to get the remote audio controls to pause the sound being played by the application and the application will re-open fine when I go back into it. However, if I press play, my application will crash. I've tested the script with the play...
Update Local SQLite db with remote MySQL db on open
I have a number of questions, but if anyone could answer just one of them, it would really be very, very helpful. :) Okay, I have a MySQL database on a remote server that I would like to use to update a pre-populated SQLite database on the app (for users...
How to get UI.ImageView width and height from a remote file?
Hello, Using the "old" 1.82 sdk, when I loaded a remote image into an ImageView (getting the file from a remote server, by example) letting the width and height properties empty I could then read these properties from the ImageView to know its...
2 databases but always take form the first in install
hi :) , I have 2 buttons ( install internal db & install remote db) , the problem is if i install the internal db first the the app will take it all the time even if install the remote db after , and also if i install the remote db first it will take...
Remote image in custom tableviewRow
Hi all, I'm having troubles with an remote image in a custom tableviewRow. When I use this row in my tableview, the images aren't at 'top:0', and the image is much smaller than 60. It's centered between top and bottom, but I've set the hight the same as...
Animate a view using it's id instead of variable
Hi, I was wondering if there is anyway I could animate an imageView using it's id, instead of it's variable name. For instance: ~~~ var imageview = titanium.ui.createImageView({ }); imageview.animate({whatever}); ~~~ this is how I'd normally do it. But...
get creation date of image
Is there a way to get the creation date of image. I pull the image in from a remote location that refreshes that image every 5 min.
any good SQLite hosting ?
hi , i want to make a remote database to my app , so as I know I need SQLite hosting , is there any good sites you know offer that ? ( for free or with fee ) , --- btw can i use cloud service for that purpose ?
Remote image in DashboardItem
Hello guys, I have a problem which taking me down. I am trying to set the image of a DashboardItem as a remote URL. The images loads if I put it in my resources folder and link it from there, but it doesn't load from the remote url. Here is the code I...
image load
Hello, in a simple imageView property how can i add a listener for the image if loaded, i just want a alert if image loaded, ~~~ var myimage = Ti.UI.createImageView({ image:'http://www.xxx.com/1.jpg', defaultImage:'default_image.png', ...
Weekly local database update
Is it possible to create a weekly db update, instead of providing a weekly update to the app. So… every week, the local db would be overwritten with the new content of a remote mySQL db. I am not concerned about how to actually get the contents of the...
DB.install from remote SQLite file
Hi all, I seem to have a problem: 1) On the iPhone, I am not able to save downloaded remote files anywhere else than within the Ti.Filesystem.applicationDataDirectory for some sort of sandbox 2) As a consequence, I cannot save a remote SQLite DB file...
Can't View Content in Remote FTP Folders
Pulling my hair out trying to figure out why it is I cannot open folders on the remote FTP server and see their contents. Such a simple task has turned into serious lost hours. Also cannot transfer files to them. Error reads "__Parent path does not...
Database FileSystem getFile location?
Hi, I'm trying (desperately hard) to download a database from the internet (my web server) and have it installed (well, replace at least) the existing database in the iPhone. I need to know the file location where I'm meant to put the database? We cannot...
save 100+ remote images to disk
Hi, Im trying to download a image gallery and have it to the phones filesystem. This works great with 30-50 images at the time. But one of apps has a large amount of images in the galleries, which for some reason will not save all these files to disk. Some...
Server-Client application on android
Hi, i'm planning to develop a server-client application on android platform. The server should be able to lanuch remote commands, stream videos or audios, share it's desktop or camera. The server should also be able to take a snapshot of the client...
[android] remote image size
This only affects on Ti.UI.ImageView. It doesn't affect on row's leftImage or Ti.UI.View(backgroundImage)  As you can see , i have an 100x100 remote jpg which i define it as this: ~~~ var imageFRow =...
remote images don't load anymore if url is encoded by function (Android SDK 1.6 r0dc07b2f)
When loading remote images into a imageView the images are not loaded anymore if the url is encoded by the function encodeURIComponent(url). This happens because slashes are translated to %2F. It seems to me that the image loader can't deal with that....