আপনার যদি বিকাশকারী এমুলেটরে অ্যাক্সেস থাকে তবে আমরা আপনাকে আপনার গেমটি পরীক্ষা করার জন্য এটি ব্যবহার করার পরামর্শ দিই কারণ এটি পিসিতে Google Play গেমগুলির সবচেয়ে কাছের পরিবেশ।
লোড এবং আপনার খেলা চালান
আপনি আপনার ChromeOS ডিভাইসে APK ফাইল লোড করতে Android Debug Bridge (adb) ব্যবহার করতে পারেন। আপনি যদি ইতিমধ্যে এটি না করে থাকেন, তাহলে আমরা আপনাকে নিম্নলিখিত সরঞ্জামগুলির মধ্যে একটি ইনস্টল করার পরামর্শ দিচ্ছি, যার মধ্যে adb-এর সর্বশেষ সংস্করণ রয়েছে:
আপনি Android স্টুডিও থেকে সরাসরি আপনার অ্যাপ চালাতে পারেন, অথবা ChromeOS ডিভাইসে আপনার APK ফাইল স্থাপন করতে adb install কমান্ড ব্যবহার করতে পারেন। যদি আপনার গেমটি একটি অ্যান্ড্রয়েড অ্যাপ বান্ডেল ব্যবহার করে, তাহলে ফাইলগুলি স্থাপন করতে bundletool install-apks ব্যবহার করুন।
adb install C:\yourpath\yourgame.apk
প্ল্যাটফর্ম সনাক্ত করুন
আপনি যদি ডিভাইসের প্রকারের উপর ভিত্তি করে গেমপ্লে বৈশিষ্ট্যগুলি টগল করতে চান, ChromeOS ডিভাইসগুলি সনাক্ত করতে "org.chromium.arc" সিস্টেম বৈশিষ্ট্যটি সন্ধান করুন:
এই পৃষ্ঠার কন্টেন্ট ও কোডের নমুনাগুলি Content License-এ বর্ণিত লাইসেন্সের অধীনস্থ। Java এবং OpenJDK হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-29 UTC-তে শেষবার আপডেট করা হয়েছে।
[[["সহজে বোঝা যায়","easyToUnderstand","thumb-up"],["আমার সমস্যার সমাধান হয়েছে","solvedMyProblem","thumb-up"],["অন্যান্য","otherUp","thumb-up"]],[["এতে আমার প্রয়োজনীয় তথ্য নেই","missingTheInformationINeed","thumb-down"],["খুব জটিল / অনেক ধাপ","tooComplicatedTooManySteps","thumb-down"],["পুরনো","outOfDate","thumb-down"],["অনুবাদ সংক্রান্ত সমস্যা","translationIssue","thumb-down"],["নমুনা / কোড সংক্রান্ত সমস্যা","samplesCodeIssue","thumb-down"],["অন্যান্য","otherDown","thumb-down"]],["2025-07-29 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# Test your game on ChromeOS devices\n\nThis page describes how to run your game on a\n[ChromeOS device that supports Android](https://www.chromium.org/chromium-os/chrome-os-systems-supporting-android-apps/)\nfor testing purposes. You can use ChromeOS as an alternate testing plarform for\nGoogle Play Games on PC if you don't have access to the\n[developer emulator](/games/playgames/emulator).\n\nIf you have access to the\n[developer emulator](/games/playgames/emulator), we recommend you use it to\ntest your game because it is the closest environment to\nGoogle Play Games on PC.\n\nLoad and run your game\n----------------------\n\nYou can use [Android Debug Bridge (adb)](/studio/command-line/adb) to load\nAPK files to your ChromeOS devices. If you haven't already done so,\nwe recommend that you install one of the following\ntools, which include the latest version of adb:\n\n- [Android Studio](/studio)\n\n- [Android SDK Platform tools](/studio/releases/platform-tools#downloads)\n\nYou also need to [enable ADB connection on your ChromeOS devices](https://support.google.com/chromebook/answer/9770692?ref_topic=3415446).\n\nYou can run your app directly from Android Studio, or use the `adb install`\ncommand to deploy your APK file to ChromeOS devices. If your game uses an\nAndroid App Bundle, use [`bundletool install-apks`](/studio/command-line/bundletool#deploy_with_bundletool) to deploy the files. \n\n adb install C:\\yourpath\\yourgame.apk\n\nDetect the platform\n-------------------\n\nIf you need to toggle gameplay features based on device type, look for the\n`\"org.chromium.arc\"` system feature to detect ChromeOS devices: \n\n### Kotlin\n\n```kotlin\nvar isPC = packageManager.hasSystemFeature(\"org.chromium.arc\")\n \n```\n\n### Java\n\n```java\nPackageManager pm = getPackageManager();\nboolean isPC = pm.hasSystemFeature(\"org.chromium.arc\")\n \n```\n\n### C#\n\n```c#\nvar unityPlayerClass = new AndroidJavaClass(\"com.unity3d.player.UnityPlayer\");\nvar currentActivity = unityPlayerClass.GetStatic\u003cAndroidJavaObject\u003e(\"currentActivity\");\nvar packageManager = currentActivity.Call\u003cAndroidJavaObject\u003e(\"getPackageManager\");\nvar isPC = packageManager.Call\u003cbool\u003e(\"hasSystemFeature\", \"org.chromium.arc\");\n \n```"]]