Community Questions & Answers

check if there is an image javascript

Good Morning in my application I have created a web with saw I use createWebView I check in javascript if the picture is, if the image is present it shows the block, otherwise it does not display an image. here is my javascript code when I put the...

Get splashscreen image - IOS

I tried to use the image used as splashscreen on IOS but I don't know how. Here a tss ~~~ "#logo[platform=ios]": { backgroundImage: "/Default.png" } ~~~ Unfortunately, it uses the file named Default.png while I would like to have...

Convert image file to blob

I have an image in resources/images. I want to convert it to a blob and save it to applicationSupportDirectory. I have this code var image = Ti.Filesystem.getFile('/images/0.jpg'); console.log(image.nativePath); var blob =...

How to get the device screen size ?

Hello everybody ! I'm here because I've got a problem. I want to get the device screen height and width. I've tried ~~~ screenHeight = Ti.Platform.displayCaps.platformHeight; screenWidth = Ti.Platform.displayCaps.platformWidth; ~~~ I work with a Samsung...

Get image from ACS post query

When doing a query for posts I can only get the photo_id, which is just a ACS id and makes no sense in the context of my app:/ In the ACS web panel all the post photos is stores under "Photos" but I can't find any image Url there...

How to use the device screen size ?

Hello everybody ! I'm just a new user of Titanium Studio, and I'm currently learning how to develop on Android. More, I'm sorry for my bad English (because I'm French !), and I hope I will be clear. So, I just want to create a simple app, where I will...

Tableview without images

HI, I need a tableview with 2 fields: a text and a image. I use this code: ~~~ var rows = db.execute('SELECT * FROM Termostatos ORDER BY Termostatos.Nombre'); var RowsTabla=[]; var i; var sectionTabla = Ti.UI.createTableViewSection({ headerTitle:...

Blurring Effect on Views

I know this question was asked many times before, but I just want to get an update on creating a real-time blur effect of a view. I found several third-party software that can create the blur effect, but they have unclear Copyright legislation stated on...

4 picture 1 word.

Hi! does anyone knows how to do something like the game app call 4 picture 1 word? for my app i would like to select an image and the image will automatically be placed in the first empty box. etc appreciate if anyone knows what this function is called or...

Image aspect ratio when loading into an ImageView

Since updating to 3.0, I've noticed a problem when loading images into an ImageView while maintaining the image's aspect ratio. Prior to upgrading to 3.0, I could set the maximum width and height and the thumbnail image would automatically scale to fit...

Uploading an image from iOS App

I am trying to upload an image from my camera roll to my server. The php code works fine by itself but I can't get to upload the image from my app. I always get a 404 error. PHP Code ~~~ <?php $allowedExts = array("gif", "jpeg",...

Can't use base64 in an image

How can i use base64 code in an image? ~~~ var dp = Ti.UI.createImageView({ image:'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/4QBYRXhpZgAATU0AKgAAAAgAAgESAAMAAAABAAEAAIdp AAQAAAABAAAAJgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAALqADAAQAAAABAAAAKwAA...

Work with Image Gallery

Hello everyone, I wanted to know if with the latest SDK of Titanium (now 3.4.1) and Apple (now iOS 8 SDK) we can perform more actions on the images I would be interested to know: - Name full image - Extension image - Creation dates image - Ability to...

Background Images in Android

I have a background image with logo. I want to appear that logo same of very device proportionally. It works well with samsung s4. But when I am trying of nexus 5 its compressing. and when I am testing in HTC one its stretching. I have tried...

Container not resize correctly

I'm creating some container and images calculating the dimension with the displlay width. On iPhone and iPad this works well but on android is not working... This is the code: ~~~ var header_cont = Titanium.UI.createView({ top:'0%', ...

Showing 1-50 of 1,296 1 2 3 4 5 626