Sidebar

Android Development

android_dev
Android Development tinkralge 2 weeks ago 100%
Are there ORMs for android that support many-to-many relationships?

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](https://developer.android.com/training/data-storage/room/relationships#many-to-many)) 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](https://www.sitepoint.com/5-best-android-orms/) (2014) and [AlexeyZatsepin/Android-ORM-benchmark](https://github.com/AlexeyZatsepin/Android-ORM-benchmark) (2017) - [ORMLite](https://ormlite.com/javadoc/ormlite-core/doc-files/ormlite.html): 3 years old and the [M2M example](https://github.com/j256/ormlite-jdbc/blob/main/src/test/java/com/j256/ormlite/jdbc/examples/manytomany/ManyToManyMain.java#L168) makes me feel quite queasy - [SugarORM](SugarORM): description explicitly only mentions 1:1, 1:n - [GreenDAO](https://github.com/greenrobot/greenDAO) is unmaintained but replaced by [ObjectBox](https://docs.objectbox.io) which I haven't yet looked at - [Active Android](https://www.activeandroid.com/): abandoned - [Realm](https://realm.io) redirects to MongoDB 💀 - [Freezer](https://github.com/florent37/Freezer): abandoned - [DBFlow](https://dbflow.gitbook.io/dbflow): no documentation and 3 seemingly abandoned - [Requery](https://github.com/requery/requery): 4 years old (abandoned?). Actually my favorite in terms of API - [Sprinkles](https://github.com/emilsjolander/sprinkles): 10 years old, dead I'm leaning towards Requery because I like its API the most (hides SQL the most), but haven't looked at ObjectBox yet.

4
2
android_dev
Android Development abobla 2 weeks ago 50%
Is it overkill to use RxJava and Arrow for a room database query return?

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? ```Kotlin Single<Option<UserEntity>> ``` ```Kotlin 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``` ?

0
1
android_dev
Android Development pe1uca 1 month ago 87%
How to get a list of launchable activities of all installed apps?

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](https://codeberg.org/jannis/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?

6
1
android_dev
Android Development OliviaRodrigo 2 months ago 100%
Android Account Settings..

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](https://developer.android.com/privacy-and-security/keystore), 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

11
0
android_dev
Android Development ravnswood 2 months ago 100%
Recommended device for Android development

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?

9
4
android_dev
Android Development federino 3 months ago 100%
Type Safety in Navigation Compose using objects inside the object route https://medium.com/@edmiro/type-safety-in-navigation-compose-23c03e3d74a5

If you try to navigate in compose using a route like this: ```kotlin 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: ```kotlin data class ProfileRoute(user: UserProfile) data class UserProfile(account: Account) ``` This scenario above still crashes the application.

7
2
android_dev
Android Development Psyhackological 4 months ago 85%
Awesome Android Apps - my curated list of ~250 apps github.com

# 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](https://github.com/Psyhackological/AAA/blob/main/README.md#f-droid) and source code repository releases) - Free as in Freedom - Ad-free - Installed and tested by me or by contributor - [Privacy-friendly aware](https://github.com/Psyhackological/AAA/blob/main/PRIVACY_MANUAL.md) - 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](https://github.com/Psyhackological/AAA/blob/main/README.md#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](https://raw.githubusercontent.com/Psyhackological/AAA/main/README.md) repo, and I would love some help with it. [🏔️ Codeberg version](https://codeberg.org/Psyhackological/AAA) I hope you will find it useful! 🤩

10
1
android_dev
Android Development Sophia 6 months ago 100%
List of OAUTH Supported Platforms

So, my boyfriend and I are making this Android app. My first post for more info. I was wondering if mastodon has an OAuth feature where I could use to sign in with it via my Android app. I’m also wondering in that in terms of API, do most programmers mean the key (API Key) or a way for a program to integrate anonymously with a platform. Likewise, I’ve always been confused when it came to API access. Looking for clarification.

13
2
android_dev
Android Development testeronious 7 months ago 87%
🥳 New Charts 1.2.0 release is live! 📊📈📉

https://github.com/dautovicharis/Charts **New in this version:** - Contributions guidelines - Demo app improvements and release: https://play.google.com/store/apps/details?id=com.hd.charts.app - Animations improvements: bar, pie, line chart - Multi line chart - Chart data validations - Improved charts usability - Readme update **Full release note:** https://github.com/dautovicharis/Charts/releases/tag/1.2.0 **What's next:** The first priority will be multi-platform support. If you have any feature requests, please let me know, or you can create an issue on Github. Thanks! 🙌 Source: [reddit](https://www.reddit.com/r/androiddev/comments/1awjdf8/new_charts_120_release_is_live/)

6
0