언어 설정

Menu
Sites
Language
select single image on Tizen Gear

Can anyone tell me how to ask the user to select a single image from the gallery on the Tizen Gear watch

Currently I am using appcontrol, but it always shows me the gallery and the user can select multiple images, but i want them only to select a single image.

so a click on the image should be enough, I don't need the images with the checkboxes.

how do I put it in " single"  selection mode i.s.o "multiple" selection mode. 

example code (js) would we very welcome.

 

thank you.

Responses

5 댓글
AVSukhov

Hello,

Try following:

var appControl = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/pick",
                                              null, "image/*", null, [new tizen.ApplicationControlData("http://tizen.org/appcontrol/data/selection_mode", ["single"])]);

tizen.application.launchAppControl(appControl, null, successCb, errCb, null);

gerrit kleyn Winkel

Just tried it, not working, no change in behaviour. still the gallery screen were I can "check" multiple images.....

 

gerrit kleyn Winkel

this is the dlog output:

mind the following line:

W/CAPI_APPFW_APPLICATION_SERVICE( 4108): service.c: service_error(119) > [service_get_extra_data] KEY_NOT_FOUND(0xffffff82)

 

======================================================================================

W/IV-GALLER( 4108): 0:00:00.000[F:wgallery.cpp     L: 1235][HIGH] W-Gallery main() start
E/RESOURCED(  513): join-local.c: join_net_cls(41) > [join_net_cls,41] Can't find datausage module!
W/IV-GALLER( 4108): 0:00:00.084[F:wgallery.cpp     L:  814][HIGH] BEGIN : WGallery Create. ad=0x43015474
W/IV-SYNC  ( 4108): 0:00:00.085[F:wgallery-sync.cp L:   90][HIGH] BEGIN : wgallery_sync_initialize
W/IV-SYNC  ( 4108): 0:00:00.110[F:wgallery-sync.cp L:   97][HIGH] END   : wgallery_sync_initialize
I/CAPI_CONTENT_MEDIA_CONTENT( 4108): media_content.c: media_content_connect(818) > ←[32m[4108]ref count : 0
I/CAPI_CONTENT_MEDIA_CONTENT( 4108): media_content.c: media_content_connect(850) > ←[32m[4108]ref count changed to: 1
W/IV-GALLER( 4108): 0:00:00.117[F:wgallery.cpp     L:  866][HIGH] END   : WGallery Create.
E/IV-WATCHD( 4108): 0:00:00.120[F:wg-watchdog-thre L:  120][ERRO] Watch dog thread initialized. MainTid=0x407c5a20
W/IV-GALLER( 4108): 0:00:00.125[F:wgallery.cpp     L:  995][HIGH] BEGIN : WGallery Service. ad=0x43015474
W/CAPI_APPFW_APPLICATION_SERVICE( 4108): service.c: service_error(119) > [service_get_extra_data] KEY_NOT_FOUND(0xffffff82)
W/IV-WATCHD( 4108): 0:00:00.128[F:wg-watchdog-thre L:   56][HIGH] Starting Watch dog thread. thread=0x0009d900
W/IV-WATCHD( 4108): 0:00:00.128[F:wg-watchdog-thre L:   76][HIGH] Send Notify to Main thread. 0th=1
W/CAPI_APPFW_APPLICATION_SERVICE( 4108): service.c: service_error(119) > [service_get_extra_data] KEY_NOT_FOUND(0xffffff82)
I/MALI    ( 4108): gfx_mali_surface.c: _gfx_mali_surface_create_window(398) > MALI_WINDOW_FRAME_NUM=3
I/MALI    ( 4108): gfx_mali_surface.c: _gfx_mali_surface_create_window(398) > MALI_WINDOW_FRAME_NUM=3
W/IV-VIEW  ( 4108): 0:00:00.342[F:wgallery-view.cp L:  751][HIGH] BEGIN : View MGR Destroy!. pViewMgr=0x43015474
W/IV-VIEW  ( 4108): 0:00:00.343[F:wgallery-view.cp L:  700][HIGH] wgallery_view_unprepare_deatailview. Idler=0x00000000
W/IV-VIEW  ( 4108): 0:00:00.344[F:wgallery-view.cp L:  820][HIGH] END   : View MGR Destroy!. pViewMgr=0x43015474
W/IV-VIEW  ( 4108): 0:00:00.345[F:wgallery-view.cp L:  730][HIGH] created naviframe. 0x00140268
W/IV-COMMON( 4108): 0:00:00.348[F:ivug-medialist.c L:  252][HIGH] ivug_medialist_create
W/IV-SDATA ( 4108): 0:00:00.354[F:ivug-medialist.c L:  258][HIGH] Create media list : 0x0015fbf8
W/IV-SDATA ( 4108): 0:00:00.356[F:ivug-filter.c    L:   62][HIGH] param->view_by is IVUG_VIEW_BY_ALL
W/IV-COMMON( 4108): 0:00:00.357[F:ivug-medialist.c L:  766][HIGH] ivug_medialist_load
I/SENSOR  (  447): context-sensor.cpp:update_value(310)> context event detection!
I/SENSOR  (  447): context-sensor.cpp:update_value(326)> EVENT_TYPE_CONTEXT_DATA, hub_data_size=1936614771
I/SENSOR  (  447): context-sensor.cpp:print_context_data(402)> read_context_data: 1, 1, 7, -1
I/SENSOR  (  447): context-sensor.cpp:update_value(361)> context event is received!
I/SENSOR  (  523): client_common.cpp:print_event_occurrence_log(378)> contextd(523) receives CONTEXT_EVENT_REPORT with CONTEXT_SENSOR[0][state: 1, option: 1 count: 106]
I/SENSOR  (  523): client_common.cpp:print_event_occurrence_log(385)> 0x1f069(cb_event_type = CONTEXT_EVENT_REPORT, &cb_data, client_data = 0x3c5c0)
I/CONTEXT-MANAGER-SERVER(  523): sensorhub_parser.cpp: parse(90) > Received: SensorHub Data Type 7
I/CONTEXT-MANAGER-SERVER(  523): sensor.cpp: process_context_sensor_data(202) > Parsing successful: Context Item 0x10004
I/CONTEXT-MANAGER-SERVER(  523): motion.cpp: on_data_received(429) > Processed: Context Item 0x10004
I/CONTEXT-MANAGER-SERVER(  523): motion.cpp: respond_to_get_request(604) > [GetContext] Notified Context Item 0x10004 to 0 clients
I/CONTEXT-MANAGER-SERVER(  523): motion.cpp: respond_to_noti_request(623) > [ChangedCB] Notified Context Item 0x10004
E/PKGMGR_SERVER( 4113): pkgmgr-server.c: __make_pid_info_file(1378) > File path = /tmp/rjifdyLXex
W/IV-SDATA ( 4108): 0:00:00.462[F:ivug-medialist.c L:  903][HIGH] ivug_medialist_register_event_callback, cb=0x42ee1775, data=0x4301553c
W/IV-SELECT( 4108): 0:00:00.462[F:wgallery-select- L: 1349][HIGH] Creating select view for pick
I/EFL     ( 4108): multisense_factory<4108> multisense_factory.c:27 multisense_sound_player_get() Custom player_plugin = 0x4580bdb4
W/EFL     ( 4108): <4108> tizen_sound_player.c:178 remix_player_init()
W/EFL     ( 4108): Fail to register VCONFKEY_SYSMAN_EARJACK key callback
W/IV-SELECT( 4108): 0:00:00.574[F:wgallery-select- L: 1117][HIGH] Create Gengrid for Select view. Item cnt=9
W/IV-COMMON( 4108): 0:00:00.612[F:wgallery-select- L: 1409][HIGH] layout = 001407e8
W/IV-COMMON( 4108): 0:00:00.640[F:wgallery-select- L:  349][HIGH] Update SelectView GUI state. SelectCount=0
I/SENSOR  (  447): accel-processor.cpp:process_event(572)> Rotation event occurred, rotation value = 0
I/SENSOR  ( 1441): client_common.cpp:print_event_occurrence_log(378)> rjifdyLXex.Mult(1441) receives ACCELEROMETER_EVENT_ROTATION_CHECK with ACCELEROMETER_SENSOR[0][state: 1, option: 0 count
: 3]
I/SENSOR  ( 1441): client_common.cpp:get_log_element_name(164)> Unknown type value: 0x0
I/SENSOR  ( 1441): client_common.cpp:print_event_occurrence_log(381)> UNKNOWN
I/SENSOR  ( 1441): client_common.cpp:print_event_occurrence_log(385)> 0x49e82621(cb_event_type = ACCELEROMETER_EVENT_ROTATION_CHECK, &cb_data, client_data = 0x47b8d390)
W/IV-SELECT( 4108): 0:00:00.647[F:wgallery-select- L:  306][HIGH] Total Item=0 Transferred Item=0
E/EFL     ( 4108): <4108> elm_main.c:1056 elm_object_disabled_set() safety check failed: obj == NULL
E/EFL     ( 4108): <4108> elm_main.c:1056 elm_object_disabled_set() safety check failed: obj == NULL
W/IV-COMMON( 4108): 0:00:00.651[F:wgallery-select- L:  390][HIGH] Unsynced Cnt :0
W/IV-VIEW  ( 4108): 0:00:00.651[F:wgallery-view.cp L: 1076][HIGH] Creating PickView. Obj=0x001407e8
W/IV-SDATA ( 4108): 0:00:00.662[F:ivug-medialist.c L:  729][HIGH] Set Media Updated Callback fn:0x42eda4fd, New handle=0x00267768
W/IV-GALLER( 4108): 0:00:00.662[F:wgallery.cpp     L: 1209][HIGH] END   : WGallery Service. ad=0x43015474
W/IV-WATCHD( 4108): 0:00:00.707[F:wg-watchdog-thre L:   45][HIGH] Got thread notify. g_MainThreadLockup=1 g_write_lock=0
E/W-LAUNCHER(  408): main.c: app_pause(214) > [app_pause:214] app_pause
I/POWER_MANAGER(  293): core.c: del_sleep_cond(474) > delete prohibit sleep condition by timeout

daniel kim

Hi,

As 'http://tizen.org/appcontrol/data/selection_mode' is available in native mode of Tizen SDK, Wearable SDK does not support this function yet.

gerrit kleyn Winkel

thank you!