Android Development

10 readers
1 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
8
Android 15 is released to AOSP (android-developers.googleblog.com)
submitted 2 months ago by neme@lemm.ee to c/android_dev@programming.dev
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
10
Adding 16 KB Page Size to Android (android-developers.googleblog.com)
submitted 2 months ago by neme@lemm.ee to c/android_dev@programming.dev
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
 
 

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.

14
7
The Third Beta of Android 15 (android-developers.googleblog.com)
submitted 5 months ago by neme@lemm.ee to c/android_dev@programming.dev
15
 
 

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

16
7
submitted 7 months ago* (last edited 7 months ago) by Sophia@lemmy.ca to c/android_dev@programming.dev
 
 

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.

17
18
 
 

Today, we are introducing a new tool that will prompt these users to update, bringing them closer to the app experience you intended to deliver.

Play recovery tools allow you to prompt users running specific versions of your app to update every time they restart the app.

19
 
 

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

I've just had this happen (and then stop again) for the second time in a few weeks. This is a new MAUI app where the only thing I've changed so far, other than add a few of my own (already previously tested and working) libraries, is change the home page, and the new home page only has a couple of labels on it, so it has no complexity at all added to it yet, and yet getting this odd alleged memory issue. The first time it happened I couldn't find a fix for it, left it for a while, came back (a week's worth of reboots later) and it was working again. Then today I made one trivial change - added a debug write - and the problem came back (but got past the new line without any issues). Then I rebooted and it's working again.

I have 32Gb of RAM, with 12Gb allocated to a RAMdisk, and I have my paging files set to use the RAMdisk.

It generated a log file which said...

"Native memory allocation (mmap) failed to map 186646528 bytes for G1 virtual space"

...so it only needed 180Mb, and down near the bottom it says...

"Memory: 4k page, system-wide physical 32579M (3638M free)"

...so I had more than enough space left (so the memory message may be a red herring for whatever did cause the crash). Googling that first message brings up a bunch of matches, but none of which are for MAUI Android (all different cases with different fixes).

This is using the Android emulator on a Windows machine where I've set the paging sizes to be system-managed. I'm not sure where the Android emulator actually gets memory from though - the system RAM? The paging RAM(disk)? The build directory? The user's App directory?

It reminds me of years ago there was a similar issue with Xamarin Android where the fix/workaround was to add a line to the csproj (I think it increased the heap or something from memory), but I haven't seen that pop up in a long time. Not sure if this is the same issue or a different one.

There's no repro for it cos I can't even reliably repro it. I'm just concerned that it's going to keep coming back given I haven't even added any complexity to it yet.

Has anyone run into this and/or knows how to fix it?

20
21
 
 

How to do it on a high level? Given that I know what to modify in the code.

Also, I won't want to rebuild the parts of the kernel that aren't necessary. The Wifi driver should be rebuild in isolation, that is.

22
23
12
Android Studio Hedgehog is stable (android-developers.googleblog.com)
24
 
 

Orange group keeps alive and available an interesting and very rich web site providing plenty of rules and advices about accessibility. The content targets iOS, Android, web and also other mediums.

25
view more: next ›