[フレーム]

Filter

  • Content Type
  • Category
Code Lab 100
Sorry, no results
found for "Code Lab" on the website

announcement mobile

blog

Optimize Your Applications for 16 KB Page Size Compatibility Using Samsung’s Remote Test Lab

due to advancements in memory management and performance optimization, android is transitioning its kernel page size from 4 kb to 16 kb. this change impacts how applications manage memory and requires developers to ensure compatibility, and was addressed in adding 16 kb page size to android and support 16 kb page sizes. google play has also published a blog post (prepare your apps for google play’s 16 kb page size compatibility requirement) asking developers to support 16 kb page sizes in their applications. starting november 1st, 2025, all new apps and updates to existing apps submitted to google play and targeting android 15+ devices must support 16 kb page sizes. native code applications containing native code must be built to support 16 kb page sizes. refer to the official google document for detailed instructions. testing environment google android emulator provides a testing environment for 16 kb pages. for real-world testing, samsung's remote test lab offers a similar environment on actual samsung devices. see get started with remote test lab for mobile app testing, a previous remote test lab blog, to check if your application works in a 16 kb page environment. we recommend that you search using the keyword "remote test lab" in the blog list and look through other posts related to the remote test lab as well. understanding 16 kb page size for a general understanding of what a page refers to in the context of an operating system (os), see page (computer memory). you can think of it as a way of managing dram memory in units called pages. for example, if you divide a physical dram memory of 32 kb into 4 kb pages, you get 8 pages. if you divide it into 16 kb pages, you get 2 pages. this physical memory is mapped into the virtual address space of each process, and the unit of this mapping is a page. when a process accesses a specific address, it goes through a page table to access the page of the physical memory corresponding to the address. if the page size is increased from 4 kb to 16 kb, allocating and mapping a memory of 16 kb that would have used 4 operations can now be done in just one. this affects not only in-kernel memory management, but also the file system and block layer, ultimately leading to an improvement in performance. kernel mmap & application change understanding the mmap api in a linux kernel, user space processes use the mmap api to map files or devices into their virtual address space. one of the arguments in mmap is the offset, which is required to be a multiple of the page size, as shown below. failing to adhere to the requirement will fail the mmap operation. if the application logic assumes that mmap will succeed, this may cause the application to crash. the offset must be a multiple of the page size as returned by sysconf(_sc_page_size) impact of the page size change when the kernel page size changes from 4 kb to 16 kb, the mmap's offset value must now be a multiple of 16 kb, not 4 kb. in other words, on a 4 kb page kernel, offsets of 0, 4, 8, and 12 kb work correctly, but on a 16 kb page kernel, offsets of 4, 8, and 12 kb do not. you can configure these mmap operations while building an application, but it is also possible the developer did not use the mmap themselves, because in many cases the internal linker performs the mmap automatically. a linker refers to the application's executable and linkable format (elf) to perform the mmap. it's important to build the application with 16 kb pages to make sure the linker performs the mmap to the correct locations for the 16 kb page kernel. to reiterate, if your application includes native code (not just java), ensure that you have built it to support 16 kb page sizes. for guidance, refer to this google document. we have also provided a shell script that you can use to verify that your application supports the 16 kb page size.

Jaewon Kim

https://developer.samsung.com/remote-test-lab/blog/en-us/2025/07/07/optimize-your-applications-for-16-kb-page-size-compatibility-using-samsungs-remote-test-lab

Develop Samsung Wallet

doc

Code Lab Exercise for ATW

code lab exercise for add to wallet integration exercise this code lab exercise is designed to help partners apply their knowledge of samsung wallet by guiding them through a complete hands-on integration in approximately 30 minutes, participants will create and test a working "add to wallet" implementation using sample data the exercise is divided into 10 structured sections; each focused on a key step in the integration workflow these sections are designed to be completed in sequence for the best learning experience objective overview set up your environment start your project create wallet cards launch wallet cards apply the add to wallet script generate and input the cdata test the "add to wallet" button you're done! if you have read through all the materials in this section, please don't hesitate to try the code lab exercise it will be worth it!

https://developer.samsung.com/wallet/codelabandtesttools/codelabexerciseforaddtowallet.html

Develop Samsung Wallet

doc

Code Lab Exercise for VWW

code lab exercise for verify with wallet integration exercise this code lab exercise provides partners an opportunity to test and consolidate their understanding of "verify your id with samsung wallet" it is designed to walk partners through the wallet integration process in just 30 minutes it consists of the following 11 sections objective overview set up your environment start the onboarding process create a relying party wallet card launch wallet cards create a verify with samsung wallet button app2app run and test the application app2app test the verify with samsung wallet button web2app tokenize card data and implement the verify with wallet button to your service optional you're done! if you have read through all the materials in this section, please don't hesitate to try the code lab exercise it will be worth it!

https://developer.samsung.com/wallet/codelabandtesttools/codelabexerciseforverifywithwallet.html

events

blog

Code Lab at SDC24 Highlights

the 10th anniversary of the samsung developer conference (sdc24) took place on october 3rd, 2024, at san jose mcenery convention center in san jose, california and online. alongside other exciting activities and showcasing of the latest technological advances, code lab offered attendees the opportunity to engage in hands-on experiences and deep dive into the latest samsung sdks and tools. code lab allows tech enthusiasts and developers of all skill levels and interests to learn about the diverse world of samsung development. this year's code lab covered a range of topics related to smartthings, samsung health, samsung wallet, and automotive. 1. smartthings participants actively engaged in creating a smartthings edge driver for a smart device and resolved edge driver issues using the smartthings test suite. they also designed their own smartthings find-compatible device. these activities are now available online for continued learning. moreover, participants discovered how to use generative ai in routine generation and 3d object creation. although exclusive to sdc24, these activities provided a glimpse of the upcoming generative ai feature in the smartthings app. 2. samsung health the new samsung health data sdk was presented to participants through two health-focused activities. the participants developed android apps capable of gathering and analyzing data from the samsung health app and connected wearable devices, including step count and sleep patterns. additionally, participants learned how to easily establish a health research platform utilizing the samsung health research stack, an open-source toolkit, allowing data collection from mobile and wearable devices and visualization through a web portal. 3. samsung wallet participants were taught two methods to integrate the samsung pay payment system into services, including utilizing the web checkout sdk for websites and incorporating the samsung pay sdk flutter plugin for in-app payments within flutter-based applications. they also acquired knowledge on maximizing the capabilities of samsung wallet, particularly learning how to utilize the add to samsung wallet service to store digital assets like boarding passes, tickets, and coupons within the samsung wallet application. furthermore, they learned how to add a button in websites or android apps to authenticate users' identities using the id information stored in the wallet app. 4. automotive participants had the opportunity to develop an in-vehicle app for android automotive os (aaos) using templates from aaos and ignite store. the app incorporated payment processing functionality through the ignite payment sdk, powered by samsung checkout. with guidance from mentors at harman international, a subsidiary of samsung, participants gained valuable knowledge into app development specifically tailored for the automotive industry. this marked the first code lab activity focused on automotive applications. the samsung developer conference promotes innovation and collaboration in the tech industry. by offering a wide variety of subjects in code lab, participants are given the necessary resources and expertise to expand the limits of what can be achieved within samsung's ecosystem. although sdc24 has concluded, the innovative spirit lives on! for those who missed out on the event or simply desire to explore additional activities, the code lab page offers endless possibilities accessible at any time, from any location.

Christopher Marquez

https://developer.samsung.com/sdp/blog/en-us/2024/11/06/code-lab-at-sdc24-highlights

Learn Code Lab

web

Code Lab | Samsung Developers

code lab code lab is an education platform that engages anyone to understand, through a series of topics, the entirety of the sdks and tools powered by samsung. all tags all tags health write exercise data to samsung health 30 mins start watch face studio create multiple premade watch face designs in a single project 30 mins start health measure electrodermal activity on galaxy watch 30 mins start watch face studio optimize your watch face design 30 mins start watch face studio apply motion graphics to your watch face using tag expressions and gyro effects 30 mins start in-app purchase implement in-app subscriptions using samsung iap 30 mins start watch face studio design a watch face with customizable edge complication slots and digital clock 30 mins start in-app purchase add samsung in-app purchase service to your app 30 mins start watch face studio get creative with weather data in watch face studio 30 mins start sdc24 health build a health app with steps from samsung health and its connected wearables 30 mins start sdc24 health access rich sleep data from samsung health measured by galaxy wearables 30 mins start sdc24 smartthings create a smartthings edge driver for an iot bulb 30 mins start sdc24 smartthings develop a smartthings find-compatible device 30 mins start sdc24 smartthings test edge drivers using smartthings test suite 30 mins start sdc24 health research stack establish a health research system using samsung health research stack 30 mins start sdc24 samsung pay samsung wallet integrate samsung pay web checkout with merchant sites 30 mins start sdc24 samsung pay samsung wallet integrate samsung pay sdk flutter plugin into merchant apps for in-app payment 30 mins start sdc24 samsung wallet utilize add to samsung wallet service for digital cards 30 mins start sdc24 samsung wallet verify your id with samsung wallet 30 mins start sdc24 automotive create an android automotive operating system (aaos) app with payments via samsung checkout 30 mins start watch face studio apply gyro effects to a watch face using watch face studio 20 mins start smartthings matter: create a virtual device and make an open source contribution 25 mins start smartthings matter: build a matter iot app with smartthings home api 25 mins start galaxy z develop a widget for flex window 25 mins start samsung pay samsung wallet integrate in-app payment into merchant apps using samsung pay sdk 30 mins start gamedev optimize game performance with adaptive performance in unity 30 mins start gamedev galaxy z implement flex mode into a unity game 30 mins start watch face studio customize styles of a watch face with watch face studio 30 mins start watch face studio galaxy z customize flex window using good lock plugin on watch face studio 20 mins start health measure skin temperature on galaxy watch 20 mins start health transfer heart rate data from galaxy watch to a mobile device 30 mins start watch face studio design a watch face using mask and moon phase tags 30 mins start bixby smartthings control a smart bulb 30 mins start watch face studio apply conditional lines on watch faces 20 mins start health measure blood oxygen level on galaxy watch 30 mins start health measure blood oxygen level and heart rate on galaxy watch 40 mins start galaxy z implement multi-window picture-in-picture on a video player 20 mins start samsung blockchain transfer erc20 token with blockchain app 45 mins start galaxy ar emoji gamedev use ar emoji on games and 3d apps 60 mins start gamedev galaxy z implement flex mode on an unreal engine game 120 mins start smartthings integrate iot devices into the smartthings ecosystem 45 mins start watch face studio create a watch face using tag expressions 60 mins start galaxy z implement flex mode on a video player 30 mins start galaxy z implement app continuity and optimize large screen ui of a gallery app 40 mins start galaxy z configure an app to enable copy and paste in multi-window 30 mins start galaxy z configure an app to enable drag and drop in multi-window 30 mins start samsung blockchain develop a blockchain shopping app 40 mins start

https://developer.samsung.com/codelab/

events iot, health, game, design, mobile, galaxy watch, foldable

blog

Code Lab at SDC23: A Quick Recap

the samsung developer conference 2023 (sdc23) happened on october 5, 2023, at moscone north in san francisco and online. among the many exciting activities at the conference for developers and tech enthusiasts, code lab offered a unique opportunity to learn about the latest samsung sdks and tools. code lab is a hands-on learning experience, providing participants with a platform to explore the diverse world of samsung development. code lab activities are accessible for developers of all skill levels and interests, ensuring that everyone, from beginners to experts, can find something exciting to explore. covering a wide array of topics within the code lab, the conference catered to the diverse interests of the participants. here's a quick look at some of the sdc23 topics: 1. smartthings participants had the chance to build a matter iot app using the smartthings home api and create virtual devices that they could control using the smartthings app or their own iot apps. they also learned how to develop a smartthings find-compatible device. these topics are all about connecting and enhancing the smart home experience. 2. galaxy z participants, who are interested in foldable technology, were able to develop a widget for the flex window. this topic opens new possibilities in app design and user interaction. 3. samsung wallet participants learned to integrate the "add to samsung wallet" button into sample partner services. they also learned to implement in-app payment into a sample merchant app using the samsung pay sdk. these topics focus on enhancing the mobile wallet experience for samsung users. 4. gamedev game developers and enthusiasts had the opportunity to optimize game performance with adaptive performance in unity. they also learned to implement flex mode into unity games for foldable phones. these topics offer insights into the gaming industry's latest trends and technologies. 5. watch face studio code lab also provided an activity for participants to create a watch face design with customized styles using watch face studio. participants also learned how to convert the watch face design for galaxy z flip5's flex window display using the good lock plugin. 6. samsung health the health-focused code lab topics covered measuring skin temperature on galaxy watch and transferring heart rate data from galaxy watch to a mobile device with the samsung privileged health sdk. participants also learned how to create health research apps using the samsung health stack. these topics provide valuable insights into the health and fitness tech landscape. from creating virtual devices to building health-related apps, participants left the conference with new knowledge they could apply to their development projects. the samsung developer conference is a celebration of innovation and collaboration in the tech world. with a diverse range of topics in code lab, participants were equipped with the tools and knowledge to push the boundaries of what is possible in samsung's ecosystem. though sdc23 has ended, the innovation lives on! whether you missed the event or just want to try other activities, you can visit the code lab page anytime, anywhere. we can't wait to see you and the innovations that will emerge from this conference in the coming years. see you at sdc24!

Christopher Marquez

https://developer.samsung.com/sdp/blog/en-us/2023/10/17/code-lab-at-sdc23-a-quick-recap

tutorials mobile, health, game, blockchain, galaxy watch, foldable, iot

blog

Start Your Learning Journey with Code Lab

if you are looking for an opportunity to boost your skills and learn how to use samsung sdks and tools through various hands-on learning experiences, code lab is the right place for you. code lab is a learning platform where you can get started with the latest technologies and services in samsung. through its series of tutorials, it introduces you to the use cases or scenarios for a specific technology. it engages anyone through the step-by-step process of building a sample application or adding a new feature to an existing one. with that, you can integrate your learnings from code lab into your individual or business needs. you can start, by trying out one topic or use case that interests you, and get to know how to easily use a service or tool. it covers topics related to mobile, ai, iot, health, game, security, blockchain, web, or wearables. new topics have been published in code lab for you to learn about samsung’s latest cutting-edge technologies, enabling you to use them to your advantage. with the advent of foldable smartphones, contents like camera web app on foldables, flex mode, app continuity, and multi-window will help you create or modify your applications to adapt seamlessly with different form factors. code lab also provides tutorials on designing your watch face and tracking exercises for the newly released galaxy watch4, operating on wear os powered by samsung. to enhance your hands-on learning experience with code lab, you can simply test sample applications in remote test lab even if you don’t have any physical galaxy devices. it’s a service that allows you to test your apps virtually and remotely, on thousands of samsung galaxy mobile and watch devices. flagship devices are widely available like the galaxy s21 series and the latest galaxy z fold3 and z flip3. not only can you learn with code lab, but you can also test anytime, anywhere. now, are you ready to start your learning journey? visit: https://developer.samsung.com/codelab

Christopher Marquez

https://developer.samsung.com/sdp/blog/en-us/2021/12/10/start-your-learning-journey-with-code-lab

events iot

blog

Samsung Developer Conference 2019

registration is now open for the samsung developer conference 2019 in san jose, california! join over 5,000 developers, creators and technologists as smartthings will announce some new developments in our smartthings platform. our 2 day conference will consist of code labs, technical sessions and keynotes. access to the conference includes: updates on the latest sdc news, technical session details and speaker lineup. a full pass that includes entry into all keynotes, sessions and code labs. access to our exhibition area and smartthings developer code labs. meetings with our smartthings engineering teams! we have limited tickets, so sign up today!

SmartThings Developers

https://developer.samsung.com/smartthings/blog/en-us/2019/08/01/samsung-developer-conference-2019
web

Support | Samsung Developer

samsung dev support use our tools and services to provide an exceptional experience to samsung users around the world. how can we support you? faq testing tools recommended articles forums 1:1 support start with the faqs check out the most frequently asked questions and answers for samsung developers. search by categories test your apps testing tools & software resources remote test lab test your app on real devices in the cloud, including foldables and new releases. galaxy emulator skin apply galaxy device skins to android studio emulators for accurate previews. android usb driver install the latest usb driver for samsung android devices on windows. one ui beta program join the latest one ui beta and share feedback with the samsung team. read top picks recommended articles to get insights galaxy store get started in galaxy store find out how to start selling your apps in the galaxy store watch face studio create a watch face get acquainted with watch face studio, which lets you turn your ideas into wear os watch faces galaxy emulator skin use latest emulator skins learn about using the available emulator skins for samsung devices code lab try code labs get hands-on with the new development features through code lab topics and samples samsung developer forums, post your questions and get answers visit the forum to ask questions and exchange ideas with other developer. get help from forums still need help? 1:1 support for developer the developer support team focuses on technical support for samsung sdks and tools. we do not accept unsolicited ideas or suggestions. see the suggestion policy details. get support looking for support request? have you already submitted a support request through samsung developers?visit your samsung account dashboard to track your requests. go to dashboard

https://developer.samsung.com/support

Learn Code Lab

codelab

Develop a widget for Flex Window

develop a widget for flex window objective learn how to create a calendar widget on the flex window of galaxy z flip5 overview the flex window of galaxy z flip5 provides a wider screen than the previous model, galaxy z flip4 it provides more functionalities, such as having customizable clocks, rich wallpapers, and informative notification list the widget that you are going to develop for this code lab can provide a simple interface by executing simple tasks directly visible on the flex window it can guide users to open their z flip5 to perform complex actions on the main screen set up your environment you will need the following samsung galaxy z flip5 android studio latest version recommended java se development kit jdk 11 or later remote test lab if physical device is not available sample code here is a sample code for you to start coding in this code lab download it and start your learning experience! flex window widget sample code 394 8 kb start your project after downloading the sample code containing the project files, open your android studio and click open to open an existing project locate the downloaded android project capsule_samplewidget from the directory and click ok make the appwidgetprovider noteto know the basics about creating a widget in android, you may refer to this android developer guide the android appwidget provider defines the properties of the widget while com samsung android appwidget provider implements the methods of the appwidgetprovider class to make the appwidgetprovider, you need to declare the location of the xml file in androidmanifest xml to do this go to app > manifests and open androidmanifest xml look for the <receiver> tag with the simplecalendarwidgetprovider identifier add the following meta-data just above the </receiver> tag <meta-data android name="android appwidget provider" android resource="@xml/meta_info_calendar_widget" /> <meta-data android name="com samsung android appwidget provider" android resource="@xml/samsung_meta_info_sample_widget" /> set the size of the widget go to app > res > xml and open meta_info_calendar_widget xml add the following attributes to set the size of the flex window and set it as a lock screen android minwidth="352dp" android minheight="339dp" android resizemode="horizontal|vertical" android widgetcategory="keyguard" add the samsung appwidgetproviderinfo meta-data go to app > res > xml and open samsung_meta_info_calendar_widget xml add the following attribute to configure the display of the flex window <samsung-appwidget-provider display="sub_screen"> </samsung-appwidget-provider> start the activity from the widget the launchdisplayid indicates whether the widget is on the cover screen or on the main screen if you want to launch an activity from the widget, simply follow these steps to specify the screen display id go to app > java > com samsung android samplewidget > provider open simplecalendarwidgetprovider kt and assign 0 to the launchdisplayid if you want to display the widget on the main screen, and assign 1 if you want it to run on the flex window here, let's start a calendar activity on the main screen launchdisplayid = main_screen_id allow modification of the widget settings create a widget configuration activity to allow modification of the widget settings the appwidgetproviderinfo object describes the meta-data for the widget, such as its layout and update frequency go to app > res > xml and open meta_info_calendar_widget xml declare the configuration activity in the <appwidget-provider> tag by placing the android configure attribute android configure="com samsung android samplewidget activity editsettingactivity" create ongoing notifications first, enable the code to send notification in simplecalendarwidgetprovider kt in simplecalendarwidgetprovider kt, call the makenotification function from the notificationutil class to provide a notification for the sample widget val notificationutil = notificationutil context val notification = notificationutil makenotification pendingintent getactivity context, 0, intent context, editsettingactivity class java , pendingintent flag_cancel_current or pendingintent flag_immutable , it size notificationutil sendnotification notificationutil notification_id, notification set the notification's properties in the same function in notificationutil kt setsmallicon r drawable ic_cover_screen setcolor color parsecolor "#338577" setcontenttitle "sample widget" setongoing true after creating the notification, it should go to the main window of the flex window you can now check and see that there's an ongoing notification notethis feature only works with one ui 6 0 enable the calendar widget now, you can build the project in android studio and test it on your device to enable the widget in your galaxy z flip5, you have to go to settings > cover screen and tap widgets enable the widget that you've created in this code lab you can now see the widget on the flex window of your galaxy z flip5 check other features of the widget you can also test other features of the widget included in the sample project background of the widget in this code lab, you can check the sample project on how to change the background of the widget to be opaque or transparent vertical scrolling also, vertical scrolling is already implemented in the sample project you can check its implementation in the code this allows you to preview more notifications as possible in the flex window you're done! congratulations! you have successfully achieved the goal of this code lab now, you can develop a widget for the flex window by yourself! if you face any trouble, you may download this file flex window widget complete project 394 8 kb to learn more, explore galaxy z

https://developer.samsung.com/codelab/galaxy-z/widget-flex-window.html

Preferences Submitted

You have successfully updated your cookie preferences.

AltStyle によって変換されたページ (->オリジナル) /