r/android_devs • • May 23 '20

Coding Using static methods in Android?

12 Upvotes

Is it safe to use static methods in Android? Because I don't feel comfortable using them at all.

Some examples would be:-

  1. Can a static method be used it custom application class to share the context?

  2. Like we should use the same retrofit instance everywhere and we put it inside a singleton, so can the retrofit instance become null again after first initialization?

  3. Is it safe to have a static reference of a class and use it everywhere in the app to share information?


r/android_devs • • May 23 '20

Resources What are some good resources to learn android development in 2020?

12 Upvotes

Thought I’d make the first “for beginners” post since we’re moving subreddits and all, best to make a compilation on here too. Plus, with the recession happening, this could be a good resource for those looking to switch careers.

I’ll start - as a current cs student these are the resources I’ve personally been using to learn android:

Stanford CS193A - Android Dev - Winter 2019: https://m.bilibili.com/video/av57995805

-The original set of videos on youtube were deleted by the prof, but the full set playlist can be found on that link (bilibili is basically chinese youtube)

-Alternatively, lectures 1-14 (about 2/3rds of the course) can be found here: https://m.youtube.com/playlist?list=PLXOcyuD_gdPeYwGfQE6B2WJJm2X9lrWgX

Android Table of Elements: https://www.androidelements.com/

Ray Wenderlich: https://www.raywenderlich.com/android

-A renowned learning resource in the iOS community, they also do excellent android videos and other resources, one of which is actually the Android Table of Elements linked above


r/android_devs • • May 22 '20

Off topic Lollllll

Thumbnail
twitter.com
12 Upvotes

r/android_devs • • Jul 27 '26

Discussion Which User Interface genius at Google designed DYNAMIC popup menus on Android (after you text select)? Corporate seems broken at Google - if employees feel pushed to create new features to justify their jobs. What could explain such colossal goofups every year?

11 Upvotes

SUMMARY: Dynamic popup menus should be disallowed - they introduce uncertainty which reduces user confidence (creates hesitation before click to be sure the popup menu has "stabilized"!) - AND it breaks the user interface for TalkBack and blind users (and if dynamic popup menus get disabled for TalkBack users as a workaround, then that creates fragmentation for developers when designing)

EDIT: tried to post this as text post on r/androiddev - didn't appear (at some point it's AI filter said something about post may be offensive) - tried posting to r/android - turns out I am perma-banned there (I have been away for a while from android) and it seems the censorship on other sub-reddits has made it's way to the android sub-reddits as well - it is as if these forums are not for public comment but to assuage company egos

CORRECTION: the post on r/androiddev is now appearing - my comment there (using np.* nonparticipation link to avoid brigading): https://np.reddit.com/r/androiddev/comments/1v8w389/comment/p09chzs/

CORRECTION 2: ok the mods of r/androiddev have removed the post because it is a "meme, rant or venting"

 

Popups which have CHANGING options over time - it would seem would have been an obvious no-no for a user interface expert who was vetting changes

It violates a presumption that blind users rely on - visual stability - what appears once on screen in menus will not be changing over time for no apparent reason

AND it is disconcerting to normal users as well

After selecting text, the popup appears, you go to click the Copy option in the popup menu - but just before your click registers, the popup option below your finger shifts (because Add Event or some such new option has just appeared) and you wind up clicking Select All instead

This is bad enough for a sighted user

It is terrible for a blind user relying on TalkBack voice feedback on what is on screen

 

Which genius at Google thought up the brilliant idea of dynamic options in popup menus?

Did they get feted for it - and did it justify a promotion?

More importantly, what is going on at Google - are these accidents, or is there a culture of destroying their own company?

 

What explains these changes they feel compelled to make every year in full or half-baked form - or in forms that break the basics of user interface design - or common sense

 

References:

https://www.reddit.com/r/android_devs/comments/1k39q9s/is_text_selection_broken_in_current_versions_of/

Is text selection broken in current versions of Android? Varies by app


r/android_devs • • Sep 03 '25

Discussion I have never understood how overlaid navigation buttons made sense - when I mentioned this as an issue years ago, loads of defenders of the company line emerge - is all the slavishness

11 Upvotes

EDIT: I am out of touch with android reddit - I also posted on r/androiddev - that was removed - is that a company run sub-reddit now (I recall it was turning into that earlier - they had stopped developer account suspension posts some years ago when I was active on Android development)

https://np.reddit.com/r/androiddev/comments/1n7al02/i_have_never_understood_how_overlaid_navigation/

(np.reddit.com - non participation link above - to avoid being accused of brigading)

 

I have never understood how overlaid navigation buttons made sense - when I mentioned this as an issue years ago, loads of defenders of the company line emerge - is all the slavishness to company decisions organic?

 

I used to hear how it is never a problem

How overlaid navigation buttons are not an issue

Yet there have been numerous times I have noticed it is an issue

And it may subconsciously impact how we interact with the screen ie extra careful

 

Here is an example - on reddit app - an actionable button and Home button nearly same place - so clicking that takes to Home screen instead of what you thought was a click on the button in the app:

https://ibb.co/DHxxvJ3F

 

EDIT:

I thought I should add these points I mentioned in a comment - to the main post:

Also, the Android user interface is getting worse for blind users

I was making a Talkback compatible app earlier - and talking to blind users - so I am familiar with their concerns some time back

These type of overlapping things are a problem when blind users are concerned

 

Another TERRIBLE design choice - is the floating menu which gets new menu items on the fly

What a pain - you click on Cut and wind up clicking on Add Event which just happened to appear as you click

Imagine what that does to workflows for blind users

Dynamic menus is a bad idea for this reason

But for design teams to be unaware of this is surprising

 

EDIT 2:

Also text selection is broken on Android - at least on some Samsung running latest Android versions

I don't know if it is something to do with the margins which screws it up

But across apps, the left margin is a problem - finger hits that while selecting and suddenly selection jumps to selecting from the top

But this requires a separate post with illustrative video

Result of the text selection flakiness is what should be an automatic thing now requires full mental attention - and frustration as text selection jumps abruptly

Also when selecting a long text - sometimes it his peters out - ie no longer can drag the selection more

So text selection is broken - don't know if other manufacturers fix this

 

But these are all issues that will happen when an ad company is made responsible for building the world's cell phone

(add in comment about why Android audio infrastructure is weak - taken decades and still no low latency audio - teams doing audio seem to be underfunded or low priority)


r/android_devs • • Jan 26 '25

Article Random Musings on the Android 16 Beta 1

Thumbnail commonsware.com
11 Upvotes

r/android_devs • • Oct 14 '24

Discussion Discussing Pull-Requests vs Trunk-based development: do you see pull requests help with productivity, or as a form of organizational mistrust between developers?

Post image
11 Upvotes

r/android_devs • • Sep 14 '24

Question Is Compose hardware accelerated?

11 Upvotes

Does it actually render using OpenGL/Vulkan? Or is it all rendered on the CPU?


r/android_devs • • Sep 08 '24

Open-Source App Open source project to contribute

11 Upvotes

Hey folks, keeping this short and simple. I’m a beginner looking for open source projects to contribute to for two main reasons:

  1. Gain experience with large codebases and understand how things work in a real-world setting.

  2. Build meaningful contributions for my resume.

I’ve heard that contributing to projects that you're passionate about is key, but I also want to balance that with making it count in the long run.

A bit about me:

  • Built an ebook downloader/reader in Jetpack Compose

  • Have a basic understanding of XML, and I’m looking to improve on that too

Any recommendations for open source projects where I can contribute. Am open for challenges


r/android_devs • • Sep 01 '24

Question How many attempts does Google give you in the Google Play Console verification process?

11 Upvotes

Hi,

As you know, Google requires long-time developers to verify their accounts. I was wondering how many attempts Google gives us if we fail the verification the first time?

Thank you.


r/android_devs • • May 17 '24

Question Idiots in Play Store support, or is there something I don't know yet?

11 Upvotes

So here's my story. There is an application with a million installations, in production since 2015. Google Ads are built into the application. The application supports phones, tablets and TV. Everything was fine until recently, when during the next update we received a rejection with the reason that the buttons in the advertisement cannot be pressed from the remote control. The appeal is not accepted, they say that WE need to fix the inability to click on an advertisement from the remote control.

What can be done about this? Removing advertisements is not an option.


r/android_devs • • Dec 18 '22

Happy Cakeday, r/android_devs! Today you're 3

11 Upvotes

r/android_devs • • Nov 11 '22

Article 🔥 Why Using Navigation-Compose in Your Jetpack Compose App is a Bad Idea

Thumbnail
medium.com
11 Upvotes

r/android_devs • • Sep 28 '22

Help How to implement these draggable views

Post image
11 Upvotes

r/android_devs • • May 06 '22

Publishing Pausing Google Play's billing system for users in Russia

11 Upvotes

https://support.google.com/googleplay/android-developer/answer/11950272

As part of our compliance efforts, Google Play is blocking the downloading of paid apps and updates to paid apps in Russia starting May 5, 2022.

https://9to5google.com/2022/05/05/google-play-russia-paid-apps/


r/android_devs • • Mar 21 '22

Coding Random Musings on the Android 13 Developer Preview 2 (in other words, I am very good at writing the "Hello World!" program in twelveTrillionsMillions different languages but not much more since I waste my time to rewrite the same functionality in a different way)

Thumbnail commonsware.com
11 Upvotes

r/android_devs • • Jan 22 '22

Event Speaker Lineup @ Android Worldwide

Thumbnail
gallery
11 Upvotes

r/android_devs • • Jan 16 '22

Future talk Tiramusu Thoughts

Thumbnail commonsware.com
11 Upvotes

r/android_devs • • Jan 15 '22

Coding Android Jetpack Glance for Widgets

11 Upvotes

Hello everyone . I've written about a new framework Android Jetpack Glance with my experiences. Have a good reading time!
https://enofeb.medium.com/android-jetpack-glance-for-app-widgets-bd7a704624ba


r/android_devs • • Jan 08 '22

Resources CodeView 1.2.1 with auto indentation, highlight matching, find and repalce

Thumbnail
github.com
11 Upvotes

r/android_devs • • Dec 18 '21

Happy Cakeday, r/android_devs! Today you're 2

11 Upvotes

r/android_devs • • Dec 14 '21

Resources Android Developers Blog: Rebuilding our guide to app architecture

Thumbnail
android-developers.googleblog.com
11 Upvotes

r/android_devs • • Dec 14 '21

Resources Google Play Data Safety Section

11 Upvotes

I’m an Android app developer. Recently, I was working on an app that had Google AdMob SDK integrated into it. While publishing the app on Google Play Store, I came across the Data Safety Section on the console. It asks for developers to declare the data types the app, or any 3rd-party SDK collects from the user. For my app I was easily able to create a list of data points I was collecting, however, for Google AdMob, there is literally no particular location to get that information.

Frustrated by the endless search, multiple blogs, and long documentations, I finally decided to create an open-source knowledge bank to host all of that information. Compiling all the research I, along with my fellow developer colleagues, have hosted a GitHub repository containing all the information that we have been using constantly. It makes it so much easier even when a small community of 3-4 developers can create such a useful resource, saving our effort and time.

https://github.com/Privado-Inc/SDK-Privacy-Report

I hope this might be helpful to numerous other app developers and will keep updating the list as we work on other SDKs. Feel free to provide valuable feedback, and contribute to the list so that others can benefit from the open-source community.


r/android_devs • • Dec 01 '21

Discussion Is Google Drive API / "App folder" for developers going away?

11 Upvotes

A while back, I read:

"Support for storing and syncing in the app data folder will likely be removed from Drive in the future. Clients requiring app data storage are strongly encouraged to migrate to a non-Drive solution such as Cloud Firestore."

I thought this was supposed to happen in late 2019, but nothing has happened yet, and the Google page where I read it now has a 404 error. I assume this means they decided against it? Anyone know anything? I know many note-taking apps that use Google Drive sync. and was curious how those users would be affected.