언어 설정

Menu
Sites
Language
How to select an image from mobile device and set it as the background image, using jquery mobile in tizen web application?

 

I need to select an image from mobile device and set it as the background image of mobile application page.

And need to save the image path in sqlite db.

Can you help me?

Thanks in advance.

Edited by: Brock Boland on 17 3월, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

3 댓글
Lakshmi Grandhi
Hi anfas, To select image from mobile device, you need to launch gallery application from your app. For this you need to use Application Control , there steps mentioned in this forum https://developer.tizen.org/forums/web-application-development/how-launch-gallery-app-and-retrieve-which-file-selected. After then apply as content background in javascript file. Thanks Lakshmi.
anfas ci
Can you provide a sample application ? i am a beginner and have no more ideas. Can you help me? Thanks in Advance.
Raghu Kona
You can add the below line inside the init() method in javascript file, to set the background image $('.ui-mobile .ui-page').css('background-image','url("images/port.jpg")'); please be sure about the path of the image file. Regards, Kona