• Breaking News

    Friday, May 14, 2021

    Android Dev - Weekly Anything Goes Thread - May 14, 2021

    Android Dev - Weekly Anything Goes Thread - May 14, 2021


    Weekly Anything Goes Thread - May 14, 2021

    Posted: 14 May 2021 06:00 AM PDT

    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]

    Unable to upgrade to newer gradle - causing java.lang.VerifyError

    Posted: 14 May 2021 04:25 AM PDT

    Currently, we are forced to stay with old gradle

    distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip classpath 'com.android.tools.build:gradle:4.0.1' 

    As, whenever we try to update to newer gradle like

    distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip classpath 'com.android.tools.build:gradle:4.1.3' 

    In Google Play Console (Not able to detect in CrashAnalytics), we will encounter quite a number of

    java.lang.VerifyError 

    It can either cause library FirebaseCrashlytics, ads or firebase messaging.

    This is the 2nd times, we are facing such issue. Whenever we are facing such issue, the only thing we can do is revert back to old gradle.

    I was wondering, do you encounter such issue too? If yes, do you have any solution for such? The crash log are as follow - gist:b6844e15e924245af4003f8821c8232f (github.com)

    Thanks

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

    Hey! �� I built a tool to modify app designs and content in the code. Without code —

    Posted: 14 May 2021 08:30 AM PDT

    How do you all deal with different screen sizes on phones for your app

    Posted: 14 May 2021 02:32 AM PDT

    Looking for experiences/ideas you all deal with different screen sizes of phones

    I've gone through some of the Android documentation and searched different questions on the internet trying to understand how to create layouts that look good across different screen sizes. I am still in early stages of my first app and am learning somewhat on the fly, but I have some possible ideas on how to do this.

    Using weights on different views with chains in constraint layout. Autosizing text. Linear and table layouts. Matching parent. Possibly weighted margins if that exists. Although all these possibilities seem like they may have their own drawbacks. But probably can obviously be worked around with combinations and being smart about how you create your layouts.

    What I am looking for is what you all actually did to successfully handle this issue. I haven't seen too many good answers of what people actually employed for their app. Also, did you make multiple layouts? And how do you decide for what screen size to make these different layouts? Seems like there are a million screen sizes. Not really sure that different resolutions matter as DP is 1/160th of an inch, so a physical measurement making physical screen size matter with DP unit. Please provide how you all addressed/approached this issue. Thanks!

    TLDR: please explain what you actually did for your app to have it look good and work across different phone screen sizes. Thanks

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

    Android Studio 4.2.1 available

    Posted: 13 May 2021 11:04 AM PDT

    Coroutine Misconceptions: Whose Context Is It Anyway?

    Posted: 13 May 2021 12:21 PM PDT

    Data Visualization Libraries

    Posted: 14 May 2021 07:19 AM PDT

    Hi, I am looking for a data visualization library, I need graphs of some things like reservations, orders, profit / loss, does anyone know something like that?

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

    getting frames from usb camera

    Posted: 14 May 2021 06:14 AM PDT

    Using private/internal classes/methods of one module from another package descendent module.

    Posted: 13 May 2021 10:02 PM PDT

    So I have a Kotlin Android library project with multiple modules. Let's say there is a Core A module with some internal methods. Now there is another module say B, where I would like to use those internal methods from Core A module. The reason why those methods are internal is that I don't want to expose those APIs to client projects & only my other library modules should have access to it.

    Both modules, Core A has package "com.example.library" & module B has package "com.example.library.subpackage". Is there some way so that I can have an access to all internal members/fields from the super package (of Core A)?

    The reason why I need this is because the Core module A will become independent of any other library module & if there are any changes I can make those in B module & ship it without disturbing Core module A.

    Can I do this? Or this will be considered bad practice because I don't want to use reflection.

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

    Strange playstore entry

    Posted: 13 May 2021 10:07 PM PDT

    Hi everybody,

    I've published an Android App for open beta testing and made my entries in the Play Console for the Play store.

    My app is in English language only. There is a field in the store entry for a "short description" that I've filled with one sentence and a link to my website.

    If I go to the (German) Playstore I can see my app with my English texts, but this one short sentence from the "short description" appears in German language (bad translated) and with a wrong link (the website name misses some letters in the middle).

    I can't find a way to reach out to Google for correction, does anyone know what to do to fix this?

    Greetings,

    Christoph

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

    Kotlin Multiplatform vs Flutter

    Posted: 13 May 2021 08:51 AM PDT

    Which one is better in each of these : 1- performance 2- easy to learn 3- less code for the same result 4- best overall in your opinion

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

    Investigate Cause of Play Store Complaints Faster!

    Posted: 13 May 2021 11:35 AM PDT

    NullPointerException error

    Posted: 14 May 2021 12:56 AM PDT

    Hi I am building an app from start I need to say I am beginner in this area . So until now my app on button click open a popup dialog where I can add names and delete them. but the problem comes when I add a new item and try to delete one, give me crash I will put link below . It gives me NullPointerException , on a null object reference. Really appreciate any comment

    https://pastebin.com/MgMbUuNP

    and here I put error

    https://pastebin.com/x0X1Vh1R

    and this is database

    https://pastebin.com/nwjBfmyn

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

    Proper way to launch other apps from native C/C++ code

    Posted: 13 May 2021 04:26 PM PDT

    I recently ran into the need for a simple but specific app, yet finding myself without any kind on experience in developing for Android (or Java for that matter).

    I then discovered that one can write apps in C/C++ with the native framework and got working what I needed within an hour or so as a command line application running in a terminal emulator (which is enough as it's a one-off and I don't need any kind of user interaction).

    The only Android specific thing I came across was that I needed a way to start other (normal, i.e. user facing) apps. To my surprise, the rather sketchy method of just calling system("am start --user 0 org.mozilla.firefox"); actually worked most of the time. (But not always, giving an error due to a missing INTERACT_ACROSS_USERS_FULL permission for some apps (i.e. Chrome or Instagram)).

    Does anyone have a code snippet on how to properly launch an app from native C/C++ code? Or perhaps a solution for the issue above?

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

    Using Apple's "SF Symbols" in our Android Apps

    Posted: 13 May 2021 12:23 PM PDT

    Are we allowed to use the iOS icon library (called "SF Symbols") in our Android apps? 😯

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

    Data binding in MVVM

    Posted: 13 May 2021 10:48 AM PDT

    Hi, devs of reddit, I've been learning about mvvm architecture pattern in android and I wondered if I can use one way and two binding according to my need in my project. Is it okay to use either of them? If not what should I choose one over other. Please provide me some guidance here. Thanks in advance.

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

    Compromised Keystore

    Posted: 13 May 2021 10:48 AM PDT

    Hi, I have a question I'm hoping the Reddit community can help me out with.

    We have an app that was developed by a third party developer, and they generated the keystore for adding the app in the Play Console.

    We have parted ways with this development firm, and they are saying the keystore they used should be considered 'compromised' and a new one needs to be used.

    Does this mean I have to create an entirely new app and re-publish the app under the new package name? Or is there a way of exchanging a valid keystore file for a new one?

    Also, would it still be insecure to use the existing keystore to move to Google Play App Signing?

    Advice much appreciated.

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

    How to upgrade Jetpack Compose to Beta in Android Studio

    Posted: 13 May 2021 01:55 PM PDT

    Hey there, I need to use the new Beta Version of Jetpack Compose. How can I download that for Android Studio? Thanks for your time.

    Boothosh

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

    No comments:

    Post a Comment