• Breaking News

    Wednesday, September 29, 2021

    Android Dev - When Studio and smart-light became friends...

    Android Dev - When Studio and smart-light became friends...


    When Studio and smart-light became friends...

    Posted: 29 Sep 2021 02:58 AM PDT

    A visualization of handler, message queue and looper (in case it is useful to someone )

    Posted: 29 Sep 2021 01:37 AM PDT

    Portals: a Better Web View for Android (and iOS) Apps

    Posted: 29 Sep 2021 07:06 AM PDT

    Measure, measure, measure

    Posted: 28 Sep 2021 08:00 PM PDT

    Terminated account. How does mere mortal find redemption with Google Play?

    Posted: 29 Sep 2021 12:20 AM PDT

    I'm planning to publish my first mobile app as an indie developer and I found out that I can't access Google Play console and my account was terminated in 2015.

    Firstly I didn't even recall wtf I was doing with the play market and Android in 2015 cause I'm just a web developer of 10+ years. Then I've remembered that I was joking around with Android and trying out some random stuff.

    And apparently app I've published to the Play Store did have some copyrighted images or logos or something.

    And it got banned and my account got terminated almost immediately.

    I've found old emails and they were like this:

    1. "Warning" email about app removal and policy violation.

    2. Account termination after 3 hours.

    I've reacted to that with questions like "what exactly is wrong and how could I republish?".

    I didn't care about this termination then and didn't realize it was a life sentence.

    But I think it really doesn't matter right now.

    I've filled an appeal form with brief info about the situation and they responded to me with a canned answer (as I figured out later) which told me to read the Help Page which leads to the same appeal form.

    I've filled it one more time - same response.

    3d time with different wording - same response.

    I got really frustrated about this situation.

    After searching for similar issues with other people I found out that it's probably a dead end.

    How do I find redemption with Google?

    Are there any solutions?

    Or I just got banned for a lifetime from the Google Play store just for a random stupid mistake that took place 6 years ago?

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

    I am excited to share our Compose CookBook for JetpackCompose

    Posted: 29 Sep 2021 12:18 AM PDT

    I am excited to share our Compose CookBook for JetpackCompose

    SSComposeCookBook : A Collection of major Jetpack compose UI components which are commonly used.

    In this repository, there are number of UI components demonstrated which can be useful in regular development through Jetpack Compose.

    • Common UI Components
    • BottomNavigation
    • Navigation Drawer
    • API call with Retrofit
    • List
    • Constraint Layout
    • Animation

    https://preview.redd.it/8tvcq9ydueq71.png?width=1280&format=png&auto=webp&s=44311455d6a0cf5ed026545cd6420caefc33efb9

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

    If you have an unpublished app, can google still suspend it and give you a strike?

    Posted: 29 Sep 2021 05:37 AM PDT

    A previously published/live app I unpublished. Worried that google could still suspend it even though it's not live anymore? Trying to avoid strikes.

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

    What happens when a Worker code is updated?

    Posted: 29 Sep 2021 06:17 AM PDT

    I have a one time (WorkManager) worker with some logic that allows it to retry (Result.retry()) when some conditions are not met. If this worker has been running and has a scheduled retry, what happens when I update the code of that worker and the user the updates the app? Would it:

    1. run the old worker code?
    2. continue running but run using the new worker code?
    3. cancel the current job since it detects the worker code has changed?
    4. ???

    I'm inclined to think it would be #3 but not really sure.

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

    Tutorial: Implementing a Todo List in Compose using the Bloc library

    Posted: 29 Sep 2021 12:18 AM PDT

    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]

    Found my .apk file on a Chinese website

    Posted: 29 Sep 2021 08:28 AM PDT

    I just found out that my app can be downloaded from this Chinese website. What should I do about it?

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

    Toast without main activity?

    Posted: 29 Sep 2021 08:25 AM PDT

    Is it possible to make a toast message without loading an app window? What I am trying to accomplish is that when launching the app, only a toast message (displaying phone uptime) will be shown and the app will exit.

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

    Allow while using the App vs Ask Always

    Posted: 29 Sep 2021 07:34 AM PDT

    Is there a way to determine if user has Granted the location permission permanently (While in Use) or Granted it temporarily (Ask Always).

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

    Is there complete documentation on how to request permissions?

    Posted: 29 Sep 2021 07:17 AM PDT

    It sounds like something that should be trivial but I am struggling for months with it already.I find this documentation somewhat clear and good enough to build a functioning permissions flow, but the integral part that is missing from there is the reason we have been rejected from the Play store multiple times now and I just can't wrap my head around it.

    The content of all my rejections revolved around this policy (specifically the "Provide prominent in-app disclosure" part). After the first rejection around this policy, I was confident an updated/ more detailed text to the Dialog I was showing when `shouldShowPermissionsRationale` was `true` would be enough to get past review. That did not work out, and I got rejected again. Obviously, since the `shouldShowPermissionsRationale` Dialog is not always shown.Slightly shivering and sweaty now after my second rejection (pending removal, pending account deletion), I decided that what they mean in the policy might be not what comes after `shouldShowPermissionsRationale=true` but should be something separate that is shown each time ahead of the whole flow. So I built another dialog, added a really detailed explanation of how user data is used, and added it to the very start of the flow, being always shown if the user wants to enable a feature that requires said permission.That got me through the next review and I was happy.

    My users and UX designers of course were not so pleased, since a press on a button will now basically take the user through a 15 dialog-flow (exaggerated) before that feature can be used. (Since it's the BACKGROUND_LOCATION_PERMISSION we need even more steps now because with targetAPI=30 we need to request it separately from the regular location permissions now).

    Does anyone here still know how this whole flow to get to a BACKGROUND_LOCATION_PERMISSON should work including those dialogs I need to show to satisfy the Google play policy gods? If there are googlers here... do you even know yourself? :P

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

    Use MediaStore to get audio files

    Posted: 29 Sep 2021 06:54 AM PDT

    I've read that since android 11 (api 30) READ_EXTERNAL_STORAGE and WRITE_EXTERNAL_STORAGE permission doesn't have any effect and one is supposed to ask for MANAGE_EXTERNAL_STORAGE to be able to access files on external storage.

    I actually want to make a *music player* app and so need to use **MediaStore** to get audio files on the device, but when I use it on android 11 it just return the audios in some Android/media directory. Should i get MANAGE_EXTERNAL_STORAGE permission or is there another way? If yes how should I get that permission?

    Any help would be appreciated.

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

    Learning Jetpack Compose - is it ok or over-engineered?

    Posted: 29 Sep 2021 05:54 AM PDT

    I'm going through Compose tutorials on developer.android.com, one specific example is a TODO application (github) which demonstrates state management.

    • Is it ok that a seemingly trivial TODO application requires 5 separate files and 500+ lines of code?
    • Is the sample purposefully over-engineered to emphasize features and app design?
    • Or is Compose as a whole over-engineered?
    submitted by /u/vsix_
    [link] [comments]

    Here is the new tool to edit Android 12 widgets

    Posted: 29 Sep 2021 05:18 AM PDT

    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]

    Quick Guide: Integrating Widevine DRM In ExoPlayer For Android

    Posted: 29 Sep 2021 12:40 AM PDT

    Hello everyone,

    Ever amazed how OTT platforms are playing videos securely on your mobile?
    Check out my blog on Integrating Widevine DRM in Android ExoPlayer.
    https://blog.kiprosh.com/widevine-drm-setup-in-android-exoplayer/

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

    Compose Destinations: a simpler, safer way to navigate in Jetpack Compose

    Posted: 28 Sep 2021 12:56 PM PDT

    Hi all 👋

    I've just posted an article about my library: Compose Destinations - A KSP annotation processor to make navigating in Jetpack Compose easier and safer!

    Check it out here

    I'm looking for all kinds of feedback about the article or the library itself.

    Quick summary of what you can do with the library:

    • Use @Destination to add a Composable to your navigation graph
    • To add arguments, simply add them to the Composable function.
    • Default arguments? You can use Kotlin's default arguments! @Destination(route = "profile") @Composable fun ProfileScreen( id: String, isEditable: Boolean = false ) {/*...*/}
    • To navigate use withArgs function of the corresponding generated Destination: navController.navigate( ProfileScreenDestination.withArgs( id = $someId, isEditable = $isOwnUser //isEditable is optional here ) )

    And more!

    If you find it interesting try it out in some sample project and please do let me know how was it!

    Find it on github

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

    What happened to ratings in Google Play?

    Posted: 28 Sep 2021 11:53 PM PDT

    What happened to ratings and reviews in Google Play?

    • WhatsApp has 5B+ downloads and 346k reviews only
    • Zoom has 500M+ downloads and 3k reviews only
    • eBay has 100M+ downloads and 1k reviews only
    • ...
    • ...
    • ...

    Something weird, Right?

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

    App crashes when not connected to pc

    Posted: 28 Sep 2021 11:05 PM PDT

    I have written an app that runs a background service that regularly checks crypto prices and stores to a Sqlite database. When plugged in to my pc everything works well but if I clear the data and restart the app disconnected to the pc it fails to write to the database and crashes. When I tried to use debugging via WiFi, It works perfectly. This is driving me crazy! Anyone have any ideas?

    submitted by /u/syamarupa
    [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]

    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]

    No comments:

    Post a Comment