Android Development

556 readers
4 users here now

Welcome to the programming.dev Android development community!

The Android robot is reproduced or modified from work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License

founded 2 years ago
MODERATORS
1
 
 

cross-posted from: https://programming.dev/post/22983650

I know that Android 14 requires targetSdkVersion >= 23 (or higher on the Play Store), but are there other minimums for this and minSdkVersion?

2
1
The First Developer Preview of Android 16 (android-developers.googleblog.com)
submitted 4 weeks ago by [email protected] to c/android_dev
3
4
9
Flutter has been forked to Flock (flutterfoundation.dev)
submitted 1 month ago by pylapp to c/android_dev
5
 
 

I followed the recommended processes for adding images to my app, and it is being displayed correctly on the layout preview, but not at all on the app. I have vector assets, webp, png images, but none are being displayed.

The project is too big to put here in its entirety, but please ask for any snippets that could help you solve the issue. I've tried searching the web and asking LLMs and neither could help, so please help me, fellow humans.

6
7
 
 

Title Thanks

8
9
4
submitted 3 months ago* (last edited 3 months ago) by tinkralge to c/android_dev
 
 

I have no experience with android apps and just started working on one that needs to work with relational data. The relational data has multiple many-to-many relationships and the inbuilt ORM (Room) is leads to class explosion.

While looking at ORM libraries for android, there seem to be many that are out of date:

From 5 of the Best Android ORMs (2014) and AlexeyZatsepin/Android-ORM-benchmark (2017)

I'm leaning towards Requery because I like its API the most (hides SQL the most), but haven't looked at ObjectBox yet.

10
14
Android 15 is released to AOSP (android-developers.googleblog.com)
submitted 3 months ago by [email protected] to c/android_dev
11
 
 

I'm new to using reactive and functional programming in kotlin with libraries. I'm maintaining a project at my company that uses only .orNull() from the arrow.core.Option class.

My question is: why is the project returning the first type instead of the second one?

Single<Option<UserEntity>>
Single<UserEntity?>

Can't the DAO object return a null type if it doesn't find the object on a query such as SELECT * FROM users WHERE id = 1 ?

12
17
Adding 16 KB Page Size to Android (android-developers.googleblog.com)
submitted 3 months ago by [email protected] to c/android_dev
13
14
 
 

cross-posted from: https://lemmy.pe1uca.dev/post/1512941

I'm trying to configure some NFC tags to automatically open an app, which is easy, just have to type the package name.
But I'm wondering how I can launch the app in a specific activity.

Specifically when I search for FitoTrack in my phone I get the option to launch the app directly into the workout I want to track, so I don't have to launch the app, click the FAB, click "Record workout" and then select the workout.
So I want to have a tag which will automatically launch this app into a specific workout.

How can I know what's the data I need to put into the tag to do this?

Probably looking at the code will give me the answer, but this won't apply to closed source apps, so is there a way to get all the ways all my installed apps can be launched?

15
16
17
18
12
Android Account Settings.. (www.jethostpro.com)
submitted 5 months ago by [email protected] to c/android_dev
 
 

I was wondering how I could make this application where it’s basically the account section in settings. I wanna make this app based on that already existing feature. I’m just not sure if that is available on a custom ROM I’m interested in installing once I fix up my pixel.

I’ve read a bit, not all, but a bit about the Android Keystore System, of which I’m not sure if this is how I can achieve such success.

Storing the credentials in the app, the app then saving it in keystore and when the user goes to their default browser, it then automatically signs them in as per keystore.

I’m not sure if this is how it all works, just clarification. Thanks!

CalyxOS

19
 
 

I’m interested in learning app development for Android devices, and I’d like to test the apps in a physical device, but my phone is an iPhone.

Which phone model or brand do you recommend for it? Are there some general ideas for choosing a device?

20
 
 

If you try to navigate in compose using a route like this:

data class ProfileRoute(user: UserProfile)

data class UserProfile(id: String)

You will have an error when running the app. This article helped me with that.

I still don't know, however, how to navigate with a scenario like this:

data class ProfileRoute(user: UserProfile)

data class UserProfile(account: Account)

This scenario above still crashes the application.

21
15
The Third Beta of Android 15 (android-developers.googleblog.com)
submitted 6 months ago by [email protected] to c/android_dev
22
 
 

Awesome Android Apps

AAA

Hi all,

for 2 years, sporadically, I've been adding awesome FOSS apps with the following:

Rules

  • Open Sourced
  • Free of charge (on F-Droid and source code repository releases)
  • Free as in Freedom
  • Ad-free
  • Installed and tested by me or by contributor
  • Privacy-friendly aware
  • Easy to use
  • Still in development or polished experience
  • Does not lack features compared to proprietary app
  • Does not need an account (the only exceptions are self-hosted) apps)
  • Has dark theme

...tested by my and then later by contributors. I think many of you will appreciate this simple README.md repo, and I would love some help with it.

🏔️ Codeberg version

I hope you will find it useful! 🤩

23
24
2
Compose Preview Screenshot Testing (developer.android.com)
submitted 7 months ago by pro_grammer to c/android_dev
25
31
Google Officially Supports Kotlin Multiplatform (android-developers.googleblog.com)
submitted 7 months ago by pro_grammer to c/android_dev
view more: next ›