- সিনট্যাক্স:
<instrumentation android:functionalTest=["true" | "false"] android:handleProfiling=["true" | "false"] android:icon="drawable resource" android:label="string resource" android:name="string" android:targetPackage="string" android:targetProcesses="string" />
- এর মধ্যে রয়েছে:
-
<manifest>
- বর্ণনা:
- একটি
Instrumentation
ক্লাস ঘোষণা করে যা আপনাকে সিস্টেমের সাথে একটি অ্যাপ্লিকেশনের মিথস্ক্রিয়া নিরীক্ষণ করতে দেয়।Instrumentation
অবজেক্টটি অ্যাপ্লিকেশনের যেকোনো উপাদানের আগে ইনস্ট্যান্টিয়েট করা হয়। - গুণাবলী:
-
android:functionalTest
-
Instrumentation
ক্লাস একটি কার্যকরী পরীক্ষা হিসাবে চলে কিনা। এটা করলেtrue
এবং না হলেfalse
। ডিফল্ট মানfalse
। -
android:handleProfiling
-
Instrumentation
অবজেক্ট প্রোফাইলিং চালু বা বন্ধ করে কিনা। এটিtrue
যদি এটি নির্ধারণ করে যে কখন প্রোফাইলিং শুরু হবে এবং কখন বন্ধ হবে এবং প্রোফাইলিং চলাকালীন পুরো সময় চলতে থাকলেfalse
।true
একটি মান অবজেক্টটিকে একটি নির্দিষ্ট ক্রিয়াকলাপের সেটে প্রোফাইলিং লক্ষ্য করতে সক্ষম করে। ডিফল্ট মানfalse
। -
android:icon
- একটি আইকন যা
Instrumentation
ক্লাসের প্রতিনিধিত্ব করে। এই বৈশিষ্ট্যটি একটি অঙ্কনযোগ্য সম্পদের একটি রেফারেন্স হিসাবে সেট করা আবশ্যক। -
android:label
-
Instrumentation
ক্লাসের জন্য একটি ব্যবহারকারী-পাঠযোগ্য লেবেল। লেবেলটি একটি কাঁচা স্ট্রিং বা একটি স্ট্রিং সংস্থানের রেফারেন্স হিসাবে সেট করা যেতে পারে। -
android:name
-
Instrumentation
সাবক্লাসের নাম। একটি সম্পূর্ণ যোগ্য শ্রেণীর নাম ব্যবহার করুন, যেমনcom.example.project.StringInstrumentation
। যাইহোক, শর্টহ্যান্ড হিসাবে, নামের প্রথম অক্ষরটি একটি পিরিয়ড হলে, এটি<manifest>
উপাদানে নির্দিষ্ট করা প্যাকেজ নামের সাথে যুক্ত করা হয়।কোন ডিফল্ট নেই. নাম উল্লেখ করতে হবে।
-
android:targetPackage
- যে অ্যাপ্লিকেশনটির বিরুদ্ধে
Instrumentation
অবজেক্ট চলে। একটি অ্যাপ্লিকেশন<manifest>
উপাদান দ্বারা তার ম্যানিফেস্ট ফাইলে নির্ধারিত প্যাকেজ নাম দ্বারা চিহ্নিত করা হয়। -
android:targetProcesses
Instrumentation
অবজেক্ট যে প্রক্রিয়াগুলির বিরুদ্ধে চলে। একটি কমা-বিচ্ছিন্ন তালিকা নির্দেশ করে যে ইন্সট্রুমেন্টেশন সেই নির্দিষ্ট প্রক্রিয়াগুলির বিরুদ্ধে চলে।"*"
এর মান নির্দেশ করে যে যন্ত্রটিandroid:targetPackage
এ সংজ্ঞায়িত অ্যাপের সমস্ত প্রক্রিয়ার বিরুদ্ধে চলে।যদি এই মানটি ম্যানিফেস্টে দেওয়া না থাকে, তাহলে যন্ত্রটি শুধুমাত্র
android:targetPackage
এ সংজ্ঞায়িত অ্যাপের মূল প্রক্রিয়ার বিপরীতে চলে।এই বৈশিষ্ট্যটি API স্তর 26 এ যোগ করা হয়েছে।
-
- প্রবর্তিত:
- API স্তর 1
<ইনস্ট্রুমেন্টেশন>
এই পৃষ্ঠার কন্টেন্ট ও কোডের নমুনাগুলি 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,["# <instrumentation\u003e\n\nsyntax:\n:\n\n ```xml\n \u003cinstrumentation android:functionalTest=[\"true\" | \"false\"]\n android:handleProfiling=[\"true\" | \"false\"]\n android:icon=\"drawable resource\"\n android:label=\"string resource\"\n android:name=\"string\"\n android:targetPackage=\"string\"\n android:targetProcesses=\"string\" /\u003e\n ```\n\ncontained in:\n: [\u003cmanifest\u003e](/guide/topics/manifest/manifest-element)\n\ndescription:\n: Declares an [Instrumentation](/reference/android/app/Instrumentation) class that lets you\n monitor an application's interaction with the system. The `Instrumentation`\n object is instantiated before any of the application's components.\n\nattributes:\n:\n\n `android:functionalTest`\n : Whether the `Instrumentation` class runs as a functional test.\n This is `true` if it does and `false` if not. The\n default value is `false`.\n\n `android:handleProfiling`\n : Whether the `Instrumentation` object turns profiling on and\n off. This is `true` if it determines when profiling starts and\n stops and `false` if profiling continues the entire time it is\n running. A value of `true` enables the object to target profiling\n at a specific set of operations. The default value is `false`.\n\n `android:icon`\n : An icon that represents the `Instrumentation` class. This attribute\n must be set as a reference to a drawable resource.\n\n `android:label`\n : A user-readable label for the `Instrumentation` class. The label\n can be set as a raw string or a reference to a string resource.\n\n `android:name`\n : The name of the `Instrumentation` subclass.\n Use a fully qualified class name, such as\n `com.example.project.StringInstrumentation`. However, as a shorthand,\n if the first character of the name is a period, it is appended to the package\n name specified in the [\u003cmanifest\u003e](/guide/topics/manifest/manifest-element) element.\n\n\n There is no default. The name must be specified.\n\n `android:targetPackage`\n : The application that the `Instrumentation` object runs\n against. An application is identified by the package name assigned in its\n manifest file by the `\u003cmanifest\u003e` element.\n\n `android:targetProcesses`\n\n : The processes that the `Instrumentation` object\n runs against. A comma-separated list indicates that the instrumentation runs\n against those specific processes. A value of `\"*\"` indicates that the\n instrumentation runs against all processes of the app defined in\n `android:targetPackage`.\n\n If this value isn't provided in the manifest, the instrumentation runs\n only against the main process of the app defined in\n `android:targetPackage`.\n\n This attribute was added in API level 26.\n\nintroduced in:\n: API level 1"]]