সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
Android ম্যানেজমেন্ট API (AMAPI) SDK নির্দিষ্ট অ্যাপগুলিকে Android ডিভাইস নীতি (ADP) এর সাথে সরাসরি যোগাযোগ করতে সক্ষম করে। এটির জন্য সমর্থন অন্তর্ভুক্ত করে:
নিশ্চিত করুন যে আপনার অ্যাপের minSdkVersion কমপক্ষে API স্তর 21-এ সেট করা আছে।
আপনার অ্যাপ্লিকেশনে AMAPI SDK-এর সর্বশেষ সংস্করণের জন্য নির্ভরতা যোগ করুন। আপনি AMAPI SDK-এর রিলিজ নোট পৃষ্ঠায় সর্বশেষ উপলব্ধ লাইব্রেরির সংস্করণ এবং আপনার অ্যাপ্লিকেশনে এটি কীভাবে যুক্ত করবেন তা খুঁজে পেতে পারেন।
প্রশ্ন উপাদান যোগ করুন
যদি আপনার অ্যাপটি SDK 30 বা তার পরে টার্গেট করে, তাহলে এটি ADP-এর সাথে ইন্টারঅ্যাক্ট করবে তা নির্দিষ্ট করতে AndroidManifest.xml এ কোয়েরি উপাদান প্রয়োজন।
কিছু বৈশিষ্ট্যের জন্য একটি NotificationReceiverService তৈরি করা প্রয়োজন, এবং কিছু বৈশিষ্ট্য এটির ঐচ্ছিক ব্যবহার করে। এটি ব্যবহার করতে, NotificationReceiverService প্রসারিত একটি শ্রেণী সংজ্ঞায়িত করুন, এটিকে আপনার AndroidManifest.xml এ একটি service হিসাবে যুক্ত করুন এবং নিশ্চিত করুন যে এটি রপ্তানি হয়েছে৷
importcom.google.android.managementapi.notification.NotificationReceiverService;...publicfinalclassMyAppNotificationReceiverServiceextendsNotificationReceiverService{@OverrideprotectedvoidsetupInjection(){// This method can be optionally used to inject dependencies at the// beginning of the service lifecycle.}}
সাধারণত আপনার ক্লাসের ComponentName যা NotificationReceiverService প্রয়োগ করে একটি উপযুক্ত API এর মাধ্যমে আমাদের কাছে প্রেরণ করা দরকার। বিশদ প্রশ্নে থাকা বৈশিষ্ট্যের উপর নির্ভর করে এবং প্রতিটি বৈশিষ্ট্য যার এই নথির প্রয়োজন তার উপর নির্ভর করে পরিবর্তিত হয়।
[[["সহজে বোঝা যায়","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-24 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["The [Android Management API (AMAPI) SDK](https://maven.google.com/web/index.html#com.google.android.libraries.enterprise.amapi) enables specific apps to\ncommunicate directly with Android Device Policy (ADP). It includes support for:\n\n- [Local execution of Commands](/android/management/sdk-local-commands).\n- [Migrate devices managed with a custom DPC to AMAPI](/android/management/dpc-migration)\n- [Device Trust from Android Enterprise](/android/management/device-trust-api)\n\nThe following steps must be taken to integrate the AMAPI SDK with your\napplication:\n\n1. [Add the AMAPI SDK library](/android/management/sdk-release-notes#declare_dependencies).\n2. [Add the queries element](#add_queries), if target SDK \\\u003e= 30.\n\n| **Note:** If you are developing an extension app, you will also need to provision the device with an [extensibility policy](/android/management/sdk-local-commands#policy).\n\nPrerequisites\n\n- Ensure that your app's `minSdkVersion` is set to at least API level 21.\n- Add the dependencies for the latest version of the AMAPI SDK to your application. You can find the version of the latest available library, and how to add it to your application, in the [AMAPI SDK's release notes](/android/management/sdk-release-notes) page.\n\nAdd queries element\n\nIf your app targets SDK 30 or later, then queries element is needed in the\n`AndroidManifest.xml` to specify that it will interact with ADP. \n\n \u003cqueries\u003e\n \u003cpackage android:name=\"com.google.android.apps.work.clouddpc\" /\u003e\n \u003c/queries\u003e\n\nSee [Package visibility filtering on Android](https://developer.android.com/training/package-visibility) for more information.\n\nImplement a NotificationReceiverService\n\nSome features require creating a\n[`NotificationReceiverService`](/android/management/reference/amapi/com/google/android/managementapi/notification/NotificationReceiverService), and some features\nmake optional use of it. To use it, define a class extending\n`NotificationReceiverService`, add it as a `service` to your\n`AndroidManifest.xml`, and make sure it is exported. \n\n\n import com.google.android.managementapi.notification.NotificationReceiverService;\n\n ...\n\n public final class MyAppNotificationReceiverService extends NotificationReceiverService {\n\n @Override\n protected void setupInjection() {\n // This method can be optionally used to inject dependencies at the\n // beginning of the service lifecycle.\n }\n }\n\nIn your `AndroidManifest.xml`, add \n\n \u003cservice\n android:name = \".MyAppNotificationReceiverService\"\n android:exported = \"true\" /\u003e\n\nTypically the `ComponentName` of your class which implements\n`NotificationReceiverService` needs to be passed to us through a suitable API.\nThe details vary depending on the feature in question, and each feature which\nneeds this documents it."]]