• Breaking News

    Thursday, March 4, 2021

    Android Dev - Best practices for coroutines in Android | Android Developers

    Android Dev - Best practices for coroutines in Android | Android Developers


    Best practices for coroutines in Android | Android Developers

    Posted: 03 Mar 2021 03:58 PM PST

    Google ViewModel question

    Posted: 04 Mar 2021 07:38 AM PST

    Could you ELI5 why a lot of devs claim that androidx ViewModel is not a real VM component of MVVM?

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

    A new open-source API Aggregator for mobile developers

    Posted: 04 Mar 2021 07:32 AM PST

    Hi Android lovers!

    I just released GraphQL Portal, an open-source API Aggregator.

    It's really designed for everyone who implements several APIs in their apps or sites.

    It lets you connect any data source or API (through a dashboard or config) and generates for you a single GraphQL endpoint. It provides a lot of cool stuff like joining data-structures together, caching, throttling, limits & co... We already provide connectors for REST, Swagger, gRPC, SOAP, GraphQL, FHIR, and many others. We're also building specific connectors for SaaS tools (Salesforce, Contentful, etc...)

    We're actively looking for beta-testers! Contact me!

    Project site: https://www.graphql-portal.com

    Project GitHub: https://github.com/GraphQL-Portal/graphql-portal

    PS / If you could drop us a GitHub start that would be lovely <3

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

    How much do I need to moderate user-created content?

    Posted: 04 Mar 2021 08:15 AM PST

    My app relies on user posts to make up most of the content of the app and I am concerned about how moderating this will work and how much moderating does google expect you to do?

    I am assuming at the very least I need to not allow cursing in the posts or titles (just guessing) and somehow ensure that pictures that are uploaded are not inappropriate. Is this correct? Will google remove my app if people are posting things that are not what the app was intended for? If so, how do apps normally solve this?

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

    Confusion with persisting app settings through reinstallations

    Posted: 04 Mar 2021 07:00 AM PST

    I'm working on an app that runs on a rooted device used in public places, with no Play Store or signed in Google accounts. The updates are pushed directly with adb and the app has an integrated web server for receiving remote commands, like changing its settings.

    In case of reinstallation, in order to persist the settings there seems to be no other way than to serialize them in a text file that won't be deleted when the app is uninstalled. The documentation for SharedPreferences speaks of something that might be of use, and the Android Preference library also uses it internally.

    This leaves me with two options:

    1. implementing app settings the usual way, initializing them from the file, reading them from Preferences, and writing them to both Preferences and the file with SharedPreferences to always maintain consistency;
    2. using only SharedPreferences, ditching Preferences entirely to avoid the double writes and possible consistency errors.

    The first approach would be probably better for accessing the settings inside the app without much hassle; I'm not a fan of those double writes but the number of settings won't be that huge and they won't be changed too frequently.

    The second approach should at least be more optimized but I don't think it's worth the extra handwork, and honestly I don't even know where to start. There will have to be a hashmap that keeps the deserialized settings in memory at all times to avoid additional reads from the file but at that point I will just end up reinventing Preferences. Also I'd have to build a settings screen from scratch which will be worse than what is possible with Preferences.

    In both cases I need a way to at least write on the file each setting one by one while avoiding duplicate entries. I don't know if I can achieve this with SharedPreferences but it looks like it. Also how would you sync the settings with the server? Do I send the whole file back and forth as it is, or it's better to expose additional REST APIs for each key-value pair?

    So what do you think? At the very least I needed to lay down a proper overview of the problem to clear my thoughts.

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

    Jetpack Compose and Kapt

    Posted: 04 Mar 2021 06:26 AM PST

    Got a new error yesterday in Jetpack Compose, curious if anyone has suggestions for how to debug this?

    > Task :app:kaptProductionReleaseKotlin FAILED error: incompatible types: NonExistentClass cannot be converted to Annotation 

    It gives me a ton of these and a line number for each. It's the `@Composable` annotation. This was building release builds just fine prior to two new dependencies:

    androidx.hilt:hilt-navigation-fragment 

    and

    androidx.navigation:navigation-compose 

    I'm going to be trying the build without each in turn, so I'll report back.

    EDIT:
    Found the issue!!!!!!!!!

    I had updated this dependency:

    implementation("androidx.compose.ui:ui-tooling:1.0.0-beta01") 

    to

    debugImplementation("androidx.compose.ui:ui-tooling:1.0.0-beta01") 

    Which I had seen in the Compose Github samples.

    Turns out you need that for release builds.

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

    I want to include metacritic scores in my app (image of the scores), when clciked onit will direct users to the metacritic site, would this still be copyright infringement?

    Posted: 04 Mar 2021 05:35 AM PST

    I have been reading about framing/linking copyright debate and well it's left me more confused. Im developing an app about games, and on the game product pages i want to display their metacritic scores, when clicked on users will be taken to the site. but because i am showing the scores on the site not sure if its copyright?

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

    In app purchases refunded after 3 days

    Posted: 03 Mar 2021 09:47 PM PST

    Hello everyone

    All my in app purchases are getting refunded after 3 days even though I acknowledge all the purchases.

    App logic goes like this:

    User buys in app purchase -> app verifies purchase token through backend server -> app acknowledges the purchase if it's valid and grants user access to premium stuff.

    I even tested everything with test purchases and all went good, but when I check the developer console all purchases are refunded after 3 days.

    If anyone could help me I would very much appreciate it

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

    it is possible to use geobased notification without using Google Play Services for location fixes and geofences in android. I want to develop an Android app that provides geo-based notifications. A user should be able to select a location on a map and provide a radius, i.e. define a geofence.

    Posted: 04 Mar 2021 05:02 AM PST

    it is possible to use geobased notification without using Google Play Services for location fixes and geofences in android I want to develop an Android app that provides geo-based notifications. A user should be able to select a location on a map and provide a radius, i.e. define a geofence. Whenever the user enters or exits the geofence, a notification should be shown on the smartphone.I want to use only android location package for location fixes that's possible

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

    Google Developer Verification Issue

    Posted: 04 Mar 2021 04:58 AM PST

    -I have checked if my name in form and my id card is same.They are similar ONE-TO-ONE

    -My id card is shown clearly without an issue (No expiration,no image issue or so everything is done as instructed)

    10 mins ago i have sent another request for confirmation (3rd time) but it is not accepted again,just denied in very short time giving this error:

    " Document information does not match information in profile "

    Why am i facing this kind of issue?

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

    How to make a system wide transparent overlay (think watermark over all running apps) ?

    Posted: 04 Mar 2021 04:30 AM PST

    Thinking of an app for folks with OLED screen burn in (Samsung I'm looking at you) that would do an alpha blend or similar using a map of the burnt regions to offset the discoloration.

    I'm looking through the developers documentation at present and know I need something related to ViewOverlay but all the documentation is written for the perspective of a developer that doesn't want to draw over another developers running app (only to make it look better).

    Could anyone provide me a clue on how to achieve this?

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

    Writing text files during automation tests?

    Posted: 04 Mar 2021 04:03 AM PST

    I am currently trying to figure out how I can capture information from requests to my mock web server in automation test.

    If I try to create a file and write to it, I don't see it 🤷‍♂️

    Any tips?

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

    Thoughts on using compose beta for MVP? Production TTM is 6-9 months.

    Posted: 03 Mar 2021 08:16 PM PST

    I'm working on building an MVP for a startup right now, and am considering the pros/cons of using the compose beta for the MVP - want to see what the community opinion?

    It's definitely much faster for dev speed, and figured if I run into a feature with bugs I could use traditional XML MVVM for those use cases until it's fixed. There's a balance to be had here because we will be raising VC money in a few months, so MVP gorgeous UI and speed is important. Product will not be in widespread consumer hands until Q4 2021 earliest.

    Thoughts?

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

    Does anyone here use BigQuery for Firebase for their app analytical needs?

    Posted: 04 Mar 2021 03:18 AM PST

    What do you use it for? LTV calculations? UX optimizations?

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

    iBrain Developers Android App - Bookworm

    Posted: 04 Mar 2021 03:02 AM PST

    iBrain Developers Android App - Bookworm

    We're glad to introduce our new Android App - Bookworm.

    We will be releasing the app by tomorrow.

    Your patience is highly awaited.

    https://preview.redd.it/5p4ah1wftzk61.png?width=5460&format=png&auto=webp&s=473fc7166dd09316d15567c4d94870d41a080f25

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

    YouTube Data API

    Posted: 04 Mar 2021 02:58 AM PST

    Hello, these days I am working on an app that a big youtuber in my country commissioned me. He wants to be displayed a list of the most recent videos (10) and a specific playlist that has not a lot of views, and want to offer downloadable content and news.

    I first implemented it on my app directly and the quotas grew to 2k api calls during just one day of testing (10k are free per week).

    So I am thinking to rent a server and make the api call once in an hour and returning the cached data if a call occurs before the hour is reached.

    In your experience what is the best practice considering that the app once launched would hit at least 100k users in day one?

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

    How is that even possible that google didn't even noticed that? My apps gets instantly rejected/removed/suspended if I ever do that :(

    Posted: 04 Mar 2021 06:43 AM PST

    Having a terrible time trying to enter a valid phone number during Google Play Console account verification. I have tried everything I can think of. Need serious help

    Posted: 04 Mar 2021 01:51 AM PST

    Best practice for in-app reviews

    Posted: 04 Mar 2021 01:48 AM PST

    I think this API is very badly designed.

    If I don't know the exact quotas, how can I decide how often to launch the review flow? For example, what is better:

    a) launch the review flow when the app has been started exactly x times?

    b) launch the review flow if the app has been started at least x times (at every app launch, letting the API handle the quotas)?

    c) launch the review flow when the app has been started x, y, z times?

    What do you do?

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

    Announcing Flutter 2

    Posted: 03 Mar 2021 02:17 PM PST

    KotlinX Coroutines Release 1.4.3

    Posted: 03 Mar 2021 05:36 PM PST

    Taking an Android application and adding Pure Dependency Injection.

    Posted: 03 Mar 2021 08:48 AM PST

    Out of the blue my app received an update rejection, but the affected version is now back in the Play Store

    Posted: 03 Mar 2021 09:47 AM PST

    I added admob banner ads and rewarded ads about a year ago, no recent update changed anything. Today I got the dreaded email:

    "We have determined your app contains code to facilitate Ad Fraud"

    "Your app has been rejected and wasn't published due to this policy issue. If you submitted an update, the previous version of your app is still available on Google Play."

    I am using standard admob library, no 3rd party stuff. Needless to say I am not doing anything fraudulent, banners in a few screens, and rewarded ads option for those users who want to support me extra. I make sure no ads are hidden or accidentally clicked. App has well over a million downloads, ads have been the same way for a year.

    I emailed them for more information, but in the meantime the contested version of the app got restored back to the Play Store (at first it did drop back to a previous version, but after a few hours the most recent version got restored). No email response to my appeal though.

    • Has anything like this happened to many others recently?
    • Did they admit their mistake?
    • What can I expect?
    submitted by /u/DYNALogix
    [link] [comments]

    No comments:

    Post a Comment