Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User rabeehkm's Avatar
    Join Date
    Jun 2008
    Posts
    21
    Hi Experts,

    I have form in which there are some textboxes and a dropdown list. and i have a option menu to take photo.

    Here is a part of my code which create a form, textbox, dropdown and a menu for camera

    Code:
    stations = [u"Select" , u"Station 1", u"Station 2", u"Station 3", u"Station 4", u"Station 5"] 
    #Create the fields to be displayed in the form
    fields = [(u"Location", 'text'),
         	    (u"Station", 'combo', (stations, 0)),
              (u"Comments",'text'),
              (u"User Id", 'number')] 
    
    #Create an instance of Form
    myForm = appuifw.Form(fields, flags=appuifw.FFormEditModeOnly) 
    myForm.menu = [(u"Camera",initcamera)]
    #Assign the save function
    #Execute the form
    myForm.execute()
    
    def initcamera():	 
    	appuifw.app.body = appuifw.Canvas()
    	camera.start_finder(vf)
    	appuifw.app.menu=[(u"Take photo", take_picture),(u"back",backtomain)] 
    
    def backtomain():
    	#Close the viewfinder
    	camera.stop_finder()
    	#Release the camera so that other programs can use it
    	camera.release()
    
    #Function for displaying the viewfinder
    
    def vf(im):
    	appuifw.app.body.blit(im)
    #Function for taking the picture
    When i press Options>>Camera, the form only is displaying. when i press back, i can see the camera. That means the camera is coming in background.

    How to make it come in Foreground????

    And after taking pic, i want to come back to the form.

    How these things can be done???????

    Thanks in advance,
    Rabeeh

  2. #2
    Registered User rabeehkm's Avatar
    Join Date
    Jun 2008
    Posts
    21
    why no replies???

    Please Help Me

Similar Threads

  1. camera window resize ???????
    By akshaychaudhari in forum Mobile Java Media (Graphics & Sounds)
    Replies: 7
    Last Post: 2009-04-06, 10:58
  2. Camera activation using keypad
    By akshaychaudhari in forum Mobile Java General
    Replies: 4
    Last Post: 2009-02-11, 05:20
  3. Nokia N-Series Complete Model Line-Up
    By Dopod in forum General Development Questions
    Replies: 6
    Last Post: 2008-07-22, 20:16
  4. Implementing camera in a Ui Form
    By etranger in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2007-11-25, 07:13
  5. Question about default camera UI on Noika 3250.
    By stevenhotw in forum Symbian C++
    Replies: 0
    Last Post: 2006-07-17, 03:49

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved