• Breaking News

    Friday, August 7, 2020

    Android Dev - Weekly "anything goes" thread!

    Android Dev - Weekly "anything goes" thread!


    Weekly "anything goes" thread!

    Posted: 07 Aug 2020 05:40 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]

    How do I improve my Android skills and learn "Good practices"?

    Posted: 06 Aug 2020 09:21 PM PDT

    I've a good idea of app development and have made 3 apps yet. But whenever I get stuck I always use YouTube videos. I don't know if they are good enough.

    I need to learn and make my code upto the accepted standards. Like how to write good code, what all things to use , how to improve security and all this. How are codes written by professionals at Google and Amazon. I don't have any idea how close random Indian YouTube videos are to their standards.

    Can someone guide me on how I can improve my coding skills. Thank you

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

    [UPDATE] I am a self-taught developer who just finished working on an app for controlling Philips Hue via Samsung Galaxy Edge panel.

    Posted: 07 Aug 2020 05:53 AM PDT

    [UPDATE] I am a self-taught developer who just finished working on an app for controlling Philips Hue via Samsung Galaxy Edge panel.

    OP: https://www.reddit.com/r/androiddev/comments/hzjuu9/i_am_a_selftaught_developer_who_just_finished/

    Galaxy Store: http://apps.samsung.com/appquery/appDetail.as?appId=com.nilstrubkin.hueedge

    Screenshots of the app

    I would like to thank every person that has participated in the beta testing of my newly created app. The beta app has reached over 150 downloads just over a couple of days. I have received an impressive amount of feedback from the users. After some issues with the approval, I am now releasing it out of beta, as the Samsung Galaxy store has just approved my submission.

    Feedback

    I have received many positive and insightful comments and suggestions all of which I have read and noted down. I have tried to refine the problematic areas and eliminate the bugs. I've rewritten large chunks of code in order to implement the latest and greatest libraries (Moshi + OkHttp) and make it easier for anyone to understand my code.

    Bugs

    The most common problem was the text size being too big or too small on the buttons, some users also reported the text or symbols being uncentered and unaligned. Both issues were addressed.

    Some users reported issues with the scroll list of the edit activity. Both the scroll and the associated Drag&drop action were refined. It now has haptic feedback (with the ability to turn it off).

    Some users reported issues with buttons not registering when pressed. I have improved the communication with the bridge which should fix that. I have also added haptic feedback (with the ability to turn it off).

    Features

    I have improved the sorting of the buttons in edit activity. They now are not just alphabetically sorted, but first and foremost by type of resource. All your lights, groups, and scenes are now easier to find.

    Ability to switch symbols indicating on and off states to words "On" and "Off"

    As you might have noticed when long-holding on a button, you enter the adjustment menu. The color and brightness options reflect the current color of the light selected. The rooms and zones now do the same (with some reservations for API limitations).

    The adjustment menu as well as the refresh function are now described in the setup's final screen.

    Open-Source

    Even though the app is published to the Galaxy Store for the price of 2$ I decide to keep it Open-Source. If you want to create a similar app to control some other type of equipment, just do it. I will also gladly take any feedback on my code.

    Source: https://github.com/nils-trubkin/Hue-Edge

    Conclusion

    This app turned out great and I feel confident enough to release it. I will still take any feedback and suggestions to further improve the app.

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

    Using `ContentProvider` to receive context in your library.

    Posted: 07 Aug 2020 01:22 AM PDT

    Was curious about how Picasso.get() works so I took a look at the main classes it has. (in Github). I noticed that the Context is received using a ContentProvider. For a library, this is very cool so that you don't have to ask for the context on the clients app side. However, I want to know, is there any risk, problem, something you should care about with this approach? If it's safe, why are still a lot of libraries asking for a context?

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

    Are there APIs that allow devs to replicate Google Translate's "brush over the words to translate" feature?

    Posted: 07 Aug 2020 02:12 AM PDT

    To those who aren't familiar with Google Translate: there's a feature where you take a picture of text (e.g. a road sign or a book), and you use your finger to "paint over" the words you want to translate.

    Are there ways to replicate this in an app? Are there APIs for this?

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

    AndroidBites | Understand Accumulator Pattern Before You Regret.

    Posted: 06 Aug 2020 08:12 PM PDT

    How would one demo an android app on a portfolio? Are there better options than screenshots?

    Posted: 07 Aug 2020 04:11 AM PDT

    Hi all, I'm curious how most people share their work.

    Having static screenshots seems like it isn't very interactable (compared to deploying a front-end site and having a link in your portfolio to xyz.com), and asking people to download an app just to see what it does seems like too much to ask.

    Is there an online emulator that can be used to demo mobile apps?

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

    Anyone felt like paging3's RemoteMediator are overly complicated?

    Posted: 07 Aug 2020 07:52 AM PDT

    I've been checking out samples and seems like the implementation is complicated. You need to save which page is the specific item was in to a database just to be able to use it. For a network+db implementation, wouldn't it be easier if RemoteMediator receive the page_id as parameter that the network should load for and return whether success or error on that page instead of having to calculate the page all by ourselves. I get that there's more flexibility and extensibility with current approach but would be nice if there's easier approach to this.

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

    Return Early Pattern

    Posted: 07 Aug 2020 07:41 AM PDT

    Flutter fast code

    Posted: 07 Aug 2020 07:13 AM PDT

    Is there any free API that can fetch me all the series available on online steam platform such as Netflix, Amazon Prime?

    Posted: 07 Aug 2020 06:05 AM PDT

    Android 10 EACCES (Permission denied) issue

    Posted: 07 Aug 2020 05:42 AM PDT

    I have updated my app to API level 29 so it broke my image picking mechanism. Eariler everything was working fine. Now when I searched over forums/stackoverflow I came to know that I have to migrate to scoped storage framework in order to make it work. I found 2 things so far 1. opt out of scoped storage 2. Read the stream and write into cache directory so that my app can access it.

    My question is that is it mandatory to copy the file for using it. If yes I'm afriad to use this approach as it will consume lot of time because my app uses large videos which we upload to server.

    Is it possible to use this framework to just read the URI of image/video without copying to cache directory ? Did anyone worked on it ?

    for reference I followed these articles https://developer.android.com/guide/topics/providers/document-provider https://medium.com/@sriramaripirala/android-10-open-failed-eacces-permission-denied-da8b630a89df https://issuetracker.google.com/issues/130494105

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

    Is there an API for the quick actions in the power menu of Android 11?

    Posted: 07 Aug 2020 05:26 AM PDT

    In beta 3 it's possible to change the app which is displaying it's quick settings in the power menu. Is there an API for this out yet?

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

    Install Google Play Store in an Android Emulator

    Posted: 07 Aug 2020 04:40 AM PDT

    When using offline first + domain driven design + Clean Architecture where should implement mapping logic from DTO to Room Entity?

    Posted: 07 Aug 2020 12:53 AM PDT

    This is a design question rather than coding one, i asked the same question in SO, i don't know if this question is suitable to post here, if not feel free to improve it.

    1. When implementing offline-first/last with DDD, and clean architecture where should mapping from DTO to Entity(Room or any database) happen? From Entity to model that will used by UI is implemented in a UseCase class but i'm curious about this one, should be in remote data source or inside repository?
    2. Isn't implementing mapping and offline logic inside repository an anti-pattern?
    submitted by /u/SmartToolFactory
    [link] [comments]

    How can we use existing styles in styles.xml in Jetpack Compose? Or even is that possible?

    Posted: 06 Aug 2020 10:15 PM PDT

    Kotlin JSON serialization crash course

    Posted: 06 Aug 2020 02:02 PM PDT

    Simple one-liner ViewBinding in Fragments and Activities with Kotlin Delegate

    Posted: 06 Aug 2020 11:38 PM PDT

    Android 10 Ui Kit

    Posted: 06 Aug 2020 11:35 PM PDT

    Hello,

    First i want to say that i'm new the the Android ecosystem, and dont know a lot about it.

    But i'm trying to make an Android 10 Ui Kit, and just want to know what you think are the most important components, design wise, when you are building you apps?

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

    Android 11 final Beta update, official release coming soon!

    Posted: 06 Aug 2020 10:18 AM PDT

    Sorry for silly question, but how to I get my money out of my Google Play console?

    Posted: 06 Aug 2020 09:04 PM PDT

    I have a little over $2k in my summary for my app... but cant for the life of me figure out how to get it.

    Thanks in advance for any help!

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

    How do apps like swagbucks / inboxdollars get away with reward ads for money/ currency

    Posted: 06 Aug 2020 07:08 PM PDT

    So I was thinking of making an app where for every 15 video ads you watch you get currency that you redeem for 1$ to your PayPal or 1$ gift cards and since there's no apps like this in my country I thought this was a good idea until I found out it's against tos, then how do apps like swagbucks get away with it?

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

    I'm 100% serious, if I made an alternative app store how many of you would put up your apps in there?

    Posted: 07 Aug 2020 07:40 AM PDT

    If you/your organization are absolutely seriously 100% in, then send me a private message with this format

    Email: abc@xyz.com Play store Dev link: https://play.google.com/store/apps/developer?id=Your_Dev_Id 

    There's 150k subs in here. If I get 500 DMs, I am 100% serious, give me two weeks and I'll create an MVP and reach out to you all to start putting your apps in there. Within one month we can launch an alt store.

    We'll build our own rules. The app store code itself can be FOSS. Here's how the pricing will work.

    • CDNs cost pennies
    • Google makes ~$30Bn revenue (>$20Bn profit) from play store each year (sauce).
    • No restrictions on payment providers. Use stripe or paypal or bitcoin or whatever you want.
    • I will charge you directly on the bytes distributed for your APKs. (Like, say 10 cents per GB or a tiny margin on top of CDN costs That would be like Google charging 0.5%.

    Whatever details or obstacle, we'll figure it out. We can make a better world than Google. The bigger the fish you are, the more momentum we can put behind this. But everyone will be welcome and treated fairly, indies included.

    For some context: I have quit my job, I have 2 years of savings/runway and I am looking to start a startup. I am a backend + android dev and itching to take a swing at Google where it'll actually hurt. No silly petitions and social media drama, this is the real deal. Show me that you're with me and I will dedicate every waking second to ensure that all of you can make a better living outside the shadow of the monopoly that haunts our existence.

    submitted by /u/ulterior-motives
    [link] [comments]

    Best way to monetize app through ads?

    Posted: 06 Aug 2020 05:04 PM PDT

    I used Admob and they sent my account to ad limit after the app started getting downloads.

    Used Mobup and it wasn't showing the mediated ads. Learnt I still had to download various SDKs of the various ad networks into Android studio before they can be shown in the app.

    Currently using Facebook Audience Network and fill rate is horrible though ECPM looks great.

    Which ad network or ad mediation or plugin can I use to get the best of my app without installing different SDKs for different mediated ad networks (I will only need to install the ad network/mediation network's SDK)?

    Please help.

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

    Smear phishing: a new Android vulnerability

    Posted: 06 Aug 2020 10:11 AM PDT

    No comments:

    Post a Comment