X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fw-input-selector.cpp;h=e22274d5388716c8c1972e354f0e8cdcfea5df77;hb=5649745a562278dbf3d69a5e9438b057d4810c79;hp=ed22ea2337e3e8f11bfd3059d7aa8d42be363534;hpb=4cc380f070db66e4c9593863ce582c1e97d1303b;p=platform%2Fcore%2Fuifw%2Finputdelegator.git diff --git a/src/w-input-selector.cpp b/src/w-input-selector.cpp index ed22ea2..e22274d 100755 --- a/src/w-input-selector.cpp +++ b/src/w-input-selector.cpp @@ -1113,10 +1113,31 @@ void _app_service(app_control_h service, void* user_data) char **input_type_array = NULL; int input_type_array_len = -1; bool is_extra_data_array = false; + char *mime_type = NULL; app_control_clone(&(app_data->source_app_control), service); app_data->reply_type = REPLY_APP_NORMAL; + ret = app_control_get_mime(service, &mime_type); + if (ret != APP_CONTROL_ERROR_NONE) { + LOGD("Fail to get mime type : %d", ret); + } else { + if (mime_type) { + LOGD("mime type = %s", mime_type); + if (!strncmp(mime_type, "image/", strlen("image/"))) { + + } else if(!strncmp(mime_type, "audio/", strlen("audio/"))) { + app_data->app_type = APP_TYPE_STT; + _stt_clicked_cb((void *)app_data, NULL, NULL); + if (mime_type) + free(mime_type); + goto ACTIVATE; + } + } + } + if (mime_type) + free(mime_type); + if (_TV || _MOBILE) { app_data->app_type = APP_TYPE_KEYBOARD; input_keyboard_init(service);