Quantcast
Jump to content


Recommended Posts

Posted

A big part of converting users from a click to a sale often involves your ratings and reviews. Apps that have strong reviews and scores typically have an edge over apps with few or bad reviews. In today’s world, this is how many users define quality without actually purchasing.

2019-10-22-01-01.png

How can you get reviews when you’re just starting out? Sometimes, it’s as easy as simply asking.

Just Checking In

By implementing the code shown below, users are prompted to leave a review on the Galaxy Store after a certain number of logins. By giving users an easy way to leave a 5-star review, you will likely start getting more positive reviews, and your downloads may increase as well.
How you implement this is up to you and depends on your app. If you think users have a good understanding of how your app works after just a few logins, then you should prompt them then. However, if your app is more complex and you think users need additional time to see its value, it’s better to prompt them later. The biggest thing to remember is that you only have a small window of time to ask. Waiting too long to ask is the same as not asking at all.

public void onClick(DialogInterface dialog, int id) {
    reviewSubmitted = true;
    sharedPref.putBoolean("review_submitted",reviewSubmitted);
    sharedPref.commit();
    try {
        Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(
            "samsungapps://ProductDetail/<PackageName>"));
        intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        startActivity(intent);
    } catch (android.content.ActivityNotFoundException anfe) {
       Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(
          "http://www.samsungapps.com/appquery/appDetail.as?appId=<PackageName>"
         ));
        intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        startActivity(intent);
    }
}
2019-10-22-01-02.png

Number of Reviews After Three Days – Credit: babich.biz

Another thing to keep in mind is not to ask at the beginning of a session. No one likes a pop-up, and users probably don’t want to leave a review just as they are opening your app. Tests prove this to be true, showing that 50% of users close the app after being prompted to leave a review at the beginning of the session.

It’s also important to not ask over and over again. Ensure that the user meets a few conditions before you ask, such as after using the app for a few days or after completing certain tasks. This way, you ensure they have used the app before they leave a review. If they haven’t chosen to leave a review after a few prompts, they probably aren’t going to, so it’s better to stop asking rather than risk losing a user.

2019-10-22-01-03.png

How can you get reviews when you’re just starting out? Sometimes, it’s as easy as simply asking.

You should also be a bit more strategic in your ask. Instead of asking users to rate your app, ask them if they are enjoying it. If they say they love it, you can redirect them to the store to leave a positive review. If they think it needs work, ask them to send feedback by email or a dedicated forum. This way, you’re not incentivizing poor reviews, and you’re garnering valuable feedback from your community.

Finally, sellers should be aware that the Galaxy Store is implementing conditions for appearing in the “top” lists. As of September 27, 2019 apps that appear in the top lists need to have at least 10 reviews and an average of 2.5 stars. These conditions are based by country, so if your app has 100 reviews and a 4-star rating in the US, but only 5 reviews and a 4-star rating in Korea, your app will appear in the US top list, but not in Korea’s. This makes asking for reviews even more important, but you’ll want to localize first. For more info about localization, check out our localization blog post.

Gaining lots of good reviews means taking the time to not only create an amazing app experience, but also knowing when, where, and how to ask each user to leave one. The best thing you can do to gain better reviews is just asking.

View the full blog at its source



  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Similar Topics

    • By Samsung Newsroom
      From winning the CES 2026 Best of Innovation Award to being named one of TIME magazine’s “Best Inventions of the Year,” Samsung’s Micro RGB TV has earned global recognition. Building on its debut as the world’s first Micro RGB TV, Samsung Electronics is expanding the lineup this year with a 130-inch ultra-large model, setting a new benchmark for next-generation television technology.
      From adopting micro-size RGB (red, green and blue) LEDs as a backlight unit to pursuing enhanced color expression and integrating AI technology for ultra-large displays, the development of the Micro RGB TV was a continuous series of firsts — with virtually no reference points to guide the process.
      Samsung Newsroom spoke with Insang Hwang of the Visual Display (VD) Business Division’s Product Planning Group to learn more about how this new category of the Micro RGB TV was developed.
      ▲ Micro RGB TV recognized for its technological excellence in the global market.
      Creating a New Category With No Reference
      The Micro RGB TV began as a project to create an entirely new category in the TV market. Hwang recalled, “Because the mission was to create a category that didn’t previously exist, every department — from development to sales and marketing — had to work together with a shared sense of urgency and responsibility.”
      One of the biggest challenges was the absence of any reference point. The team had to develop new technologies and products from scratch while simultaneously defining the value they could deliver to consumers. “We went beyond simply applying RGB light sources,” he said. “We developed a proprietary concept called ‘Micro RGB,’ which miniaturized even the backlight unit itself to the micro level.”

      Pursuing 100% BT.2020 — The “Ultimate Color Gamut”
      At the core of the Micro RGB TV is its color reproduction. By applying RGB LEDs as the backlight unit, the display achieves wide and highly accurate color reproduction.
      “Although the Micro RGB TV started with the goal of delivering richer color reproduction, there was no clearly defined industry standard at the time,” Hwang said. “We felt a strong sense of responsibility, believing that the conditions we set could become the new standard for the market. That’s why we set the ambitious goal of achieving ‘100% BT.2020’ — the ultra-high-definition color standard defined by the International Telecommunication Union (ITU) and often referred to as the ‘ultimate color gamut.’”
      ▲ Micro RGB TV achieves 100% BT.2020 — the “ultimate color gamut” — setting a new standard in the TV market. Achieving 100% BT.2020 means that a level of color reproduction once limited to professional monitors can now be experienced on TVs — one of the most widely used displays in everyday home environments. It also marks a significant advancement in the technical standards of the display industry.
      The journey, however, was far from easy. “In the early stages of development, we struggled to reach the target values,” Hwang recalled. “However, through persistent efforts to achieve perfect color reproduction, the development team was ultimately able to meet its goal.” He added, “It wasn’t just about developing new technology. We also worked to establish measurable standards to validate its performance.”

      Bringing Cutting-Edge Technology Into Everyday Viewing
      For product planners, the top priority is to convert advanced technology into an experience that users can easily perceive in everyday life. “We continuously thought about how to translate Micro RGB’s powerful hardware performance into a practical viewing experience,” Hwang said. “We focused on making its key strength — color — something users can feel naturally in everyday content while delivering an immersive viewing experience.”
      “While Micro RGB achieves one of the highest color gamuts available in TVs today, only a limited amount of content fully utilizes it,” he noted. “So we enhanced software capabilities to ensure users can experience the difference across a wider range of content — from HDR content to everyday content such as OTT streaming and sports.”
      One of the key features is Micro RGB Color Booster Pro. Hwang explained, “Leveraging a high-performance neural processing unit (NPU), AI analyzes content in real time to enhance color expression with precision. This allows users to enjoy Micro RGB’s vivid color performance not only in HDR content but also in everyday viewing.”
      ▲ Hwang explained that Micro RGB Color Booster Pro enhances color for a richer and more vivid viewing experience. He added, “For example, in soccer — one of the sports most frequently watched on TVs — the newly introduced AI Soccer Mode Pro automatically detects the content and enhances colors such as the grass and team uniforms. With the global football season kicking off in June, it’s a feature worth noting for those seeking a more immersive viewing experience.”
      In addition, the TV incorporates a Glare Free feature designed for real-world viewing environments. “We applied glare-free technology so users can consistently enjoy Micro RGB’s exceptional color performance regardless of lighting conditions,” Hwang explained. “Whether in a dark room or a brightly lit space, viewers can stay fully immersed without reflections interfering with the screen.”

      Scaling Immersion With a 130-Inch Display
      The newly introduced 130-inch ultra-large model delivers an overwhelming sense of immersion, as if the entire wall comes to life. As screen size increases, maintaining image detail becomes increasingly critical.
      Hwang said, “We equipped the TV with Supersize Picture Enhancer, an AI-powered picture quality technology optimized for ultra-large displays. Thanks to this, viewers can enjoy Micro RGB’s rich colors and sharp image quality without distortion or pixelation.”
      The sound experience and design were also significantly enhanced. “With a 160W 10.4.2-channel speaker system, the TV delivers immersive sound that fills the entire space without the need for external speakers,” he added.
      ▲ Micro RGB TV features a wall-mount design that integrates seamlessly with the space, enhancing immersion. The Micro RGB TV’s signature wall-mount design further reinforces immersion by blending the display seamlessly into its surroundings. “We developed a proprietary pocket structure and wall-mount bracket1 so the TV can sit flush against the wall with virtually no gap,” Hwang explained. “We focused on delivering an optimized viewing experience for ultra-large screens across picture quality, sound and design.”

      Toward the Next-Generation Screen Experience
      The Micro RGB TV goes beyond technological advancement — it expands the boundaries of how users experience screens in everyday life while setting new standards for the industry.
      “Samsung TVs are evolving into screens that seamlessly integrate into users’ lifestyles and living spaces, understanding their preferences through data and enabling interactions,” Hwang said. “They will go beyond content consumption to become powerful platforms that connect limitless experiences and services.”
      As the Micro RGB TV continues to push the boundaries of innovation, Samsung is paving the way for the next generation of screen experiences.
      Applicable to 85-, 75- and 65-inch models only ︎ View the full article
    • By Samsung Newsroom
      Samsung Wallet provides an e-wallet service to its customers through wallet cards, as well as offering features designed to enhance user engagement and drive business growth for partners. Sending push notifications to users is such a feature. Partners can send push notifications to users' wallet cards directly, using pre-approved message templates.
      These notifications can be used to send promotional messages or alert users about important updates. This article demonstrates a complete implementation of the Send Notification API.
      In the example scenario, we send a notification to a user's wallet card from a partner's server using this API.
      System requirements
      The Notification API has the following prerequisites:
      Complete the onboarding procedure to obtain the required security certificates if you are new to Samsung Wallet.
      Now create your wallet card. Follow the Step 1 - Create Wallet Card Template section of the documentation.
      Create your notification template and request for approval. Follow the Notification Workflow Overview to complete this step. Remember to check the template to detect prohibited content. No additional approval is required if it passes.


      Get permission from Samsung to use the Send Notification API. Reach out to Samsung Developer Support for further support. API fundamentals
      As an authorized partner, you can send notifications to the users linked to your card, using the Send Notification API from your server.
      Endpoint: The endpoint below processes the notification requests.
      URL https://tsapi-card.walletsvc.samsung.com/{cc2}/wltex/cards/{cardId}/notifications/{templateId}/send Headers: Header information is required to ensure secure communication between the Samsung server and the partner server.
      Authorization: Bearer token for authentication. Refer to JSON Web Token documentation for specifications. x-smcs-partner-id: Unique partner identifier required for API access. x-request-id: A unique UUID string that identifies each request. Body: A payload including a parameter named ndata possessing a JWT token that contains the relevant data to identify the card user.
      See the official documentation for detailed API specifications.
      API implementation process
      The Send Notification API allows you to send personalized push notifications to users. Download the sample source code and follow the step-by-step process below for a better understanding of the implementation of the API.
      Step 1: Managing cryptographic keys
      Cryptographic keys are needed for authorization purposes. In this step, use the certificate you obtained during the onboarding process to extract the necessary keys. These keys are needed for JWT token generation.
      Extracting the public keys
      Extract the public keys from the partner.crt and samsung.crt certificate files.
      def getPublicKey(crt_path): try: with open(crt_path, "rb") as f: crt_data = f.read() certificate = x509.load_pem_x509_certificate(crt_data, default_backend()) public_key = certificate.public_key() public_key_pem = public_key.public_bytes( encoding=serialization.Encoding.PEM, format=serialization.PublicFormat.SubjectPublicKeyInfo ) return public_key_pem except Exception as error: print(f"Error reading public key from {crt_path}: {error}") return None Extracting the private key
      Extract the private key from the .pem file generated during the onboarding process.
      def getPrivateKey(pem_path): try: with open(pem_path, "rb") as data: private_key = serialization.load_pem_private_key( data.read(), password=None, backend=default_backend() ) return private_key except Exception as error: print(f"Error reading private key from {pem_path}: {error}") return None Step 2: Constructing the authorization token
      An authorization token is needed to validate the API request. Construct an authorization header with AUTH as the payload content type and include the certificate and partner IDs. Retrieve these IDs from My account > Encryption Management in the Wallet Partner Portal, then build the payload and construct the authorization token.
      The following code snippet implements the actions described.
      def generateAuthToken(partnerId, certificateId, utcTimestamp, privateKey, cardId, cc2, templateId): auth_header = { "cty": "AUTH", "ver": 3, "certificateId": certificateId, "partnerId": partnerId, "utc": utcTimestamp, "alg": "RS256" } auth_payload = { "API": { "method": "POST", "path": f"/wltex/cards/{cardId}/notifications/{templateId}/send" }, } auth_token = jwt.encode( payload=auth_payload, key=privateKey, algorithm='RS256', headers=auth_header ) return auth_token Step 3: Constructing the notification data token
      The request payload requires the ndata parameter, which is a JWT token that contains information about the notification data and the cards’ identifiers. Follow these steps to construct the ndata token.
      Defining the notification object
      The notification object is a JSON structured data object containing a list of reference IDs and the data. The reference IDs identify the specific cards to send the push notification to. You can use a list of reference IDs to send the push notification to multiple recipients at a time. The data contains the name-value pairs used in the notification template. In our sample notification template, we used two name-value pairs (name and insert_end_date).
      notifcationObject = { "refIds": [ "4afb049c-efef-43ca-8f03-1df55243477c" ], "data": { "name": "Premium", "insert_end_date": "12/12/2026" } } Constructing the notification data JWT token
      Next, construct the JWT token for notification data (ndata). You can get more information about the JWT format in the "Card Data Token" section of this documentation.
      def generateCDataToken(partnerId, samsungPublicKey, partnerPrivateKey, certificateId, utcTimestamp, data): jwe_header = { "alg": "RSA1_5", "enc": "A128GCM" } jwe_token = jwe.encrypt( data, samsungPublicKey, encryption=jwe_header["enc"], algorithm=jwe_header["alg"] ) print(f"jwe_token: \n{jwe_token}\n") jws_header = { "alg": "RS256", "cty": "NOTIFICATION", "ver": 3, "certificateId": certificateId, "partnerId": partnerId, "utc": utcTimestamp, } jws_token = jws.sign( jwe_token, key=partnerPrivateKey, algorithm='RS256', headers=jws_header ) print(f"jws_token: \n{jws_token}\n") return jws_token Step 4: Building and executing the POST request
      Construct the HTTP POST request to send the push notification using the following code structure.
      # --- Prepare JSON body (Python dictionary) --- payload = { "ndata": nData } # --- Build HTTP Request --- headers = { "Authorization": "Bearer " + authToken, "x-smcs-partner-id": partnerId, "x-request-id": requestId, "Content-Type": "application/json" } # --- Execute HTTP Request --- try: response = requests.post(endpoint, json=payload, headers=headers) response.raise_for_status() print("Wallet Card Template Notificatiom: " + json.dumps(response.json())) except requests.exceptions.RequestException as e: print("Failed to notify the Wallet Card user:") print(f"Error: {e}") if response: print("Response body:", response.text) Running the sample application
      Once the four steps described above are implemented, open the sample project and do the following:
      Update the partner_id, certificate_id, card_id, and template_id values in src/main.py with your actual values. Place your partner.crt, samsung.crt and private_key.pem files in the /cert directory. Install all dependent libraries listed in the requirements.txt file. Run the main script in the terminal. After the script is executed successfully, a push notification is sent to the user's wallet.


      Conclusion
      Now that you have implemented the Send Notification API sample application successfully, you can implement this API with your server to send customized push notifications.
      Additional resources
      For more information on this topic, consult the following resources:
      Complete source code Official Samsung Wallet API documentation View the full blog at its source
    • By Samsung Newsroom
      Samsung TV Plus, Samsung Electronics’ free ad-supported streaming (FAST) service, has surpassed 100 million monthly active users (MAU) worldwide. After reaching 88 million in October 2024, the figure has increased by 12 million in about a year and two months, highlighting how Samsung’s longstanding hardware dominance in the global TV market — maintained for the past 19 years — has evolved into a robust media platform ecosystem.
      As the global media market shifts increasingly toward paid subscriptions, Samsung TV Plus provides a unique viewing experience that allows users to access content instantly, without requiring additional sign-ups or payment. Surpassing the milestone of 100 million users underscores the success of this model as an appealing alternative for viewers.
      Samsung Newsroom takes a look at the transformative journey of Samsung TV Plus as it evolves into a global media platform amidst the changing landscape of television viewing.

      Lost in a Flood of OTTs: Authentic TV Experience Regains Attention
      With paid OTT services becoming the norm in today’s media market, the explosion of content has led to viewer fatigue. As subscription fees continue to rise and platforms have become more fragmented, many find themselves overwhelmed by the sheer number of choices, making it increasingly difficult to locate the content they actually want to watch.
      In this context, FAST services are gaining recognition as a new viewing method. By merging the straightforwardness of traditional television — where viewers can jump right into content as soon as they turn on their TVs — with the vast selection offered by OTT platforms that allow viewers to choose content tailored to their preferences, FAST services are appealing to viewers worldwide looking for a simpler, hassle-free viewing experience.

      The Beginning of Samsung TV Plus: A Viewing Method Faithful to the Basics
      Samsung TV Plus has evolved into a prominent FAST service, but it isn’t new. Launched in 2015 — before the concept of FAST even existed — the platform has been delivering free channel services that come pre-installed on Samsung smart TVs. The core feature allows users to enjoy live content simply by turning on their TVs, without the need for separate subscriptions, payments or extra equipment.
      In its early days, Samsung TV Plus was often viewed more like the pre-installed free TV channels available in some regions, rather than as a standalone media platform. Recently, however, with American broadcasters flooding into the FAST market, the idea of ad-supported free services has become well-established. Recognizing this shift in the media landscape, Samsung has begun to cultivate Samsung TV Plus as a distinct, independent media platform.
      Today, Samsung TV Plus is broadening its content offerings beyond traditional entertainment and dramas, as well as incorporating content enhancement utilizing AI technology. One innovative feature is the “All-in-One AI Integrated Channel,” which revives popular dramas from the 2000s. These classics have been remastered in high definition using AI-driven picture and sound quality enhancements, providing viewers with a fresh take on beloved content while utilizing the existing video assets. Additionally, the platform has bolstered its travel and fitness-focused lifestyle web entertainment content by adding popular creators’ channels like “Pani Bottle” and “Hip Euddeum.”
      In efforts to expand its K-content offerings, Samsung TV Plus has partnered with leading Korean media companies to enhance its premium K-content lineup, making it one of the largest K-content providers in the United States. By streaming various live concerts, the platform draws in fans who want to engage with Korean entertainment and culture.

      Beyond Hardware: Establishing a Global Media Platform
      Currently, Samsung TV Plus boasts around 4,300 channels and 66,000 videos on demand (VOD) across 30 countries — all for free. By partnering with local broadcasters and content creators, the service continues to develop content that meets regional viewing demands, shaping a global FAST ecosystem. Moving beyond being merely a hardware manufacturer, the company is establishing itself as a major media platform.
      In Korea, major channels and content typically consumed via terrestrial broadcasts and existing IPTV services can now also be accessed on Samsung TV Plus. Offering live channels and vast content libraries without additional subscriptions or fees, this platform has become a practical alternative for those wishing to reduce their reliance on paid broadcasting services. Users can enjoy an intuitive experience without the hassle of extra equipment or complicated setups and the burden of discovering new content is significantly eased.

      Achieving Major Broadcaster-Level Viewership: Solidifying Leadership in the Global FAST Competition
      Samsung TV Plus has achieved impressive 100 million monthly viewership numbers, placing it on par with the three major global broadcasting networks. This notable milestone signifies that the service has evolved from being just an additional feature on Samsung TVs into a robust platform that competes alongside leading global media companies.
      Samsung is committed to expanding its presence within the global media ecosystem through Samsung TV Plus. The strategy focuses on continuously enhancing the platform’s value by setting standards for enjoyable TV viewing experiences for users — driven by three key factors: instant viewing capabilities without the need for a separate set-top box, AI-based content curation and constantly updated competitive offerings.
      “Samsung TV Plus has transformed into a global media platform that seamlessly integrates into the daily lives of viewers worldwide,” said Choi Joon-hun, Head of the TV Plus Group from Visual Display Business at Samsung Electronics. “Moving forward, we will continue to strengthen our distinct competitive edge in the FAST market by diversifying channels and securing premium content.”
      Built on its strong hardware leadership, Samsung Electronics is positioning itself as a key player in the global media ecosystem. Samsung TV Plus is ushering in a new, user-centric lifestyle of content consumption, reshaping the way viewers interact with media.
      View the full article
    • By Samsung Newsroom
      Samsung Electronics today announced that they are working to bring Google Photos to Samsung TVs to give users a seamless way to enjoy the moments that matter most, from trips and hobbies to everyday memories with loved ones — now on an immersive and larger screen. The experience aims to offer families a delightful and meaningful way to rediscover their favorite memories together.1
      “Samsung TVs have always brought people together, and bringing Google Photos to the big screen makes that experience even more personal,” said Kevin Lee, Executive Vice President of the Customer Experience Team at the Visual Display (VD) Business of Samsung Electronics. “We’re giving users an intuitive and engaging way to enjoy the stories behind their photos — right from the comfort of their living room.”

      A More Meaningful Way To Enjoy Personal Photos
      Google Photos makes reliving and sharing special memories easy. With the planned integration, it will seamlessly bring the photos people capture on their phones to Samsung TVs, where they can appear in a larger, cinematic format.
      Through the proposed integration, users can explore curated memories on their TVs organized by people, places, and meaningful moments. Google Photos will also expand the suite of photo-driven experiences that integrate with Samsung’s Vision AI Companion (VAC), enriching how memories are highlighted and enjoyed throughout the day.
      Samsung wants Google Photos to be deeply woven into the TV experience. Imagine Photos surfacing naturally through Daily+ and Daily Board, ensuring that meaningful memories2 greet users throughout their day in contextual and convenient moments. The setup should be simple — users sign in with their Google Account, and their photo memories instantly appear on the big screen.3

      Three Ways To Relive and Rediscover: Memories, Create and Personalized Results
      Memories (planned to launch exclusive in early 2026): Shows curated stories based on people, locations, and meaningful moments for the first time on TV, available first and exclusively on Samsung TVs for six months.4 Create with AI (planned to launch later in 2026): Introduces themed templates5 built on Nano Banana, Google DeepMind’s image generation and editing model, featuring playful and fun transformation. Users can also utilize Remix to transform the art style of an image or Photo to Video to bring still moments to life as short videos. Personalized Results (planned to launch later in 2026): Users may view related photos as a slideshow based on topics or contents of memories e.g. ocean, hiking, Paris, etc.
      A Seamless Way To Experience Memories on Samsung TV
      Samsung and Google Photos want to bring a cinematic gallery experience to the heart of the home, enabling Samsung TV users to browse and relive their most important moments in stunning detail. This integration will transform personal photo libraries into a space where users are invited to explore their journey, create new stories and reminisce over cherished memories with depth and simplicity.
      “Google Photos is a home for people’s photos and videos, helping them organize and bring their memories to life,” said Shimrit Ben-Yair, Vice President, Google Photos and Google One. “We’re excited to bring Google Photos to Samsung TVs — helping people enjoy their favorite photos on a larger screen and reconnect with their memories in new ways.”
      Features and availability may vary by model and region. ︎ Available on Samsung TV models launched 2026 with a Google Account and backed-up photos/videos. For in market models, experience will be available following the OS update schedule. ︎ Memories must not be turned off in Google Photos settings. ︎ Memories available beginning March 2026; Create and Search available in the second half of 2026. ︎ Select creative AI templates will be available exclusively on Samsung TVs. ︎ View the full article
    • Government UFO Files
    • By Samsung Newsroom
      The Galaxy Watch has a built-in accelerometer sensor that measures movement or acceleration forces in three dimensions (X,Y, and Z axes). This data is commonly used for tracking movement, detecting gestures, and enabling fitness-related features like sleep tracking, fall detection, step counting, running, and workout tracking.
      The accelerometer measures acceleration along three axes:
      X-axis: Side-to-side movement.
      Y-axis: Forward-and-backward movement.
      Z-axis: Up-and-down movement.
      Figure 1: Axis directions for the accelerometer sensor

      Acceleration is typically measured in meters per second squared (m/s²) or gravity units (g), where 1g = 9.81 m/s².
      This article describes how to read accelerometer sensor data from a Galaxy Watch running Wear OS powered by Samsung and also shows the conversion procedure for the raw data.
      Environment Setup
      Android Studio IDE is used for developing Wear OS applications. The examples in this article use Java, but Kotlin can also be used. Going forward, this article assumes you have already installed the latest Android Studio version on your PC.
      Read Accelerometer Data from Galaxy Watch
      To get accelerometer data, we need to use Android Sensor APIs from the SensorManager library.
      To retrieve accelerometer data from your Galaxy Watch:
      Create a new Wear OS project in Android Studio by selecting File > New Project > Wear OS > Empty Activity > Finish. Set the minimum SDK version to API 30 or higher.
      Add permission to access the sensor into the manifest file (AndroidManifest.xml):
      <uses-feature android:name="android.hardware.sensor.accelerometer" /> You do not need to manually set the runtime permission to access the accelerometer. This permission is granted by default.
      Design your preferred layout (.xml file) to show accelerometer data on the Galaxy Watch screen. This example uses three TextViews in a Constraint Layout to show the output of the three axes of the sensor. You can also check the result in the Logcat window in Android Studio. <TextView android:id="@+id/textViewX" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="8dp" android:text="X" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="0.207" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/textView2" /> For more detailed code, check the sample application.
      Use the SensorManager library and SensorEventListener to read accelerometer data. To implement them: Initialize the SensorManager library globally: private SensorManager sensorManager; To retrieve android.hardware.SensorManager for accessing sensors, you have to use getSystemService(). sensorManager = SensorManager.getSystemService(Context.SENSOR_SERVICE); As our target is the accelerometer sensor specifically, it is set as the default sensor here. It is recommended to always check the sensor availability before using it in the code. The procedure to do so is explained in this guide.
      To make the accelerometer the default sensor:
      Sensor sensor = sensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); To get continuous data from your Galaxy Watch, you need to register a listener to notify you if there is new data. This is done using a SensorEeventListener in Android’s Sensor API. sensorManager.registerListener(listener, sensor, SensorManager.SENSOR_DELAY_NORMAL); The listener method onSensorChanged() is called whenever new data is available. The new data is processed in the listener. private SensorEventListener listener = new SensorEventListener() { @Override public void onSensorChanged(SensorEvent sensorEvent) { // for absolute values X = Math.abs(sensorEvent.values[0]); //0 -> X Axis 1-> Y Axis 2 -> Z Axis Y = Math.abs(sensorEvent.values[1]); Z = Math.abs(sensorEvent.values[2]); Log.e("--MainActivityTag--", "X: " + X + "\n" + "Y: " + Y + "\n" + "Z: " + Z); // do whatever you want to do with the data } @Override public void onAccuracyChanged(Sensor sensor, int i) { } }; Here, onAccuracyChanged(Sensor sensor, int i) is a part of the SensorEventListener interface. It is triggered when the accuracy of a sensor changes. However, for the accelerometer, it is called rarely, as the accelerometer data accuracy usually remains constant.
      Unregister the listener when the data collection is over. Otherwise, it can cause unusual battery consumption. Test the Code Sample
      You can check out the sample app (download it using the link below) and try it out on your Galaxy Watch 4 and later.
      AccelerometerDataExample.zip (332.2 KB)
      Run the sample project on your Galaxy Watch. You will see the following screen.
      Figure 2: Output of the sample project (accelerometer data on Galaxy Watch)
      Accelerometer Data Units and Conversion for Galaxy Watch
      In the application end, raw accelerometer data from Galaxy Watch is converted into meters per second squared (m/s²).
      Equation
      raw data * 9.80665 (gravity force) / 4096 (8g rescale)
      Example
      Assume,
      raw_x = raw data received from the sensor
      acc_x = accelerometer data in application end
      if raw_x = 100
      acc_x = 100 * 9.80665 / 4096
      After this, acc_x is received by the application, containing the Acceleration value in m/s².
      Convert the Data into G-Force Units
      The conversion from m/s² to g is: 1 / 9.80665
      So 1 m/s² =0.10197g
      Information about the Accelerometer Sensor
      The accelerometer provides the 3 axis values separately. The sampling rate of the accelerometer is usually a multiple of 50 Hz, but 100 Hz is also supported. The range of the accelerometer is +- 8G. Sampling rate:
      #Maximum Delay: https://developer.android.com/reference/android/hardware/Sensor#getMaxDelay() // 160 msec
      #Minimum Delay: https://developer.android.com/reference/android/hardware/Sensor#getMinDelay() // 10 msec It is always recommended to read calibrated data to avoid unnecessary noise. To get the result in g-force units, you need to divide the accelerometer values by 4096 (along every axis). It is recommended to use a filter while reading any sensor data. Make sure to always unregister the listener and stop all the services after using. Failure to do so can cause excessive battery drain. There are some restrictions of using background services for Galaxy Watch. Conclusion
      For a Galaxy Watch running Wear OS powered by Samsung, accelerometer data is widely used in fitness tracking, fall detection, gesture recognition and motion analysis. Moreover, data conversion enables precise tracking for applications.
      In this article, we’ve seen one of the ways of reading accelerometer sensor data on a Galaxy Watch running Wear OS powered by Samsung. You can also read sensor data using the Samsung Health Sensor SDK. For more details on Samsung Health, check here.
      If you have any questions about or need help with the information in this article, you can reach out to us on the Samsung Developers Forum or contact us through Developer Support.
      View the full blog at its source





×
×
  • Create New...