• Breaking News

    Friday, November 13, 2020

    Android Dev - Weekly "anything goes" thread!

    Android Dev - Weekly "anything goes" thread!


    Weekly "anything goes" thread!

    Posted: 13 Nov 2020 04:40 AM PST

    Here's your chance to talk about whatever!

    Although if you're thinking about getting feedback on an app, you should wait until tomorrow's App Feedback thread.

    Remember that while you can talk about any topic, being a jerk is still not allowed.

    submitted by /u/AutoModerator
    [link] [comments]

    Has anyone updated to MacOS Big Sur and is Android Studio working fine with it?

    Posted: 12 Nov 2020 09:41 PM PST

    Since a lot has changed in Big Sur and Macbook being my development machine, I just want to make sure before upgrading that Android Studio works fine or not otherwise will have to take leave from work.

    submitted by /u/unclebogdan10
    [link] [comments]

    AdMob users. What do you think about keeping test devices in your production builds? Would you risk getting your devices spoofed and getting banned from AdMob? Or would you rather risk getting banned from invalid traffic due to forgetfulness?

    Posted: 13 Nov 2020 04:08 AM PST

    I can't figure out which is riskier. The choice is binary and either choices could result in getting banned. My test devices are usually removed from my official release APKs. I recently decided to resume work on one of my AdMob apps, so I played around with the release from the Play Store and forgot that my devices were no longer interpreted as test devices. I panicked and rushed to run the the dev build on all my devices.

    I thought about just keeping the test device IDs in my future releases, but I googled to make sure if I should do it. And people said someone can then decompile the APK and extract the device IDs, then spoof my devices. I believe malicious actors can then generate invalid traffic with my spoofed device IDs.

    On the other hand people have said they were suspended or demonetized because they didn't use test IDs on their official releases.

    It seems like both choices are bad. And hearing about how Google treats Android devs here, I feel hopeless! What do you guys usually do with your test device IDs? Keep or remove?

    submitted by /u/poetryrocksalot
    [link] [comments]

    More WindowInsetsController APIs backported!

    Posted: 12 Nov 2020 04:49 PM PST

    AOSP is migrating from its current build systems to Bazel

    Posted: 12 Nov 2020 10:17 AM PST

    Kotlin Linters: which should I choose?

    Posted: 13 Nov 2020 02:27 AM PST

    Modern approach to list and details screens

    Posted: 12 Nov 2020 10:53 PM PST

    I created a sample project here https://github.com/lawloretienne/CryptoCoins

    It's a really basic app but i just wanted to showcase an approach to building a list screen and details screen.

    Let me know what you think.

    submitted by /u/lawloretienne
    [link] [comments]

    Monetisation strategy: nsfw game on patreon, sfw on Google Play

    Posted: 12 Nov 2020 11:20 PM PST

    Will Google play allow such thing?

    On Google there will be a sfw version of the game with link to patreon where user can subscribe to get the nsfw version.

    submitted by /u/lxknvlk
    [link] [comments]

    AlphaBae boilerplate/SDK makes BSV on Android very easy; tweet-thread

    Posted: 13 Nov 2020 02:47 AM PST

    Hi can anyone help me how to implement this project I have no idea on tasks...etc I know how to design front end

    Posted: 13 Nov 2020 04:09 AM PST

    whats the best approach to making an iso of my android tv ?

    Posted: 13 Nov 2020 03:55 AM PST

    Mockito unit test strange behaviour for custom class

    Posted: 13 Nov 2020 03:30 AM PST

    I have a custom class:

    data class ContainerModel( ... val data: List<MainModel>? ) { fun get(id: String) = data?.firstOrNull { it.id == id } } data class MainModel( val id: String?, val documentGroups: List<DocumentGroup>?, .... ) { fun hasAnyDocument() = documentGroups != null } 

    In my unit tests, I setup up like this:

    import org.mockito.Mockito.`when` as mwhen private lateinit var containerModel: ContainerModel @Mock lateinit var m1: MainModel @Mock lateinit var documentGroup: DocumentGroup @Before fun setup() { m1.apply { mwhen(id).thenReturn("m1") mwhen(documentGroups).thenReturn(listOf(documentGroup)) } containerModel = Mockito.spy(ContainerModel(data = arrayListOf(m1))) } 

    This test is successful

    @Test fun get() { Truth.assertThat(containerModel.get("m0")).isNull() // successful Truth.assertThat(containerModel.get("m1")).isEqualTo(m1) // successful } 

    But this is strange

    @Test fun checkDocuments() { Truth.assertThat(containerModel.get("m1")!!.documentGroups).isNotNull() // successful Truth.assertThat(containerModel.get("m1")!!.documentGroups?.size).isEqualTo(1) // successful Truth.assertThat(containerModel.get("m1")!!.hasAnyDocument()).isTrue() // FAILS } 

    It's super strange to me as if I check on documentGroups
    it's clearly not null and has one item, but calling a function that uses it fails? what could be the issue?

    Thanks!

    submitted by /u/dotcomslashwhatever
    [link] [comments]

    Jetpack Compose dialogs

    Posted: 12 Nov 2020 11:24 PM PST

    I recently started to migrate my app to Jetpack Compose, but unfortunately can't find any tutorial about the dialogs. Whenever I try to search for anything, the only thing that pops-up is AlertDialog. But how the hell can you do a custom dialog with let's say edit text in it?

    Thank for any help!

    submitted by /u/Kuglll
    [link] [comments]

    Which app signing do you use?

    Posted: 13 Nov 2020 03:02 AM PST

    AndroWish: AndroWish allows to run desktop Tcl and Tk programs almost unaltered on the Android Platform

    Posted: 13 Nov 2020 02:29 AM PST

    me irl

    Posted: 13 Nov 2020 07:06 AM PST

    HELP Virus persists after reflashing stock ROM

    Posted: 13 Nov 2020 12:28 AM PST

    I have adware on my phone that nothing can remove. I've reflashed my stock ROM twice using fastboot, and once using the SP Flash tool, but the apps still auto-install. What can I do? Will it make a difference if I reflash using TWRP, or if I flash a custom ROM?

    And the only thing I can think of that I didn't flash is my bootloader.img, because I don't have it. Is it possible that's the problem?

    submitted by /u/dirtinmylungs
    [link] [comments]

    Checking arraylist of custom object contains object with give given name property.

    Posted: 12 Nov 2020 06:04 PM PST

    Hello people,

    Are there any way to do this better?

    public boolean hasItemInList(String itemName) {
    ArrayList<String> tempArray = new ArrayList<>();
    for (CustomObject item : this.listOfCustomObjects) {
    tempArray.add(item.getName()); //getName method in CustomOject
    }
    return tempArray.contains(itemName);
    }

    Thank you

    submitted by /u/TimbaatheMathman
    [link] [comments]

    What is the role of a QA automation dev on a mobile apps team?

    Posted: 12 Nov 2020 12:51 PM PST

    This might seem like a dumb question, but the place I currently work at wants to start hiring QA automation developers for individual teams, including the one I'm on, and it occurred to me I'm not really sure what it is that they would do on a mobile apps team. The apps I work on aren't terrible complex and they have a decent enough, continually growing suite of unit (JUnit) and functional (Espresso) tests running as part of their CI/CD.

    Is there something a QA automation developer can bring to the table that I'm not currently doing already? Anyone else ever found themselves in a similar situation? Thanks.

    submitted by /u/Chartsengrafs
    [link] [comments]

    "Share" Context Menu

    Posted: 12 Nov 2020 04:10 PM PST

    Sorry if this qualifies as a "help me" post, just not sure where to ask this. (Google yielded no results)

    When you click the "share" button on a reddit post, it gives you many options, such as "crosspost on reddit" or "share to discord".

    Basically I want to create an app that will add an option to this context menu that will open the post in removeddit. (Website for viewing deleted reddit comments)

    I am near certain this is possible, but after googling around I found no results, but it's also possible I just don't know the right terminology to search for it.

    Any help would be appreciated, thanks everyone.

    submitted by /u/LEPNova
    [link] [comments]

    I am sorry for this "help me" post

    Posted: 12 Nov 2020 11:33 AM PST

    Hello I am a Data science student and a beginner in android dev.I want to create a simple news app(without News api) that retrieves text from a DB and show it in the app.Is there any tutorual that walks you through(surprisingly I didn't find one)?knowing that I need to do some ML on this DB.

    submitted by /u/HamzaBjitro
    [link] [comments]

    Using words like YouTube, Twitter, Google, Apple within the application

    Posted: 12 Nov 2020 10:49 AM PST

    Could these words cause a store rejection if I show these brand names within my app?

    submitted by /u/caoladder
    [link] [comments]

    No comments:

    Post a Comment