• Breaking News

    [Android][timeline][#f39c12]

    Tuesday, August 31, 2021

    Weekly Questions Thread - August 31, 2021 Android Dev

    Weekly Questions Thread - August 31, 2021 Android Dev


    Weekly Questions Thread - August 31, 2021

    Posted: 31 Aug 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]

    In Korea, Apple Google will be forced to offer alternate payments systems and they can't unreasonably delay approval or delete apps in their stores.

    Posted: 31 Aug 2021 04:18 AM PDT

    Try the New Kotlin/Native Memory Manager Development Preview

    Posted: 31 Aug 2021 08:48 AM PDT

    App Takedown – Trying to resolve inadequate prominent disclosure

    Posted: 31 Aug 2021 12:01 PM PDT

    I'm new here, so hopefully I'm providing all the information required in the rules.

    My company's app, Pinpoint (Play Store webcache), collects device information (phone number, SIM number, device ID, device make and model) and network information (service level, signal level, etc). We then process that data and map it for our customers to see how well their cell network performs. We use the device information to ensure that people only see maps of the data they collected. (Accounts are handled outside of the app, so there's no logging in or payment taking place inside the app. We have contracts with the people/agencies who are using the app and we don't collect data from anyone we don't have a contract with.)

    Anyway, the app's been in the Play Store for years, but recently got removed because: "APK HAS A PROMINENT DISCLOSURE BUT THE DISCLOSURE IS NOT ADEQUATE / Your app is uploading users' Phone Number information to [https dot app dot our-company's-site] without an adequate disclosure."

    Our permissions and disclosures go like this:

    1. Privacy Policy (clearly includes phone number under section titled "Types of Data collected")
    2. Pre-Phone Permission Disclosures:
      a. First Rejected Disclosure
      b. Most Recent Rejected Disclosure (Here, we tried to be more explicit about the uses of all data, and not just Phone data in case Google objected to accessing files.)
    3. Allow app to make and manage phone calls? (Deny/Allow)
    4. Allow app to access photos, media, and files on your device? (Deny/Allow)
    5. Depending on the Android version, we have one of two different permission notices for location (Note: these recently passed Google review and have not been modified):
      a. Android 10+: "Pinpoint needs permission to your location all the time to match network performance with where you are. Click on Permissions then Location, and select 'Allow all the time'. The app will not run properly unless you do so. For our privacy policy go to https://televate.com/pinpointprivacy/" (Cancel/Change Permissions)
      b. Android 9-: "Pinpoint app collects location data to identify where the wireless network coverage information is measured, even when the app is closed or not in use. The data is used to create network coverage maps." (Cancel/Agree)
    6. "Pinpoint will be able to run in the background. Its battery use won't be restricted." (Deny/Allow)

    We've read the User Data policy requirements and have rewritten the disclosure but keep getting rejected. Obviously, we're doing something wrong, but we can't figure out what. Any suggestions would be ENORMOUSLY appreciated!

    submitted by /u/hmm-okaaay
    [link] [comments]

    Unique segmented arc view with rich customisation options!

    Posted: 31 Aug 2021 11:16 AM PDT

    Unique segmented arc view with rich customisation options!

    Hello, I would like to share my open source library which I wrote during my free time!
    Stars would be appreciated, but only if you like it 😊

    https://github.com/edgar-zigis/SegmentedArcView

    https://preview.redd.it/b01hiy80jqk71.png?width=800&format=png&auto=webp&s=221cbb6ceea011de223fdb8d23b404902c3468ec

    Everything is highly customisable - amount of segments, individual gradients, separators, individual segments can be animated with custom alpha animation. Title can be set, value text can be set, custom text colors, fonts, vertical offsets etc. Sure there are custom settings for startAngle, sweepAngle.
    Hopefully it will be useful to you!

    submitted by /u/biomatic-1992
    [link] [comments]

    Anyone received mails like these after publishing your app/game on Google Play Store or any other market?

    Posted: 31 Aug 2021 11:58 AM PDT

    Performance and Velocity: How Duolingo Adopted MVVM on Android

    Posted: 31 Aug 2021 07:33 AM PDT

    How to learn to create beautiful view in Android kotlin

    Posted: 31 Aug 2021 02:44 PM PDT

    Hi i am new in android. I saw some beautiful layout post in social media like instagram, Facebook etc. I want to learn how to create that type of view in Android. I am adding Some instagram link to see how it looks like Image 1 has animation also

    image 2 has no animation

    Can someone know how to learn from these.

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

    Software shenanigans

    Posted: 31 Aug 2021 06:54 AM PDT

    What's a reliable method to wake up the device from sleep and activate the display?

    Posted: 31 Aug 2021 11:58 AM PDT

    I built a timer app, that uses Alarm Manager to get the system to tell the app when the timer is finished. Since the screen might be off, I need the device screen to turn on and activate, so that I can display UI to the user telling them that the timer is up.

    Right now, I'm using

    wakelockFlags = PowerManager.SCREEN_DIM_WAKE_LOCK or PowerManager.ACQUIRE_CAUSES_WAKEUP

    which works. However, PowerManager.SCREEN_DIM_WAKE_LOCK is deprecated since API 17. It seems to work fine for now, but I'm concerned it could stop working.

    One other possibility seems to be:

    wakelockFlags = PowerManager.PARTIAL_WAKE_LOCK or PowerManager.ACQUIRE_CAUSES_WAKEUP or PowerManager.ON_AFTER_RELEASE

    Does anyone know a better way of doing this?

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

    build.gradle: adding BuildConfig field dynamically using new Variant API

    Posted: 31 Aug 2021 06:34 AM PDT

    Hey there,

    with Android Gradle Plugin 7 Google provided a new way to access app variant using their new Variants Api.

    I could not figure out how to add BuildConfig fields depending on the variant using this api. Can someone give a hint?

    androidComponents { onVariants(selector().withBuildType("release"), { it.buildConfigFields.put("MY_KEY", BuildConfigField("String", "\"$someSecretValue\"", null)) // not working it.addBuildConfigField("MY_KEY", "\"$someSecretValue\"", "key description") // not working }) } 

    Any suggestion is highly appreciated!

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

    Android architecture components discussion

    Posted: 31 Aug 2021 01:33 AM PDT

    Hey all, quick question from someone who's been out of the android dev game for a few years and now returning to work on an old app. I remember android architecture components coming out, so I wanted to implement them not, but everything I see written about them is from pretty much 3 years ago. Do people still use this? Is it any good? Worth the refactoring?

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

    Getting started with android developmenz

    Posted: 31 Aug 2021 09:42 AM PDT

    Hi guys,

    do you have any recommendations on how to start with learning android development? I have BS in mechatronics and have some experience with software (C, C++, Qt) and have some basic knowledge in OS (Linux development). I work in an automotive company and wanted to learn something new as a hobby that is not related to cars .. :)

    I know that learning by doing with a real project would be the best thing but I would like to start with something guided. I thought about doing the udacity nanodegree Android with Kotlin. Anyone knows if the course is good?

    Thank you!!

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

    What events are fired when someone uses the camera app to take a photo?

    Posted: 31 Aug 2021 06:45 AM PDT

    When the camera app is launched and a photo is taken (without any context), what events can I subscribe to to get notified that a new photo was taken?

    To clarify some more:

    1. User takes photo
    2. My app should be made aware of the photo
    3. My app performs object detection
    4. Notify user of object detected via notification

    Thanks for the help!

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

    Getting started with jetpack compose - Basic components

    Posted: 30 Aug 2021 10:26 PM PDT

    Google Play Console down?

    Posted: 31 Aug 2021 05:54 AM PDT

    Haven't been able to access https://play.google.com for the past few hours (UK) :(

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

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel