Tips

In AndroidPub. More on Medium.

The interviewer in interviews asked these questions with top-tier Internet companies. Familiarity with the knowledge points listed in this article will greatly increase the chance of passing the first two rounds of technical interviews.

Mainly divided into the following parts:

(1) Java interview questions

(2) Android interview questions

(3) Advanced development technology interview questions

(4) Cross-platform Hybrid development

Java interview questions

Mastering java is very important. Large companies not only require you to use a few APIs, but also require you to be familiar with the principles of source code implementation, and even require you to know what are the deficiencies, how to…


Creating a custom Button from scratch.

This article will be a quick one, to demonstrate how can you create a Button in Android effectively. We’ll do it in a concise way so that lots of xmls are not spread across App. Lets start without wasting time.

GitHub: https://github.com/owaistnt/andoridbuttonexample

End State

Choosing Colors


Image Credits: https://www.ipsr.edu.in/blog/most-frequently-asked-interview-questions-in-android/

A set of questions that I have accumulated over the years in preparation for my many Android Interviews Prep.

1. What is Application?

The Application class in Android is the base class within an Android app that contains all other components such as activities and services. The Application class, or any subclass of the Application class, is instantiated before any other class when the process for your application/package is created.

2. What is Context?

A Context is a handle to the system; it provides services like resolving resources, obtaining access to databases and preferences, and so on. An Android app has activities. Context is like a handle to…


This article shows a few tricks which can help you developing string resources for Android applications.

How can percents make code sick?

By default string resources are so-called formatted. It means that they can be potentially used for formatting. Here is a simple example:

Lint performs checks on formatted strings and will complain if it encounters string like this: %d of %d left. The error message in such case is Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?.

One may think that adding formatted="false" attribute is a proper solution (in fact there is no other direct suggestions how to…

AndroidPub

The (retired) Pub(lication) for Android & Tech, focused on Development

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store