i
Appy Pie
Filter interviews by
posted on 30 Sep 2024
Life cycle methods are special methods in class components that allow developers to run code at specific points in the component's life cycle.
componentDidMount() is called after the component has been rendered to the DOM.
componentDidUpdate() is called after the component's state or props have been updated.
componentWillUnmount() is called before the component is removed from the DOM.
FlatList is optimized for rendering large lists efficiently by only rendering the items that are currently visible, while ScrollView renders all of its children at once.
FlatList is more performant for long lists as it only renders the items that are currently visible on the screen.
ScrollView renders all of its children at once, which can lead to performance issues with large datasets.
FlatList supports key extraction fo...
Android components like Recycler View, View Model, ANR are essential for building robust Android applications.
Recycler View: Efficient way to display large data sets by recycling views as they scroll off the screen.
View Model: Manages UI-related data in a lifecycle-conscious way, surviving configuration changes.
ANR (Application Not Responding): Dialog shown to the user when the main thread of an app is blocked for too ...
LRU cache is a data structure that stores the most recently used items, discarding the least recently used items when full.
Use a hashmap to store key-value pairs for quick access
Use a doubly linked list to keep track of the order of items based on their usage
When an item is accessed, move it to the front of the list
When the cache is full, remove the least recently used item from the end of the list
posted on 21 Aug 2024
I applied via Approached by Company and was interviewed in Jul 2024. There was 1 interview round.
I applied via Approached by Company and was interviewed in Sep 2023. There were 2 interview rounds.
posted on 9 Mar 2024
I applied via Naukri.com and was interviewed in Sep 2023. There was 1 interview round.
Activity life cycle is a crucial concept in Android development. Factorial and Fibonacci series are common mathematical problems. lateinit var and lazy are used for initializing variables. Var and val are used for declaring variables.
Activity life cycle includes methods like onCreate, onStart, onResume, onPause, onStop, onDestroy.
Factorial is the product of all positive integers up to a given number. Example: 5! = 5*4*...
I applied via Recruitment Consulltant and was interviewed before Aug 2023. There was 1 interview round.
There were total 3 rounds and it consists of Basic array and string coding question
I was interviewed before Mar 2021.
Round duration - 60 minutes
Round difficulty - Easy
This was a DSA based round, I was asked to code on collabedit.
Given a singly linked list in the form 'L1' -> 'L2' -> 'L3' -> ... 'Ln', your task is to rearrange the nodes to the form 'L1' -> 'Ln' -> 'L2' -> '...
You have a sequence of consecutive nonnegative integers. By appending all integers end-to-end, you formed a string S
without any separators. During this pro...
Determine if a permutation of a given string S
can form a palindrome.
string S = "aab"
"True"
The permutation "aba" o...
Round duration - 30 minutes
Round difficulty - Medium
This was onsite interview round 1. Java and Android threading concepts are needed.
Round duration - 60 minutes
Round difficulty - Easy
This round was all about android and internals of collections in Java.
Round duration - 90 minutes
Round difficulty - Medium
Technical interview round for purely checking the design knowledge of a person.
Design a data structure for a Least Recently Used (LRU) cache that supports the following operations:
1. get(key)
- Return the value of the key if it exists in the cache; otherw...
Round duration - 30 minutes
Round difficulty - Easy
This was the last Interview with director of engineering.
Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.
Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.
I was interviewed in Feb 2017.
An Android photo viewing app with a list of images from disk, one taking half the screen.
Use RecyclerView to display the list of images
Use a custom adapter to bind the images to the RecyclerView
Use a GridLayoutManager with span count of 2 to achieve the half-screen effect
Load images from disk using a library like Glide or Picasso
Implement click listeners to handle item selection and display the selected image
Given an array of natural numbers in random order, find the first missing natural number.
Sort the array in ascending order
Iterate through the sorted array and compare each element with its index
If the element is not equal to its index + 1, return the missing number
If all elements are in order, return the next natural number after the last element
To transfer the Ball object from one thread to another, we can use Handler or AsyncTask.
Use Handler to post a Runnable to the main thread's message queue
Use AsyncTask to perform background operations and update the UI on the main thread
Pass the Ball object as a parameter or use a shared variable between threads
Looper/handlers allow passing objects between threads in Android.
Looper is a message loop that runs in a thread and processes messages from a message queue.
Handlers are used to send messages to the message queue of a looper.
When an object is passed from one thread to another using a handler, it is encapsulated in a message and added to the receiving thread's message queue.
The receiving thread's looper then processes th...
IPC (Inter-Process Communication) methods in Android allow communication between different processes.
Binder: Android's native IPC mechanism, used for communication between processes.
Intents: Used for communication between components within the same application or between different applications.
Content Providers: Allow sharing data between applications using a common interface.
Broadcasts: Used for asynchronous communica...
To create my own HashMap, I would use an array of linked lists to handle collisions and implement key-value pairs using a hash function.
Create an array of linked lists to store the key-value pairs
Implement a hash function to generate an index for each key
Handle collisions by adding elements to the linked list at the corresponding index
Support operations like put(key, value), get(key), and remove(key)
A weather app that displays images for different weather conditions, taking care of half downloaded images and minimizing data consumption.
Implement image caching to store downloaded images locally
Check if the image is already downloaded before making a network request
Use a progress bar to indicate the download status of the image
Handle cases where the download is interrupted or incomplete
Implement a mechanism to resum...
To search for contacts with duplicate names or numbers, iterate through the list and compare each contact's name and number with the search term.
Iterate through the list of contacts
Compare the search term with each contact's name and number
Return the contacts that match the search term
Launch mode determines how an activity is launched and how it behaves in the task stack.
Standard: Creates a new instance of the activity on each launch.
SingleTop: Reuses the existing instance if it's already at the top of the stack.
SingleTask: Creates a new task and places the activity at the root of the task.
SingleInstance: Creates a new task and places the activity as the only one in the task.
Deep linking in Android allows users to navigate directly to specific content within an app.
Deep linking is achieved by defining intent filters in the app's manifest file.
The intent filter specifies the URL scheme and host that the app can handle.
When a deep link is clicked, Android checks if any app can handle the URL and prompts the user to choose.
The chosen app receives the deep link data in the intent's data field.
...
Design a screen to show 10 nearest restaurants in a list with uninterrupted scrolling.
Use a RecyclerView to display the list of restaurants
Implement a custom adapter to populate the data in the list
Use a location service to get the user's current location
Sort the restaurants based on their distance from the user's location
Load more restaurants as the user scrolls to the end of the list
ImageDownloader efficiently handles parallel API calls.
Use a thread pool to manage parallel API calls.
Implement caching to avoid redundant API calls.
Use a priority queue to prioritize image downloads.
Optimize network requests by using HTTP/2 or multiplexing.
Consider using a library like Picasso or Glide for image loading and caching.
Interview experience
based on 3 reviews
Rating in categories
Software Engineer
69
salaries
| ₹3 L/yr - ₹12.2 L/yr |
Softwaretest Engineer
42
salaries
| ₹2.8 L/yr - ₹7.2 L/yr |
Senior Software Engineer
38
salaries
| ₹7 L/yr - ₹15 L/yr |
Production Analyst
19
salaries
| ₹3 L/yr - ₹7 L/yr |
Software Developer
18
salaries
| ₹3.7 L/yr - ₹14 L/yr |
Zoho
Freshworks
InMobi
Paytm