Implementing Search Functionality in Tizen Native Application

Original Created Sep 12, 2017 | Regeneration Apr 22, 2026

I'm new to Tizen native application development and need to implement a search feature in my app.

I have about 10 records displayed on a page and want to enable searching for specific items within this native application (not a web page).

Could anyone provide guidance on how to implement this search functionality?

Problem Understanding

The user needs to implement a local search functionality within a Tizen native application to search through approximately 10 records displayed on a page.

Solution Methods

  1. Using Tizen Data Types and APIs:

    • For small datasets (like 10 records), you can use Tizen's basic data types and search through them directly
    • Implement a simple search algorithm to filter through your records
  2. Using SQLite Database:

    • For more scalable solutions or larger datasets, consider using SQLite database
    • Implement SQL queries to search through your records

Code Examples

Simple search implementation (for small datasets):

// Assuming you have an array of records
char* records[] = {"Record1", "Record2", "Record3", "Record4", "Record5", 
                   "Record6", "Record7", "Record8", "Record9", "Record10"};

void search_records(const char* search_term) {
    for (int i = 0; i < 10; i++) {
        if (strstr(records[i], search_term) != NULL) {
            // Found a match - implement your display logic here
            dlog_print(DLOG_INFO, "SEARCH", "Found match: %s", records[i]);
        }
    }
}

Additional Tips

  • For more complex search requirements, consider using Tizen's EFL data types and tools
  • If your dataset grows significantly, implementing database-based search would be more efficient
  • Remember to handle case sensitivity and partial matches according to your requirements

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.