r/android_devs • • Mar 17 '21

Coding Support multiple themes in an Android app

Thumbnail
link.medium.com
2 Upvotes

r/android_devs • • Jan 14 '21

Coding Avoid backing properties for LiveData and StateFlow

Thumbnail
medium.com
2 Upvotes

r/android_devs • • Dec 07 '25

Question Github alternative

0 Upvotes

Can you suggest some websites (other than GitHub and F-Droid) that offer open-source Android code?


r/android_devs • • May 07 '26

Open-Source Library New Android CLI in combination with Lazylogcat makes me less using Android Studio

2 Upvotes

r/android_devs • • Oct 17 '20

Coding 4 Easy Steps To Master Android Sharing Shortcuts

4 Upvotes

Android Sharing Shortcuts allows you to share the content with specific targets of the other apps, for example, with your friends in WhatsApp 😍

Master them 💪 with these 4 easy steps!

https://vladsonkin.com/4-easy-steps-to-master-android-sharing-shortcuts/


r/android_devs • • Nov 30 '21

Designing I paid an App Icon Designer $480 - This is what happened

Thumbnail
youtube.com
4 Upvotes

r/android_devs • • Oct 01 '25

Article I wrote a very successful Android book without even finishing it first. Sharing what I learned during the process

0 Upvotes

When I tell people that, the reaction is usually a big surprise. Most devs think you need to lock yourself away for a full year to produce a polished masterpiece. But timing is more important than that. You don't really need a complete manuscript, polished editing, or even a publisher before you can release something. What you need is to write high quality content, then promote it often and grow people's interest on it. Write it in public and share as much and as often as you can.

I knew that if I waited until the book was “done,” I would miss the moment. Compose 1.0 stable was about to drop, and I wanted the book out at the exact same time. So I worked hard on the first few chapters and launched it incomplete, then kept updating it week by week while readers followed along.

It felt risky at first, but it turned out to be the best decision I could have made. The early release gave me early validation, motivation, and feedback. Readers were not upset about it being unfinished, I was always clear about that. They were excited to get updates and see the book grow in real time. And they also gave good feedback early, which let me align the book content with the actual demand.

A few important lessons I learned:

  • You do not need to wait for perfection before you share your work

  • You do not need permission from a publisher to put your knowledge out there

  • You want to keep full control on the project

  • Timing and momentum matter more than completion, as long as expectations are correctly handled

  • Write in public, share as much as you can, make it an engaging ride

  • Publishing in public builds trust and accountability, helps you become an authority in the topic

  • Early validation is the only reasonable way to do business

  • Build and leverage a high quality audience (it will snowball into better things)

  • Double down on what you already validated (I even created a course after)

I am sharing this because I know a lot of Android devs want to write a book but never start. I know exactly how that feels. When I first thought about writing Jetpack Compose Internals, the doubts were all there: "I don't have enough time," "What if no one buys it?", "I should probably wait until it's perfect". Imposter syndrome was all over the place too. All those doubts refrained me from starting. If you are in that spot, this approach might be exactly what helps you finally take that first step.

I promise you: as soon as you start, everything will start looking much easier. Just start. You will learn a lot by doing it, and the process will get easier as you go. Our brains are wired to learn by doing, not by reading.

I wrote the full story and all my learnings here:
https://composeinternals.com/how-i-wrote-a-tech-book-without-finishing-it-first


r/android_devs • • Jun 16 '25

Article Fastboot sounds complicated, but it’s actually super useful.

Thumbnail blog.scalefusion.com
1 Upvotes

r/android_devs • • Dec 13 '21

Help Why is there no value passed for this parameter?

0 Upvotes

The following code within my MainActivity.kt class ends with a closing parenthesis with a red squiggly underline, with the error that its a No value passed for parameter 'imageAnalyzer':

val element = DrawGraphic(context = context,
                                rect = detectedObjects.boundingBox,
                                text = detectedObjects.labels.firstOrNull()?. text ?: "Undefined") //<-this parenthesis

Along with the error was the suggestion that I could Create function 'DrawGraphic'. The thing is, DrawGraphic.kt is another class within this application that I'm trying to call. Just for reference, here is the class' constructor I am trying to call of my DrawGraphic.kt class:

class DrawGraphic(context: Context, imageAnalyzer: MainActivity.YourImageAnalyzer, var text: String, var rect: Rect): View(context) {
      
}

r/android_devs • • Jul 26 '20

Coding Android Newsletter for 19 July - 25 July 2020

1 Upvotes

Hey guys 👋Stay up to date with Android Development, in this edition:

- State of Flutter and Navigation component 🤓

- App migration to Hilt 🗡

- Improving app startup time ⚡️

- WorkManager guide 🤩

and much more!

https://vladsonkin.com/android-newsletter-4/

Enjoy and subscribe 💚 Here is an example of what you get on your email:

https://mailchi.mp/ab7166c85255/android-newsletter-5004057


r/android_devs • • Apr 05 '21

Help need help with simple app for Cinema

1 Upvotes

Hello. It's my first time working on Android app. I really need a serious help with developing simple app for Cinema. It should show list of movies and then some basic info about the movie after clicking on it with option of reserving ticket (maybe email notification) and showing time of screening.

It's should not be very complex. So far I have made app that is parsing json data (title,poster) into recycle view. I'm really struggling with this.

So I'm asking anyone who is willing to help me! Thanks a lot for your time reading this request and anyone giving me a helping hand!


r/android_devs • • Aug 20 '20

Coding Fool-proof Formula for minSdkVersion, compileSdkVersion, and targetSdkVersion

0 Upvotes

Each year there is a new Android version, and each year old versions of Android became unused. As android developers, we want to have control over this process in our app and ensure that we are: 

  • 🏚️Stop support of barely used Android versions

  • 🐤Prepared for the new Android Version

And this is where minSdkVersion, compileSdkVersion, and targetSdkVersion come in.
🔥 Fool-proof formula 🔥

Don't forget to subscribe 💚
https://vladsonkin.com/fool-proof-formula-for-minsdkversion-compilesdkversion-and-targetsdkversion/


r/android_devs • • Mar 15 '23

Help Get MongoDB To work with Java

1 Upvotes

[This is a repost since I forgot to add my code examples previously.]

I'm creating an application that must use MongoDB for queries.

I successfully made it work, using API, AppID and all those wonderful things however, whenever I use a RealmQuery or RealmResult for my schema by results are null.

I've tried using it directly on the main thread, I've tried using Async, but nothing seems to work. I've also found a few sources online and changed my code to work with that, but it seems like it isn't working at all even with their code adjustments.

Any advice would be appreciated.

My code is down below:

   Realm.init(mContext); // replace this with your App ID     App app = new App(new AppConfiguration.Builder(appID)             .build());     Credentials apiKeyCredentials = Credentials.apiKey(apiKey);     AtomicReference<User> user = new AtomicReference<User>();     app.loginAsync(apiKeyCredentials, it -> {         if (it.isSuccess()) {             Log.v("AUTH", "Successfully authenticated using an API Key.");             user.set(app.currentUser());              // Startup Information             onStartupRead();         } else {             Log.e("AUTH", it.getError().toString());         }     }); 

followed by the onStartupRead() function

config = new RealmConfiguration.Builder().name(realmName).build(); 
//backgroundThreadRealm = Realm.getInstance(config); 
backgroundThreadRealmAsync = Realm.getInstanceAsync(config, new Realm.Callback() { @Override 
public void onSuccess(@NotNull Realm realm) { Log.v(TAG, "Successfully fetched realm instance.");
// Read Startup Data 
getPhysicaParameterItem();                 
//getUserItem("[email protected]");          
}         public void onError(Exception e) {             Log.e(TAG, "Failed to get realm instance: " + e);         }     }); 

and the getPhysicalParameterItem()

 RealmResults<PhysicalParameter> parameterQuery = backgroundThreadRealm.where(PhysicalParameter.class).limit(QUERY_LIMIT).findAllAsync();
   parameterQuery.addChangeListener(new RealmChangeListener<RealmResults<PhysicalParameter>>() {         @Override         public void onChange(RealmResults<PhysicalParameter> items) {             Log.v(TAG, "Completed the query.");             // items results now contains all matched objects (more than zero)             //PhysicalParameter result = items.sort(physicalParameterDataQueryTerm).sort(physicalParameterDataQueryTerm).first();               System.out.println(">>>>>>>>" + items.isEmpty());          }     }); 

currently the "result" variable here is null, but the items is a valid variable. But everything is else is exactly like the MongoDB docs state. My collections and other names are also correct since I can successfully establish connection from them and copied them directly from MongoDB.


r/android_devs • • Oct 01 '24

Question Pixel perfect

0 Upvotes

Hello everyone I wish u r having great day there, well I wanna know how to achieve pixel perfect in jetpack compose. if there is any repo already exist implement that or resources explain how to achieve that, please share it.... Thank y'all.


r/android_devs • • Nov 03 '24

Article Android News Highlights of First Week of November: Android SDK Plans, Kotlin Roadmap, Kotlin 2.1.0-beta2

Thumbnail
gorkemkara.net
0 Upvotes

r/android_devs • • Jul 04 '20

Store stories Apple and Google block dozens of Chinese apps in India – TechCrunch

Thumbnail
techcrunch.com
0 Upvotes

r/android_devs • • Sep 18 '25

Article 📚 Android Studio Journeys: From Demo to Enterprise-Scale Testing —Part 1

Thumbnail vsaytech.hashnode.dev
0 Upvotes

Check out my latest article on Android Studio Journeys! 🚀
In this part 1 article, we dive into the world of end-to-end testing with this new experimental feature in Android Studio, powered by Gemini. Learn how to describe user flows in natural language and see how it compares to traditional tools like Espresso and Compose UI tests. Perfect for those looking to simplify test creation and focus on user experience. Curious about the strengths, limitations, and how to get started? Read more and share your thoughts!


r/android_devs • • Dec 07 '24

Article Boundary Check vs Try Catch - Performance Comparison

Thumbnail
theapache64.github.io
1 Upvotes

r/android_devs • • Feb 04 '25

Question Need help for RBAC role access in android

0 Upvotes

Hi everyone I have been working on a project that let u find a lawyer and book a session with him. So I used ktor for the backend and the RBAC model to get role-based access. I have used plugging to store roles in the token of jwt-auth and am facing an issue with how to access these roles from the token and give access to the route meant for them. I am attaching a photo of my code for role plugins and routes.


r/android_devs • • Dec 17 '24

Open-Source App [Open-Source] NativeAppTemplate-Free-Android: Production-Ready Native Android App with User Authentication

0 Upvotes

NativeAppTemplate-Free-Android is a modern, comprehensive, and production-ready native Android app with built-in user authentication.


Technologies

NativeAppTemplate-Free-Android leverages the latest Android development tools and practices, including:


Features

  • Onboarding

  • Sign Up / Sign In / Sign Out

  • Email Confirmation

  • Forgot Password

  • Input Validation

  • CRUD Operations for Shops (Create/Read/Update/Delete)

  • And more!


🔗 GitHub Repository: NativeAppTemplate-Free-Android

🔗 Blog Post: Key Differences in MVVM Architecture: iOS vs. Android


r/android_devs • • Jun 04 '24

Article My thoughts while exploring retrofit

Thumbnail
medium.com
0 Upvotes

r/android_devs • • Oct 14 '22

Help Redirect deeplink to Play Store even if my app installed

0 Upvotes

Hello.

We want to send, via SMS, a link to some of our clients that links them to the Google PlayStore or Appstore to our app page.

The problem we are encountering is bypassing our app and opening the PlayStore when our app is already installed.
We know how to do it the other way around, that is if our app is not installed, redirecting the user to install our app but we do not know how to bypass our app.

Is that possible? Share a link that opens the play store even if our app is installed?

Ideally, we should handle it with the same link, not only PlayStore but also Apple Store.


r/android_devs • • Jun 02 '21

Help SecurityException: Not allowed to bind to service

0 Upvotes

Recently we have been observing a crash that

Fatal Exception: java.lang.SecurityExceptionNot allowed to bind to service Intent { act=com.google.android.c2dm.intent.REGISTER pkg=com.google.android.gms } android.app.ContextImpl.bindServiceCommon keyboard_arrow_down Show all 44 threads

This issue is reported only on some devices like QMobile (Android 10) version.

Upon looking and searching I can to know that it is a Firebase SDK issue. Some people said that to add permission <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /> but it is auto-added by the Google Play services plugin.

The issue is already reported on Firebase SDK Issue Link.

Is there any workaround for this or I have to wait until Firebase fix this