• Breaking News

    [Android][timeline][#f39c12]

    Tuesday, September 28, 2021

    Weekly Questions Thread - September 28, 2021 Android Dev

    Weekly Questions Thread - September 28, 2021 Android Dev


    Weekly Questions Thread - September 28, 2021

    Posted: 28 Sep 2021 06:00 AM PDT

    This thread is for simple questions that don't warrant their own thread (although we suggest checking the sidebar, the wiki, our Discord, or Stack Overflow before posting). Examples of questions:

    • How do I pass data between my Activities?
    • Does anyone have a link to the source for the AOSP messaging app?
    • Is it possible to programmatically change the color of the status bar without targeting API 21?

    Large code snippets don't read well on reddit and take up a lot of space, so please don't paste them in your comments. Consider linking Gists instead.

    Have a question about the subreddit or otherwise for /r/androiddev mods? We welcome your mod mail!

    Also, please don't link to Play Store pages or ask for feedback on this thread. Save those for the App Feedback threads we host on Saturdays.

    Looking for all the Questions threads? Want an easy way to locate this week's thread? Click this link!

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

    The lack of documention about Material You colors is disturbing

    Posted: 28 Sep 2021 12:18 PM PDT

    The lack of documention about Material You colors is disturbing

    Hello,

    I just realised that except from the Google one, there is not yet a lot of documentation and third party applications using Material you color theming.

    The only documentation I have found (and I might be wrong) is the android.R.color.system_accent_*** : https://developer.android.com/reference/android/R.color#system_accent1_0

    After some attempts playing with these colors, I realised that these colors looks crappy when used inside FAB or ActionBar. They are not similar to system / Google apps.

    As you can see on the below screenshot, I displayed all these colors in a sample application, and they are nothing like the Google implementation (Phone, Gmail, Drive used as example)

    am I missing something or is Google doing his own implemntation for nice colors to use?
    Should we wait for a jetpack release of these elements?

    What is your opinion?

    https://preview.redd.it/j9x2j929naq71.png?width=1822&format=png&auto=webp&s=a2ab1a3f33d8bd939b4ce22b8b2528a56d389471

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

    Caribou - a tool to help your team manage software migrations (like migrating to Jetpack Compose) in a collaborative and data-driven way.

    Posted: 28 Sep 2021 10:38 AM PDT

    Caribou - a tool to help your team manage software migrations (like migrating to Jetpack Compose) in a collaborative and data-driven way.

    Hello!

    Following the post from a couple of months ago, we are happy to announce that Caribou, our tool to help you manage technical debt in your projects is live! While in beta, this tool will be available for free. You can find it here

    If you have ever been involved in a long-term technical migration and found it difficult to manage progress, or you struggle to recognise employees for their contributions to code quality improvements, then Caribou might be able to help!

    Our team has experienced these problems first hand while working in a fast-growing startup recently, managing a team of 70 engineers. We've decided to build Caribou to help engineers and engineering managers facing the same challenges. We strongly believe engineering quality leads to better outcomes, and we've built Caribou to help with that 🙂

    So how does it work? In simple terms, Caribou is a Github application which, after configured, will monitor all the changes in your repository and display a dashboard of the progress of specific migrations along with who is contributing to these migrations. Caribou allows you to define all sorts of migrations using a rules engine: Migrating to Jetpack compose, changing your architecture, or removing a library from your project among others. You can get inspired by our examples in the docs section.

    Currently, Caribou is still in Beta. We believe the product can provide a lot of value as it currently stands, but there is more functionality that we're looking to add in the coming months such as Slack integration and Pull Request comments so that engineers can get valuable feedback in their PRs.

    For a limited time only, Caribou is available for free. Please give it a try at www.hellocaribou.com and let us know what you think!

    https://preview.redd.it/j8jyl4sq4aq71.png?width=1154&format=png&auto=webp&s=3d211e99ac990529d3968cb8353c89e1b7887fd8

    P.S. The backend is running on AWS Lambdas and it is written entirely in Kotlin 😎

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

    Why is "DAU/MAU vs. peers" not showing data in play console?

    Posted: 28 Sep 2021 01:04 PM PDT

    I have an app and I want to see DAU/MAU vs Peers KPI. but when I click on that it shows no data available. Please can anyone help me for solving this issue. How can I see DAU/MAU vs Peers KPI?

    submitted by /u/jsg-developer
    [link] [comments]

    I developed an Android App and now want to go Multi Platform - What's the smartest way to do it? ��‍♀️ (Flutter? Kotlin Cross Platform? Or something else?)

    Posted: 28 Sep 2021 12:50 AM PDT

    Hey there fellow internet people!

    I have developed an app for Android with Kotlin and now I want to make the app multi-platform (including iOS).
    Problem is: I don't know how.
    My solution: I'll just ask people on reddit. After all people on reddit are smart and if they aren't smart they are many.💁‍♀️

    So... Developing multi platform. What's the best way to do it?

    Flutter or Kotlin Cross Platform? Does anybody know what google is planning regarding to Flutter and Kotlin Cross Platform support? I am completely new to Dart/Flutter. I don't have a Mac for iOS development either. Any tips?

    Advice and anecdotal remarks of any kind are welcome. Thank you very much in advance.

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

    How to obtain resource id from UIautomator event

    Posted: 28 Sep 2021 10:21 AM PDT

    For a while now I have been using the following command for viewing events in android.

    "adb shell uiautomator events"

    Was wondering if there is a way to display resource id upon an event taking place.Like the record feature in espresso.(Need not use UIautomator)

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

    java.lang.RuntimeException: Canvas: trying to draw too large(122680608bytes) bitmap.

    Posted: 28 Sep 2021 03:12 AM PDT

    This exception is coming when I am running my app in the Android 8.1 version so what could be the main reason behind this exception?

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

    Selling Android app via escrow.com

    Posted: 28 Sep 2021 11:51 AM PDT

    Anyone sold Android app via escrow.com? What is the type of transaction we should choose while creating the transaction?. Escrow.com site has the following options:

    Domain name, General Merchandise, Motor Vehicle and Milestone transaction.

    Which is the correct category?

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

    Including 3rd party libs in a public SDK

    Posted: 28 Sep 2021 02:48 AM PDT

    I am developing an Android SDK which my clients will integrate into their apps in order to leverage my Saas product. The SDK allows customers to easily interact with my product via a few custom screens.

    One feature I would like to implement on my SDK is crash reporting, using something like Sentry. What I'm worried about is that if I include the Sentry dependency into my app, and my customers also leverage Sentry in their apps, that there will be dependency conflicts.

    I feel I have the same problem with any dependency I include in my SDK project.

    Is there any way of leveraging gradle to avoid this problem, or do I have to think about rolling my own logging, crash reporting etc... so that I avoid including any common 3rd party libs?

    Thanks for your help.

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

    Google Play Content Rating

    Posted: 28 Sep 2021 06:41 AM PDT

    I've made a game that uses some things from Spotify's API - album/song names, album covers, track previews. The user can pick which playlists to make the games from.

    I'm getting ready to release and going through the content rating questionnaire I'm unsure whether to say my game contains nudity (some album covers do), profanity (some songs, album names, song names do), or other things like drug references (which some songs do and could hypothetically be heard in song previews).

    The official Spotify app itself is rated T for teen but if I'm completely honest in the questionnaire I get an 18+ everywhere. Wondering what to do / answer to get it a teen rating?

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

    How to protect app assets from getting stolen ?

    Posted: 27 Sep 2021 07:43 PM PDT

    How do you protect your app assets from getting stolen ?

    Recently I saw some developers decompiling apks and getting the assets used .

    Any workaround to protect ?

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

    Storage Model | Android 101

    Posted: 27 Sep 2021 07:13 PM PDT

    What are some of the things to keep in mind before changing developers for my app?

    Posted: 28 Sep 2021 06:41 AM PDT

    First off, I am just the owner of the app. I don't have much ideas about the technical details of app development.

    My app was developed by a company. Now, I am planning to work with a team of freelancers instead of the conpany for the future upgrades/updates of the app.

    I have already taken the source code. Do i need to take anything else from the company? What are some of the things that i should keep in my mind before making the shift?

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

    How to remove subscription and make my app free?

    Posted: 28 Sep 2021 01:48 AM PDT

    Sorry if I sound naive.

    I am the owner of an android app built using ionic but I am not a developer. I had sought the help of a freelancer to build the app.

    The app currently uses Google sign-in and Google in app subscription. every first time usser will have to sign in using their google id and for accessing a portion of the content in the app, the user needs to give their card details to start a free trial which will be followed by a monthly subscription.

    Now, I am planning to make the app absolutely free. ie, no more subscription or card details required. All the content will be available to any user who signed up.

    Here is my question: can I do this from play console? Would disabling the subscription plan in play console do the trick or would I have to get in touch with the freelancer again to make it happen?

    Please guide. Thanks in advance.

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

    Question about changing phone resolution using ADB

    Posted: 28 Sep 2021 01:24 AM PDT

    Hello folks.

    I have a phone that has a native resolution of 2400 x 1080 (20:9).

    What would happen if I use ADB to change resolution to the tv standard 1920 x 1080 (16:9) ?

    I believe my phone would simply have a black bar either on top or bottom. Can anyone confirm this?

    I found the following info on the command I should use:


    display-size [reset | widthxheight]

    Override device display size. This command is helpful for testing your app across different screen sizes by mimicking a small screen resolution using a device with a large screen, and vice versa.

    Example: am display-size 1280x800


    Thanks in advance, android dev pals

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

    In production is it necessary do perform user input sanitization client side?

    Posted: 28 Sep 2021 12:54 AM PDT

    Or should you just let the backend team handle all of it and you just handle the error codes from the backend?

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

    A beginner at software dev overall, want to dabble in android dev. What language should I use?

    Posted: 28 Sep 2021 02:53 AM PDT

    I'm a complete beginner in software dev, I've only developed games in a bit of C#, and a good bit of Lua, but I haven't done anything in software dev.

    I thought about what my first project should be, and decided on an android app that'd help my daily life. I don't know how complex the project'd be considered, so I'm just looking for an easy language to get into, that wouldn't eat up months of my life learning, as I have some other projects in mind, too. I don't care about making the highest quality app I can make, just something I can get by with, and see if I like developing mobile apps.

    After researching a bit I got the idea that Flutter would be the most beginner friendly? Is that wrong, and should I rather not be scared of something like Java and try learning it?

    submitted by /u/Fudge-Basic
    [link] [comments]

    Best resource to learn android retrofit, Api's and Json handling.

    Posted: 27 Sep 2021 07:14 PM PDT

    Im still a beginner in android, I have gotten the basics and completed a fee projects using firebase, But i want to get into the nitty gritty stuff of handling network calls and all those.I just cant seem to find the right resources that explain it to a complete beginner.Any recommendations?? I've tried youtube but too complicated and assume you already know the concepts, also I dont wanna just blindly follow a tutorial.Any resources suggestions would be highly appreciated,books blogs, site anything of that sort.

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

    Is there a type of notification/popup that can be created using Native Apps that isn't replicable via websites?

    Posted: 27 Sep 2021 06:28 PM PDT

    I need to create a notification that's easily distinguishable from website based notifications/pop-ups. I am thinking about a permanent notification that updates based on events, but this is quite passive and requires a deliberate look-up. Is there any way?

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

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel