Hey,
I have text on the screen and i what to share it to another app. I opened share menu using app control but how to copy text to that application?
Here is my code. Below function opens share menu. But don't know how to copy text to other app after selecting app from share menu(ex. whatsapp,facebook etc.)
I have no idea what to do in share_text_result_cb.
static void share_btn_text_cb(void *data, Evas_Object *obj, void *event_info) { appdata_s *ad=data; app_control_h app_control; int ret; app_control_create(&app_control); app_control_set_operation(app_control, APP_CONTROL_OPERATION_SHARE); app_control_set_mime(app_control, "text/plain"); ret = app_control_send_launch_request(app_control, share_text_result_cb, ad); if ( ret == APP_CONTROL_ERROR_NONE) { dlog_print(DLOG_INFO, LOG_TAG, "Succeeded to launch app."); } else { dlog_print(DLOG_ERROR, LOG_TAG, "Failed to launch app"); } app_control_destroy(app_control); }