• Breaking News

    Friday, February 12, 2021

    Android Dev - Weekly Anything Goes Thread - February 12, 2021

    Android Dev - Weekly Anything Goes Thread - February 12, 2021


    Weekly Anything Goes Thread - February 12, 2021

    Posted: 12 Feb 2021 06:00 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]

    First time using Jetpack Compose on desktop

    Posted: 11 Feb 2021 02:51 PM PST

    Android Studio Animations

    Posted: 12 Feb 2021 04:10 AM PST

    Hello guys, I need help about animations in Android Studio. Which libraries do you recommend and in which software and file format can I create animations used in Android Studio?

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

    Small r/androiddev rules update (nothing too scary!)

    Posted: 11 Feb 2021 12:02 PM PST

    Hey hey.

    After the discussion a few weeks back, the following changes are coming into play. We'll try them out for at least a few months, then in 6/12 months we can talk again about whether they were a good idea!

    1. App takedown posts are allowed (only Google Play, not admob etc) if they contain:
      • App name & package ID
      • Description of the app
      • ALL relevant emails to/from Google (e.g. the usual one that gives the removal reason)
      • The poster actively follows up to questions asked in the thread
    2. If a slightly rule-breaking post has been left up, but has gathered valuable discussion, it may be kept up at the moderator's discretion.

    Particularly for #1, if you see a post that breaks rules please report it! It's the best way to get stuff sorted, besides helping moderate (PM me if you're interested!)

    Thanks all, hope you're well.

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

    Why am I unable to add layout_margin param to a TextView in a ConstraintLayout?

    Posted: 12 Feb 2021 08:05 AM PST

    The below TextView simply won't show margin when I use the android:layout_margin parameter, and I can't understand why. If I only specify layout_marginRight (or Left), it's fine. I've constrained Start and End, so both should be marginable. Yet if I add both Right and Left, or just use layout_margin (alone), then nothing happens. Any ideas why?

    <TextView android:id="@+id/status_text" android:layout_width="wrap_content" android:layout_height="wrap_content" app:layout_constraintStart_toStartOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toTopOf="@+id/fragment_foo" android:layout_marginRight="@dimen/horizontal_margin_big" ... etc 

    .

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

    When I use the putExtra/getIntra methods while using Pendingintents from buttons of a notification, the transferred value always equals 0

    Posted: 12 Feb 2021 07:57 AM PST

    Hey everyone

    I really don't understand how to unblock myself.
    I have been creating a notification, with buttons (managed by some .addAction sublines of my code).

    This is one of my addAction sublines :
    .addAction(R.drawable.play_imageview, "Play", player1startnotif)

    And then, for each of my intents (such as pplayer1startnotif), I execute a Pendingintent.getActivity to setup what will happens then.

    Here is an example :
    val player1startnotif: PendingIntent = PendingIntent.getActivity(this, 1, intentplayer1, 0)

    And after, so when I click on the button in my notification, there is an intent that lead to the same activity I was, but during this "change of activity", I am supposed to send the integer "1". Why ? Because the goal of my button is to start a Function, and to do so, a
    val order = intent?.getIntExtra("Order",1)
    is supposed to come get the "1" that I sent through the intent with an
    intentplayer1.putExtra("Order", 1)

    But for a mysterious reason, each time I am doing a Toast.makeTest to test my code, the Function is never playing. Why ? Because the value received by the getIntExtra is always 0, like a basic value.

    Could someone help me to understand what am i doing wrong in my code ? I can give some more screeshop or some github links if needed.

    Thank you for your precious help

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

    Hardware (RAM, CPU, GPU) for running multiple Android Emulators on a budget

    Posted: 12 Feb 2021 07:19 AM PST

    I need to setup a pc (or server) to run multiple Android Emulators (Memu for example). I'm looking for a cost effective solution so I'm looking for a low setup (hardware cost+electricity) / emulator cost ratio.

    On each android emulator I'd run 1 app instance like Tinder or Twitter, so the resources load wouldn't be high per each memu instance.

    I'm using Memu performance settings: 1 CPU:1 GB RAM

    My questions are:

    1. What CPU should I look for? I was lookin at AMD Ryzen Threadrippers or other Ryzens but since I'm on a budget I've contemplated using Intel Xeon E5 2680s (pair setup). What would be the more cost efficient choice?

    2. When assigning 1 GB RAM to each Memu Emulator, is it correct to assume that e.g. 10 instances would reserve 10 GB of RAM from my machines hardware?

    3. Does 1 CPU assigned to the emulator means 1 physical CPU on my main machine?

    4. Does CPU cache size matters for android emulators?

    5. What would you suggest for obtaining a budget cost efficient setup for running multiple Android emulators?

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

    What are your favourite Android-only libraries?

    Posted: 12 Feb 2021 02:10 AM PST

    I'm thinking about things like Glide - an image manipulation library specifically for Android, not usable on any other platform, or usable only because there is a special version of it for that platform.

    In short, what's your fav lib stack for building Android apps? :)

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

    My Friend Wonders If He Should Use AoneApps

    Posted: 12 Feb 2021 06:29 AM PST

    Is it safe? He got a email. He says it looks sketchy. Have you tried it?

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

    Play Store 30% Commission

    Posted: 12 Feb 2021 03:53 AM PST

    Hi there!

    I am making this post to ask you guys how you feel about the 30% commission that Google is charging to in-app purchases and subscriptions? (I am not mentioning Apple here because they have "at least" introduce the small developer program.

    Since Apple's small developer program implementation, I haven't heard any news about Google trying to implement something similar.

    Do you guys have any news?

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

    Android studio uses up whole 16 GB RAM please help

    Posted: 12 Feb 2021 02:45 AM PST

    Android studio uses up whole 16 GB RAM please help

    Hi I am learning android app development on a windows laptop with 16 GB RAM. After working on it for some time with few runs and debugs the android studio uses up whole 16 GB. when i take look at task manager I see some 100's of jdk binary files in the memory and they are not cleaned even when i exit android studio how do you guys deal with this?

    https://preview.redd.it/waxx21it01h61.png?width=422&format=png&auto=webp&s=e4728696cd703638db2036a0d8f8543c51ff3e29

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

    Android app quality guidelines from Google

    Posted: 11 Feb 2021 02:46 PM PST

    Test subscriptions (5min) always automatically cancelled after 35 minutes (after 6 renewals) despite acknowledging them

    Posted: 12 Feb 2021 01:50 AM PST

    Title says it all.

    I have a monthly TEST subscription (5 minutes), which I can successfully purchase and they keep renewing until 7th time when they are suddenly cancelled. It is always the same, and it always takes 35 minutes (well 37, including grace period I guess).

    Am I doing anything wrong, or it is another undocumented "feature" which Google forgot to mention in their in-app docs?

    PS: I do know I need to acknowledge all purchases, and I am doing it. Maybe not properly? (but then why they got renewed 6x? Thats so odd...)

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

    Android studio and emulator getting stuck

    Posted: 12 Feb 2021 03:37 AM PST

    My PC has an i3 processor and 8GB RAM. After launching emulator from AVD Manger the emulator is stuck at google logo. Then after some time android studio also getting stuck. Other applications works fine.System monitor shows 3.6 GB of free RAM.

    OS: Fedora 33 with GNOME

    Android Studio version :4.1.2

    Emulator API version: API 30

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

    Advice to fellow developer

    Posted: 12 Feb 2021 03:32 AM PST

    Hi i am a senior highschool student and i want to make an android app to support my self and my mother i have made some simple apps but have never released them to PlayStore and i am thinking about starting new app. I hear a lot of people complaining that thier google play developer account getting suspended or permanently terminated.

    So my question is what are the reasons that a google developer account get suspended?what are good practices when publishing an app?

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

    Android Studio Arctic Fox Canary 6 available

    Posted: 11 Feb 2021 11:04 AM PST

    Backing up without losing cache/accessing root without wiping cache.

    Posted: 12 Feb 2021 02:31 AM PST

    Sorry its not directly related to dev but its my friends birthday & i'm trying to access a snap that saved on cache to send him but i don't have root access.

    Is there any way i can access the root files without rooting the phone (which would wipe the cache files). Linux command line with sudo? anything?

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

    How to support Android Versions: minSdkVersion, compileSdkVersion, and targetSdkVersion

    Posted: 11 Feb 2021 01:19 PM PST

    LottieSwipeRefreshLayout

    Posted: 11 Feb 2021 06:37 PM PST

    Introducing Kamel: A multiplatform media loading library for Compose.

    Posted: 11 Feb 2021 02:41 PM PST

    Is it worth creating a Swift to JVM bytecode compiler ?

    Posted: 11 Feb 2021 02:25 PM PST

    I work for a company that has the same app implemented in Swift and Kotlin, targeting iOS and Android. They don't use a Flutter or React Native solution because it's regarded as unreliable and specialized developers can't be found or are too hard to replace.

    I'd like to know opinions on bringing swift to the jvm, I've bee thinking on undertaking this project particularly because I found Kotlin Native unreliable, given that the same code can work for the jvm but crash natively.

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

    Post-Crash Lifecycle?

    Posted: 11 Feb 2021 12:46 PM PST

    Hi all,

    When an app goes through a crash, does it typically go through the rest of the typical Android lifecycle? How does Android actually handle apps that crash? If I wanted an application to do something during its destruction phase, would that still happen during an app crash?

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

    Opinions and/or advice on mobile application

    Posted: 11 Feb 2021 10:31 AM PST

    Opinions and/or advice on mobile application

    Hello Everyone.

    I am currently developing a mobile application and I would greatly appreciate any help or opinions you could offer.

    Our business monitors certain characteristics of fridges and doors such as fridge temperatures and door open/closed statuses. The "devices" that monitor these characteristics are bunched into groups or "locations". These groups/locations are displayed on the landing page of the app in the form of a dashboard which will act as a summary of the locations as a whole. The predicament is deciding on how to appropriately portray this to the user in a sensible and simple way. The issue is that myself and the people I work with may have a bias towards how it should look, simply because we built the system and understand its workings from the ground up, and it should preferably be understandable to someone who has never used it before.

    The devices contained within a location can be in one of three states:

    • Okay - Displayed in green
    • Error - Displayed in red
    • Disconnected - Displayed in yellow

    The state of all the devices inside a location should affect the way in which the dashboard location item looks e.g. if all the devices are correctly functioning, it is displayed with a green thumbs up.

    P.S. If a device has an error or is disconnected, it MUST be made known to the user.

    I have attached an image of how we are currently displaying it. I look forward to hearing everyone's opinions :)

    https://preview.redd.it/j1pjf5ac9wg61.jpg?width=300&format=pjpg&auto=webp&s=eaceaf98a5388cdfc4812a20f218ad82ca33b452

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

    No comments:

    Post a Comment