TikTok 利用 Android 工具提供最佳使用者體驗
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
TikTok 是全球以社群為靈感來源的娛樂平台,讓全球超過 10 億名使用者齊聚一堂,盡情探索、製作及分享自己喜愛的內容。
多元的使用者族群需要不同的網路條件和裝置規格,因此無論使用哪種裝置,所有使用者都能享有流暢的回應式應用程式體驗。
如果 TikTok 載入速度緩慢或播放過程卡住,使用者可能會感到不悅,且完全放棄應用程式。為了避免這種情況,TikTok 會透過資料監控、同類應用程式比較和使用者問卷調查來追蹤整體應用程式效能。該團隊也採用 Systrace 和 Simpleperf 等剖析工具,減少 UI 資源浪費、播放延遲和網路問題。儘管這項做法的成效良好,工程團隊也希望能進一步找出影響成效的根本因素,並制定可量化成效指標的最佳化計畫。
如何做到這點
TikTok 的目標是加快啟動速度,並提供更順暢的播放體驗和使用者體驗。為了達成這些目標,該團隊使用 Android 開發工具找出需要改善的部分並加以修正。
為了縮短 TikTok 的啟動時間,該團隊根據 Android Jetpack 的 App Startup 程式庫重構了啟動架構。
為了提供更順暢的使用者介面,該團隊利用 Andriod Studio 中的版面配置檢查器來簡化檢視區塊階層,並移除過多內容。TikTok 制定策略會將複雜的工作分散到不同的影格,確保應用程式在執行期間的影格速率一致。
影片播放是 TikTok 應用程式體驗的核心。該團隊重複使用玩家執行個體,並利用預先載入/預先算繪功能,迅速順暢地從觀看影片到另一部影片的轉場效果。
成果
TikTok 團隊多年來持續使用 Android 效能工具追蹤、量化及最佳化所有效能因素。許多應用程式成效指標都已獲得顯著改善,包括:
- 應用程式啟動時間減少了 45%
- 在使用者體驗中,資源浪費、影格遺失或凍結的問題減少了 49%。現在播放影片時,第一個影格的速度顯示速度會提升 41%,而影片延遲時間也減少了 27%
改善使用者體驗後,現在有越來越多人使用 TikTok。工作階段持續時間增加,而每位使用者的活躍天數在 30 天內,每位使用者的活躍天數也增加 1%。使用者問卷調查和應用程式評分也讓整體使用者滿意度大幅提升。
該團隊將重點放在達成 Android 應用程式卓越性並指定最新的平台版本 Android 13,藉此持續改善使用者體驗,吸引更多使用者分享及使用內容。
目前全球有超過 2.5 億部 Android 大螢幕裝置使用,該團隊也致力提高大螢幕裝置的採用率,希望不久後就能為使用者提供更身歷其境的 TikTok 體驗。
立即開始
如要進一步瞭解 TikTok 團隊如何根據效能資料對應用程式進行最佳化調整,並使用 Android 工具改善整體應用程式體驗,請參閱開發人員專用的技術個案研究。
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-07-27 (世界標準時間)。
[null,null,["上次更新時間:2025-07-27 (世界標準時間)。"],[],[],null,["# TikTok Optimizes User Experience with Android Tools\n\n[TikTok](https://play.google.com/store/apps/details?id=com.zhiliaoapp.musically), the world's community-driven entertainment destination, brings over 1 billion people together from around the world to discover, create and share content they love.\n\nA diverse user base requires various network conditions and device specifications, and all users want a seamless, responsive app experience regardless of which device they use.\n\nIf TikTok is slow to load, or playbacks get stuck, users will get frustrated and abandon the app altogether. To avoid this, TikTok relies on data monitoring, peer app comparison and user surveys to track the overall app performance. The team also adopted profiling tools like [Systrace](https://developer.android.com/topic/performance/tracing) and [Simpleperf](https://developer.android.com/ndk/guides/simpleperf), to reduce UI jank, playback lags and network issues. While this has been working well, the engineering team was looking to take it one step further and uncover the underlying factors affecting the performance and develop an optimization plan with quantifiable performance indicators.\n\nHow they did it\n---------------\n\nTikTok's goal was to achieve a faster startup speed and ensure a more seamless playback and user experience. To meet these goals, the team used Android development tools to find areas of improvement and refine them.\n\nTo reduce TikTok's startup time, the team refactored the startup framework based on Android [Jetpack's App Startup library](https://developer.android.com/topic/libraries/app-startup).\n\nTo ensure a smoother user interface, the team used the [Layout Inspector](https://developer.android.com/studio/debug/layout-inspector) in [Andriod Studio](https://developer.android.com/studio) to simplify their View hierarchy and remove excessive content. TikTok developed a strategy to spread complex tasks across different frames to ensure consistent frame rates while the app is running.\n\nVideo playback is at the core of TikTok's app experience. The team reused player instances and utilized preloading/pre-rendering to create quick and seamless transitions from watching one video then switching to another.\n\nResults\n-------\n\nThe TikTok team has been using [Android performance tools](https://developer.android.com/topic/performance) for over a year to track, quantify, and optimize all of their performance factors. Many of the app's performance indicators have seen significant improvement, including:\n\n- The app startup time was reduced by 45%\n- A 49% decrease in jank, dropped or frozen frames in user experience - the first frame when playing a video now appears 41% faster and video lag has been reduced by 27%\n\nWith an improved user experience, more people are now using TikTok. Session duration has gone up and users are more likely to stay active in the app with the active days per user in 30 days increasing by 1%. User surveys and app ratings have also pointed to a significant increase in overall user satisfaction.\n\nBy shifting their focus on achieving [Android App Excellence](https://developer.android.com/quality) and targeting the latest platform release, Android 13, the team continuously improves the user experience, leading more people to share and consume content.\n\nWith more than 250 million large screen Android devices currently in use globally, the team is also focusing on growing their large-screen device adoption to bring a more immersive TikTok experience for users in the near future.\n\nGet Started\n-----------\n\nTo learn more about how the TikTok team optimized their app based on performance data and improved the overall app experience using Android tools, please read our [technical case study](https://android-developers.googleblog.com/2022/08/precise-improvements-how-tiktok-enhanced-its-social-experience-on-android.html) for developers."]]