r/androiddev • • Aug 22 '17

Recent Android interview questions

255 Upvotes

I applied to a few Android Dev positions. I've been working with it for about 2 years, mostly personal and small freelance apps handed over to a client. In the past worked mostly in the Windows world and PHP.

One app was distributed to 100s of servicemen on the job on their tablets but never made it to the appstore. It is under NDA. Honestly, I hate searching for clients. And the clients I dealt with were looking to pay the least and expected the most. One told me I could go on the site again and find someone less than you so be thankful you have the job. This is after I asked for a bit extra for additional work.

Anyway, getting a real Android job has proven a bit difficult. My resume has stuff going back to the mid-90s, so either it scares people off or I get a call.

Here is how I blew a job that claimed to pay 150k :(.

  1. Explain how AsyncTask can survive a rotation change:

I said I use a headless fragment.

2) How can you use RxJava to track lifecycle events.

I said I'm not sure. But I answered other questions about Rx. I've used it in my apps.

2a) Quick, explain Rx Map vs Flatmap! Flatmap returns an observable, map can return anything. I remember that MAP in functional programming by nature is to transform things. Flatmap is the "boring version."

3) Explain why you would use Preferences vs SQLLite?

I said prefs are a key-store type database, and SQL lite is a full blown SQL platform. Depends on what you want to retain.

4) Explain why you need an interface in Android

I said it is one way of enforcing that method exists in a certain class. It is very useful for event callbacks, that we are sure a method by that name is available to the caller. An interface means IN YOUR FACE and forces implementation of its methods. Abstract classes are "abstract" and laid back and don't really make you do anything. That is a good way of remembering it.

5) In a live coding session, write pseudocode for cross Fragment events without interfaces.

I used GreenRobot, wrote an EventMessage class. Also remembered to stop it with the lifecycle events. He said excellent.

6) Ok, nice. Now imagine GreenRobot isn't available. Do it in Rx Java.

I thought a bit about and cobbled something together using a static class. I don't think it was a good answer. He had no comment.

7)Why do you need WeakReferences? So a full copy of the Activity isn't retained and you don't have memory leaks.

8)Why is an inner class in an activity bad? Because static references cause memory leaks.

9) What is your experience with Android MVVM? I said I used it as a wpf dev, but never in Android. (Should have lied)

10) Walk me thru a retrofit/Rx API call I sorta talked thru it, with the backing class that maps JSON to a POJO (there is a site that does it for you). I also had a code sample on Github we discussed. My code sample just retrieved straight HTML, but the idea is similar.

11) Explain how retrofit could be required to be in a thread and how it can work in its own thread.

I said there are a variety of ways of calling it, three to be exact. Some run on their own thread. I forgot the exact details :(. He said to try to write the method signatures for each...

12) How would you diagnose Https Network calls? I said either using Stetho or Fiddler proxy.

13) Explain a Broadcast Receiver and two ways of implementing it.

Ok, nothing remarkable here, I said either in the manifest or with an IntentFilter and register receiver.

14) Write code to check if a fragment exists. I always copypasta this, but I explained it well. getSupportFramentManger, tags, etc. I have a shitty memory for this.

15) How would you keep 3 fragments in memory and assure they aren't destroyed?

I said there is an option on the TabView to set a count of retained fragments. Forgot the exact property.

15a) Why would Android destroy a fragment? I said low memory on the device could be a reason.

16) A very specific question about one of the less used fragment lifecycle events and if it is called before or after a certain activity event. Just guessed.

17) Do you use butterknife or dagger2? Yes, had code samples.

18) Discuss RecyclerView, even he admitted he just copypastaed it for an app this morning. I mentioned the Adapter class, view holder, etc.

19) How would you load an image in RecyclerView? I said I use Picassa.

20) PC or Mac Both, depending on the mood.

21) Explain how you would create an API. I discussed how I would likely use PHP and Laravel/Lumen, create a MySQL db, set up routes, etc.

22) What is a load balancer? I said if you have lots of website traffic it moves requests between servers.

23) POST vs GET Blah blah, kids stuff.

24) Explain a Laravel or Rails intermediate/Pivot table Said if you have a situation where you want to map users to roles, and a role could have many users.

25-30) more backend questions, some were tricky. Got tripped up on one hard SQL question. Others had no problem with.

(P.S. The job description said this is NOT a backend position)

31) Implement a linked list in Java while we are on the phone. No Google. Don't have to be perfect. Ok, I did it and wrote a method to insert and traverse it.

Ok, he said not bad, you are definitely getting considered.

A few days later I got a dear John letter :(. I figure for a position like this I'm competing with guys like Jake Wharton, so I don't feel so bad. I'm not famous online.

This is my 4th Android interview. One I did get but the pay was really low. Think a bit above the new NYC fast food wages :(, they are in NYC. It was remote though, and they had quite high expectations.


r/androiddev • • Mar 04 '16

Literally the only dev environment incapable of showing any form of progress while building

Post image
255 Upvotes

r/androiddev • • Oct 25 '14

Google - Don't be evil - Unless it's to an Android Developer. That's ok.

Thumbnail
plus.google.com
255 Upvotes

r/androiddev • • Apr 11 '14

I've open-sourced my apps. Hoping it's useful to beginners

255 Upvotes

I currently have 3 apps out on Google Play - and i've open sourced all of them.

They're at:

https://github.com/matt-allen/repay-android

https://github.com/matt-allen/loaned-android

https://github.com/matt-allen/dpixel

If you want to give me any feedback, please feel free.


r/androiddev • • Oct 11 '25

Android Studio RAM consumption is insane

Post image
254 Upvotes

I’m using a MacBook with an M4 Pro chip and 24GB of RAM.

I just started a new project and I’m building the first screen with Compose Preview turned on. But I keep getting the "low memory" IDE notification and the AS freezes for a few seconds, and sometimes it completely hangs and I have to force quit it and start it again.

No emulators are running, just a single preview.
Honestly, I have no idea how I used to run this thing on my old 8GB Windows laptop.

Do you guys have any tips?


r/androiddev • • Sep 27 '19

Discussion Advice to a young Android developer - or things the tutorials don't tell you

254 Upvotes

This post was inspired by this post by a new android developer:

Hi I’m a new developer trying to decide whether to make Android apps or iOS apps. Just wondering what made you fall in love with Android.


 

These days, a more pertinent question may be - what made you fall out of love of Android.

Things new android devs should know even BEFORE their first android tutorial - most of it applies to independent developers, but may be relevant for those seeking jobs (biggest takeaway: don't be too keen to publish half-baked apps you do not intend to support on Google Play - this contradicts the traditional encouragement in tutorials to publish early with your experiments):

 

  • Be careful about blindly using new Google services, even if Google heavily promotes it - these could go away tomorrow (see killedbygoogle.com ). In addition, this will hinder you if you later have to move your app off Google Play (are banned by Google Play, which leads to being prevented access to related services). However, beyond independent development, it may make sense to learn about these services if they are used at the companies you wish to join later.

 

  • Be careful about Google App Signing which Google promotes heavily on the developer console. If you use Google App Signing with the default workflow for a new app, you will wind up with a published app for which you don't know the signing key. As a developer you need to keep the signing key in your hand too (no matter what Google recommends) so that later you can offer a compatible APK from your website. The safer way is to create the signing key/keystore yourself and then publish the old way, without Google App Signing. Then you can switch to Google App Signing at your leisure, by providing the key so Google can also sign. OR use Google App Signing, but make sure you also retrieve the key from Google - there is an intermediate step where you can download the key for yourself also (but it is not brought to your attention by Google - if you miss it, you will not be able to get the signing key for yourself, only Google will know it).

 

  • With Google Play, as a developer, or startup, be ready for no human interaction, and conversations with bots if you have a problem - including for such problems as app bans, account bans or associated account bans. You will almost never get satisfaction - the standard way to get satisfaction seems to be to plead on medium blog post, and hope your plea goes viral on reddit etc. (there have been cases where it took Google a year to reinstate an account).

 

  • You have limited goodwill quota with Google - if you get an app ban that erodes it further. If you have few apps, it could be one or two app bans that will do you in. If you have many high quality apps, the threshold could be more than 3 app bans - so it is not necessarily the oft-mentioned 3 bans that lead to a lifetime account ban. However app bans can sometimes come in quick succession which is hard to respond to, if a change in your apps, or in Google policy triggers them all.

 

  • If you get enough app bans, an account ban will come in quick succession. This is a lifetime ban, and Google will go after you with a vengeance that will prevent you participating in the android universe after that. They will do this using the "associated account ban", where bans will percolate from you to your acquaintances, friends and family, as well as any other accounts or new accounts you try to make. See Google's practice of "associated account ban" - AKA "guilt by association". Also see Google's practice of "associated account ban" - Part 2 - when automation trumps humans. Basically anyone linked to you will also be banned. If your wife opens an account, she will be banned (and this ban will survive divorce). Company accounts have been banned because an employee had a friend whose account was banned some time ago. A Google ban risks your employability as a "Scarlet letter" - it may render you unemployable for some company positions - if they see you as a tainting risk to their company account. The risk to contract developers is also significant, since their promiscuity (working with multiple client's accounts) could put them at even greater risk - however, I have not heard of a case affecting a contract developer yet. But they have expressed their concerns given the mechanics of account bans. Google derives this power to link people from their considerable expertise in "profiling" users from their ad/search arm.

 

  • App bans are triggered not just by your app misbehavior, but app bans can be triggered by falling out of compliance with the now annual change in policies, and targetSdkVersion requirements. Also, sometimes whole app niches experience a purge, like the notorious Call/SMS fiasco of Christmas 2018-2019. These changes are a violation of the earlier near-guarantee that older apps will always work on new Android versions (the forward compatibility mantra pushed by Google in it's docs). That assurance is no longer there - be prepared for annual changes in what is allowed and not allowed (Call/SMS), and in annual compulsion to update to new targetSdkVersion. For many developers this is too fast - since the stability of APIs allows devs to focus on improvements, rather than always updating already-working code over and over for annual deadlines - this creates a lot of unpaid busy work for developers, which increases costs for companies, and makes development more prohibitive for independent devs.

 

  • You cannot delete an app you have published (unless it has zero installs). This reduces sense of dev power over their own work. See Google is sending another wave of warnings for old, unpublished apps with the threat of account standing . The most you can do is "unpublish" an app. However, evidence suggests even unpublished apps can be banned for "not keeping up" with new Google diktat every year! This has the implication that dev may be forced to work (indentured slave) by Google to update apps they have no economic interest in pursuing, or for which they have no expectation of compensation. The instrument of this Google power is the lifetime account ban and it's attendant difficulties it will create for the working android developer. This power is multiplied because Android/iOS operate in separate universes, and losing your "social credit" with Google is prohibitively disruptive for an existing android developer.

 

  • If you are lifetime banned from Google Play, it will also impact other Google services like Admob. Here you will begin to realize the dangers of too much consolidation of multiple segments under one super-company umbrella. Reduction in "social credit" in one service is likely to affect your other services - something that should give pause to regulators allowing Google entry into healthcare and insurance industries.

 

  • If you are lifetime banned from Android as an independent dev, you can still publish APKs on your website, and use credit card payment provider APIs to do in-app payments. Or use ad providers (except Admob). However there will be no replacement for Google Play that remains the dominant platform for Android apps. The argument that iOS is a competitor is not valid - since each platform operates in it's own universe. In some countries, Android is the dominant platform, and iOS has minimal footprint. Once you have been attracted into the Android dev platform, your skillset, time and money (buying multiple devices to test) will have been committed, and the barrier to switching immediately to iOS is considerable.

 

  • Side-loading apps remains a viable option if you cannot publish on Google Play, or have been lifetime banned. However, Google now includes a tool on Android which can make side-loading problematic. See Google Play Protect. Quote: "That way, no matter where you download an app from, you know it’s been checked by Google Play Protect". See If your app has permission to "INSTALL_PACKAGES", google play protect now deletes application.. Quote: "They just silently updated Play Protect today, and begin uninstalling applications without warning". Google Play Protect can raise alerts against apps it considers alien - apps not downloaded from Google Play - apps banned once by Google can be seen as dangerous or malware and automatically deleted, or warnings of dire consequence shown to users. These create a competitive barrier to escaping dependence on Google Play - essentially Google exercises control well beyond simply running an app store - it's influence (and what it thinks of your "social credit" as a dev) permeates through the whole Android universe.

 

Summary:

The takeaway from all this is that a new android developer needs to be aware of complexities with publishing on Google Play:

  • ignore advice in previous tutorials that encourage you to publish your early app experiments. Remember - whatever you publish will become your lifelong liability - and the tool used to force you to do so will be threat of your "social credit" with Google. You can be banned as a developer for failing to maintaining your early experiment apps - even your unpublished apps on Google Play! And you cannot delete them either. You are starting to get a taste of what it is like discussing issues with Google bots - you will experience that when you get your app banned or being affected by abrupt policy diktat from Google (veteran of app bans, and Call/SMS fiasco here).

 

  • balance the cheap one-time $25 fee on Google Play vs the $100 per year for Apple App Store. Many android devs have exclaimed how they would love the yearly fee model IF they could get the human support you get on Apple App Store. Although Apple App Store has it's own set of issues, but notably devs can eventually get satisfaction with inquires to support - something that is rare on Android.

 

You are welcome to add your own advice, that is generally not advertised as well to newcomers. Some of the public perceptions of Android still persist, even though Android, Google Play and Google are very different beasts now.

 

Postscript:

You may ask how things came to this point ? I think it may be a combination of factors:

 

  • Google having a come-one-come-all call to encourage devs to build up their app store fast initially. Failing to employ the curating and human interaction at Apple - Google relying on automation (which matched Google's overall business model of going after the "long tail"). Deliberately keeping a one-time low $25 fee for dev entry.

 

  • However that strategy was not workable once Google felt the need to whittle down the store - to limit apps which worked by earlier android standards. A big change happened with Google's focus on battery optimizations - Doze and it's successors and how manufacturers tweaked that broke apps (see dontkillmyapp.com ). Android already suffered from fragmentation - different behaviors on thousands of device variants. And inability to move them all to new android versions (still promised with Project Treble). Meanwhile Apple with handful of devices and always updating in sync, so majority iOS version is the latest version. Every android version fills devs with dread because of all the variety of ways things inevitably break on those thousands of devices out there. Meanwhile internally Google employees seem to test exclusively on Pixels - which are a minority in the real world.

 

  • Often changes in Google policy have a strategy behind them which is not advertised. Which makes them seem nonsensical. Google's strategy is to get away by keeping quiet. Over time that becomes the new norm. For example run-time permissions are introduced ostensibly to empower users, but internet permission is excluded and is instead implicitly granted! When security issues are raised to curtail Call/SMS permissions (which neuter call recorder apps, offline SMS backup apps), Google does not talk about curtailing internet permissions instead, which are the dominant conduit for leaks.

 

  • culturally Google may be too big and too diversified for an employee to feel long term committed to one job. With opportunities for lateral movement within the company, employees may be more interested in making projects, getting them into roadmap, then getting promoted and move to something different. Android employees may move to other more dynamic areas. Android may have stabilized and developed more if it was a separate OS focused company, rather than an ad/search company running an Android section. Witness the lack of focus on low latency audio (still problematic) after 10 years of android.

 

  • Management focus seems to be on expanding markets - at the height of the Call/SMS crisis, the Google Play head was tweeting about upcoming events in growing markets instead of rising resentment within dev community on how Call/SMS was being handled. Often the biggest changes are made around Christmas which ruins devs vacations - like Call/SMS which was sprung before Christmas 2018, with a Jan 2019 deadline for compliance. So over Christmas devs were fearing app bans, and account bans, with no one managing the store.

 

Postscript 2:

NOTE: I have not discouraged working for a company. Or learning Android. I have just focused on the aspects which are current, but not yet part of tutorials relating to publishing on Google Play.

The bulk of the complexities arise when you deal directly with Google. So independent devs, with the littlest resources suffer.

The most pertinent advice that applies to non-independent devs (ie employees, students), is to NOT take publishing on Google Play as lightly as the tutorials, or even the Google docs. Once you sign up, it exposes you to compulsions that you can do without. And only publish if you can support the app - FOREVER.

I realize this is an absurd situation - and eventually it will be cured. But Google management seems uninterested - as I said, their Google Play execs were busy promoting events in other countries, rather than tend to the Call/SMS fiasco which ruined so many devs' Christmas vacations, and went on for months on end.

So change may come from within Google, but it is more likely to only happen via action from regulators.

Because the management is either uninterested, incompetent or simply see the devs as of a lower class, not worthy of attention.


r/androiddev • • Apr 23 '18

@minSdkVersion just tweeted "21"

Thumbnail
twitter.com
254 Upvotes

r/androiddev • • Feb 02 '17

The Android Illuminati will find you (found in android.os.Process)

Thumbnail
imgur.com
254 Upvotes

r/androiddev • • Mar 22 '18

TIL: it is possible to deploy to multiple devices in Android Studio 🤦

Thumbnail
imgur.com
253 Upvotes

r/androiddev • • Nov 13 '17

Google is Threatening to Remove Apps with Accessibility Services from the Play Store. (Greenify, Tasker etc., are in danger!)

Thumbnail
xda-developers.com
253 Upvotes

r/androiddev • • Sep 19 '16

News Android Studio 2.2 released

Thumbnail
developer.android.com
253 Upvotes

r/androiddev • • Sep 24 '15

News Google just posted a new video series. Android Development Patterns: A Series on Best Practices for Android Development

Thumbnail
android-developers.blogspot.com
253 Upvotes

r/androiddev • • Oct 09 '25

Open Source Liquid: 0.3.0 - Rotate/scale support along with dispersion

252 Upvotes

What's up r/androiddev,

I won't make a habit of posting every Liquid release update here, but this one has some significant improvements and nice new features.

The biggest improvement is support for `rotationZ/scaleX/scaleY` transformations. This didn't require any changes to the API, you can simply place your `graphicsLayer` modifier before the `liquid` modifier and it will register any changes to the above transformations (see LiquidClockScreen for an example).

I also added `saturation` and `dispersion` as new LiquidScope properties with examples in the above video. As always, let me know if you discover any issues!

https://github.com/FletchMcKee/liquid


r/androiddev • • Oct 30 '19

News Android 11 may finally bring a proper, native Wireless ADB implementation

Thumbnail
xda-developers.com
252 Upvotes

r/androiddev • • Nov 30 '18

Play Store Constructive feedback FTW

Post image
252 Upvotes

r/androiddev • • Aug 15 '19

Google Warns Developers that All New Android Apps Require Three Days for Approval

Thumbnail
choiceofgames.com
251 Upvotes

r/androiddev • • Jun 06 '19

Well, that's a new high.

Post image
251 Upvotes

r/androiddev • • May 30 '19

News Google finally adds clause to disclose lootbox odds in recent policy update

Post image
251 Upvotes

r/androiddev • • Oct 31 '17

I discovered a bug with Adaptive Icons that causes boot loops rendering phones on Android Version 26 and up useless, requiring a factory reset. Where can I report this? Also, I guess this is a PSA.

251 Upvotes

Hey guys, this is the dev for Swipe for Facebook. I recently updated my app yesterday to target Oreo, and doing so also added support for all new things Oreo - one of which was the use of Adaptive Icons (made with Android Studio 3.0's Image Asset Studio).

Now, what happened (and this can be replicated with the emulator), was that when doing so, and creating the Adaptive Icon, I had accidentally named the "foreground" asset the exact same name as the xml file itself. So, for example:

**<foreground android:drawable="@mipmap/ic_launcher_main"/>** which would be the .png file

and

**ic_launcher_main.xml** which holds the above code

This created a circular reference, which Android Studio didn't seem to pick up on.

What happened as a result was that SystemUI kept on crashing, as well as the phone's launcher (Pixel Launcher, as well as other launchers that support Adaptive Icons), not letting people even get to their launcher - let alone go into Settings to uninstall my app, eventually leading the phone to restart and the same thing would happen over and over again, causing a bootloop. This did not require them actually opening my app, but simply having my app installed would cause the bootloop.

The only solution was to uninstall the app via adb (if you were lucky to get in there in time before the phone restarted AND also have USB debugging enabled), but eventually you would get prompted by Android to do a factory reset, which to the dismay of a few thousand users of my app - had to do. Now fortunately, I was able to get down to the bottom of it within a couple of hours and had the update out immediately... but that still meant that a few thousand users were affected and had to factory reset their phones (a few of which were already on the phone with Google for an RMA), and I'm sure this has forever negatively changed the perception of my app for these users.

Now I know that I should have double checked / been more careful when I was naming my assets, but I guess shit happens and it was strange that Android Studio didn't pick up on this. What I find even stranger though is that such a small bug could cause devices to infinitely bootloop. Look, I'm not here to rant, but to somehow be able to positively contribute to the android dev community in the form of a PSA. I also know a few Android team devs lurk here, so I hopefully wanted to see if I could get some attention on this here.

So I guess the last thing I want to know is: where can I report this?

Issue tracker link here: https://issuetracker.google.com/issues/68716460

Edit: obligatory thank you for gold!


r/androiddev • • Oct 02 '23

Discussion Android Developer jobs are currently in the worst place

250 Upvotes

Hi everyone👋 I'm Senior Android Developer (7.5 years). As I'm looking for a job, I literally can't understand what happened on job market (at least in Poland). Some time ago, I remember to be choosing between companies, but today companies are just getting crazier, a lot of them require both Android and iOS experience OR native + hybrid experience OR high advanced low-level applications (where they expect from you to write your own ChatGPT or similar thing) and so on.

Am I only one who is in such trouble? Is it only Poland? I understand economic situation, but still it sucks..

PS: no, I'm not a geek, who knows from the head all algorithms, I just write Android apps, and I understand that for some companies I'm not best fit, but still, I'm doing exercises on HackerRank and CodeWars to stay in shape.


r/androiddev • • Mar 18 '21

Open Source Made some dots loading animations with Jetpack Compose (link in comments)

250 Upvotes

r/androiddev • • Feb 15 '21

Another ComposeDesktop App

250 Upvotes

r/androiddev • • Jan 26 '18

My first custom view 😊

250 Upvotes

r/androiddev • • Jan 26 '17

Casual Found this comment deep inside the code of ProgressBar

Post image
250 Upvotes