Find Interview Questions for Top Companies
Ques:- What is Intent filter
Asked In :- Hidden Brains InfoTech,
Right Answer:
An Intent filter is a declaration in an Android app's manifest file that specifies the types of intents that an activity, service, or broadcast receiver can respond to. It allows the Android system to match intents with the appropriate components based on the specified actions, categories, and data types.
Ques:- Which of the activity’s callback methods are guaranteed to be called, if finish() is called in onCreate() itself?
Asked In :- juspay,
Right Answer:
If `finish()` is called in `onCreate()`, the guaranteed callback methods that will be called are `onPause()` and `onStop()`.
Ques:- What is the difference between commit() and apply() method in SharedPreferences() ?
Right Answer:
The `commit()` method saves changes to `SharedPreferences` synchronously and returns a boolean indicating success or failure, while the `apply()` method saves changes asynchronously without returning a result, making it more efficient for performance.
Ques:- Which approach cannot be used to do a non-UI tasks in Android ?
Asked In :- Smart Soc Solutions,
Right Answer:
Using the main UI thread (also known as the main thread) cannot be used to do non-UI tasks in Android.
Ques:- What is method overloading?
Asked In :- CADeploy,
Right Answer:
Method overloading is a feature in Java that allows a class to have multiple methods with the same name but different parameters (different type, number, or both).
Ques:- Which of the activity’s callback method is called only when some of the activity’s manifest attributes are set accordingly?
Right Answer:
The callback method is `onCreate()`.
Ques:- What is TreeSet Interface ?
Right Answer:
The TreeSet interface in Java is a part of the Java Collections Framework that implements the Set interface. It stores elements in a sorted order, based on their natural ordering or a specified comparator. TreeSet does not allow duplicate elements and provides efficient operations for adding, removing, and searching for elements.
Ques:- How you declares an abstract method in an abstract Java class?
Right Answer:
To declare an abstract method in an abstract Java class, you use the `abstract` keyword in the method signature, and you do not provide a body for the method. For example:

```java
abstract class MyClass {
abstract void myAbstractMethod();
}
```
Ques:- What will happen if 10×10 pixels image is put only in drawable-hdpi directory, app is on xhdpi device and ImageView’s width/height both are set to wrap_content ?
Asked In :- Orion Innovation,
Right Answer:
The 10x10 pixels image in the drawable-hdpi directory will be scaled up to fit the xhdpi device's density, resulting in a larger image that may appear pixelated or blurry when displayed in the ImageView with wrap_content.
Ques:- The rocket carrier PSLV-C37 with 104 satellites was launched from where?
Right Answer:
The rocket carrier PSLV-C37 was launched from Satish Dhawan Space Centre, Sriharikota, India.
Ques:- What is required to generate GCM token?
Asked In :-
Right Answer:
To generate a GCM (Google Cloud Messaging) token, you need to set up a Firebase project, configure your Android app with the necessary Firebase services, and use the Firebase Cloud Messaging (FCM) API to request a token.
Ques:- In how many categories, are android permissions are divided for marshmallow ?
Asked In :- juspay,
Right Answer:
Android permissions in Marshmallow are divided into two categories: normal permissions and dangerous permissions.
Ques:- If an app uses both v4 and v7 support library, what can be minSdkVersion for app?
Right Answer:
The minSdkVersion for the app can be set to the minimum API level required by the lower version of the support libraries being used, which is typically API level 4 (Android 1.6) for v4 and API level 7 (Android 2.1) for v7. Therefore, the minSdkVersion should be at least 7.
Ques:- What is the max size of payLoad, which can be sent in GCMPush ?
Asked In :-
Right Answer:
The maximum size of the payload that can be sent in a GCM (Google Cloud Messaging) push notification is 4 KB (kilobytes).


AmbitionBox Logo

What makes Takluu valuable for interview preparation?

1 Lakh+
Companies
6 Lakh+
Interview Questions
50K+
Job Profiles
20K+
Users