Android Development

539 readers
8 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 1 year ago
MODERATORS
1
2
 
 

Title Thanks

3
4
 
 

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.

5
13
Android 15 is released to AOSP (android-developers.googleblog.com)
submitted 2 months ago by [email protected] to c/[email protected]
6
 
 

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 ?

7
17
Adding 16 KB Page Size to Android (android-developers.googleblog.com)
submitted 2 months ago by [email protected] to c/[email protected]
8
9
 
 

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?

10
11
12
13
 
 

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

14
 
 

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?

15
 
 

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.

16
15
The Third Beta of Android 15 (android-developers.googleblog.com)
submitted 5 months ago by [email protected] to c/[email protected]
17
 
 

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! 🤩

18
19
20
21
22
23
24
25
view more: next ›