How to implement native share menu functionality in Tizen applications

Original Created Oct 09, 2016 | Regeneration Apr 22, 2026

I want to add a sharing feature to my native Tizen application that allows users to share both text and images. Specifically, I need to implement the native share menu that appears when users click a share button, enabling them to share content via various options like email, SMS, Bluetooth, Facebook, and WhatsApp.

Problem Understanding

The user wants to implement the native share functionality in their Tizen application, which should:

  1. Be triggered by a button click
  2. Support sharing both text and images
  3. Display the system's native share menu with available sharing options

Solution Methods

  1. Using App Control API: The Tizen platform provides the App Control API (APP_CONTROL_OPERATION_SHARE) to implement native sharing functionality.

  2. Implementation Steps:

    • Create an app control handle
    • Set the operation type to APP_CONTROL_OPERATION_SHARE
    • Add the data you want to share (text, image path, etc.)
    • Launch the app control

Code Examples

#include <app_control.h>

void share_content(const char* text, const char* image_path) {
    app_control_h app_control = NULL;
    app_control_create(&app_control);
    
    // Set the share operation
    app_control_set_operation(app_control, APP_CONTROL_OPERATION_SHARE);
    
    // Add text data
    if (text) {
        app_control_add_extra_data(app_control, APP_CONTROL_DATA_TEXT, text);
    }
    
    // Add image data if available
    if (image_path) {
        app_control_add_extra_data(app_control, APP_CONTROL_DATA_PATH, image_path);
    }
    
    // Launch the share menu
    app_control_send_launch_request(app_control, NULL, NULL);
    app_control_destroy(app_control);
}

Additional Tips

  1. Make sure to include the proper permissions in your manifest file:

    <privileges>
        <privilege>http://tizen.org/privilege/appmanager.launch</privilege>
    </privileges>
    
  2. For sharing images, ensure the file path is accessible to other applications.

  3. The available sharing options will depend on what applications are installed on the device.

  4. You can specify MIME types for more precise sharing control.

Customize your cookie preferences

You can enable or disable non-essential cookies. Essential cookies are always on to ensure the site works properly and to keep you signed in.

Necessary

These cookies are necessary for the website to function properly and cannot be switched off. They help with things like logging in and setting your privacy preferences.

Always on

Analytics

These cookies help us improve the site by tracking which pages are most popular and how visitors move around the site.

Enable analytics cookies
Public Forum Public Forum
Employees only. Please sign in with your company account.