प्रश्न और उत्तर का अभ्यास करें

प्र: What is the importance of XML-based layouts? 1073 0

  • उत्तर देखेंउत्तर छिपाएं
  • Workspace

उत्तर :
व्याख्या :

The use of XML-based layouts provides a consistent and somewhat standard means of setting GUI definition format. In common practice, layout details are placed in XML files while other items are placed in source files.

प्र: What do you know about Intents? 1729 0

  • उत्तर देखेंउत्तर छिपाएं
  • Workspace

उत्तर :
व्याख्या :

- Notification messages to the user from an Android enabled device can be displayed using Intents. - There are two types of Intents - Explicit Intent, Implicit Intent.   Implicit Intent: - In case of Implicit Intent, an intent is just declared.  - It is for the platform to find an activity that can respond to it. - Since the target component is not declared, it is used for activating components of other applications.   Explicit Intent - Explicit intent specifies the particular activity that should respond to the intent.  - They are used for application internal messages.

प्र: What is AIDL?What data types are supported by AIDL? 1893 0

  • उत्तर देखेंउत्तर छिपाएं
  • Workspace

उत्तर :
व्याख्या :

- AIDL is the abbreviation for Android Interface Definition Language.  - It handles the interface requirements between a client and a service to communicate at the same level through interprocess communication.  - The process involves breaking down objects into primitives that are Android understandable.   AIDL supports following data types: - String - List - Map - CharSequence - All native Java data types like int,long, char and Boolean

प्र: Describe Android Application Architecture. 1059 0

  • उत्तर देखेंउत्तर छिपाएं
  • Workspace

उत्तर :
व्याख्या :

Android Application Architecture has the following components: > Services - like Network Operation > Intent - To perform inter-communication between activities or services > Resource Externalization - such as strings and graphics > Notification signaling users - light, sound, icon, notification, dialog etc. > Content Providers - They share data between applications

प्र: How to select more than one option from list in android xml file? Give an example. 937 0

  • उत्तर देखेंउत्तर छिपाएं
  • Workspace

उत्तर :
व्याख्या :

Specify android id, layout height and width as depicted in the following example.

प्र: Why cannot you run standard Java bytecode on Android? 1043 0

  • उत्तर देखेंउत्तर छिपाएं
  • Workspace

उत्तर :
व्याख्या :

Android uses Dalvik Virtual Machine (DVM) which requires a special bytecode. We need to convert Java class files into Dalvik Executable files using an Android tool called "dx". In normal circumstances, developers will not be using this tool directly and build tools will care for the generation of DVM compatible files.

प्र: How does an application run in isolation from other applications? 1904 0

  • उत्तर देखेंउत्तर छिपाएं
  • Workspace

उत्तर :
व्याख्या :

Each application gets its own Linux user ID and virtual machine which means that the application code runs in isolation from other applications.

प्र: Write code snippet to retrieve IMEI number of Android phone? 1762 0

  • उत्तर देखेंउत्तर छिपाएं
  • Workspace

उत्तर :
व्याख्या :

TelephonyManager class can be used to get the IMEI number. It provides access to information about the telephony services on the device. Code         TelephonyManager mTelephonyMgr = (TelephonyManager)         getSystemService(Context.TELEPHONY_SERVICE);         String imei = mTelephonyMgr.getDeviceId();

      त्रुटि की रिपोर्ट करें

    कृपया संदेश दर्ज करें
    त्रुटि रिपोर्ट सफलतापूर्वक जमा हुई

      त्रुटि की रिपोर्ट करें

    कृपया संदेश दर्ज करें
    त्रुटि रिपोर्ट सफलतापूर्वक जमा हुई

      त्रुटि की रिपोर्ट करें

    कृपया संदेश दर्ज करें
    त्रुटि रिपोर्ट सफलतापूर्वक जमा हुई

      त्रुटि की रिपोर्ट करें

    कृपया संदेश दर्ज करें
    त्रुटि रिपोर्ट सफलतापूर्वक जमा हुई

      त्रुटि की रिपोर्ट करें

    कृपया संदेश दर्ज करें
    त्रुटि रिपोर्ट सफलतापूर्वक जमा हुई

      त्रुटि की रिपोर्ट करें

    कृपया संदेश दर्ज करें
    त्रुटि रिपोर्ट सफलतापूर्वक जमा हुई

      त्रुटि की रिपोर्ट करें

    कृपया संदेश दर्ज करें
    त्रुटि रिपोर्ट सफलतापूर्वक जमा हुई

      त्रुटि की रिपोर्ट करें

    कृपया संदेश दर्ज करें
    त्रुटि रिपोर्ट सफलतापूर्वक जमा हुई