• Breaking News

    Friday, July 31, 2020

    Android Dev - Weekly "anything goes" thread!

    Android Dev - Weekly "anything goes" thread!


    Weekly "anything goes" thread!

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

    A basic game(?) completely drawn on canvas using Custom Views

    Posted: 30 Jul 2020 08:16 PM PDT

    My app gets a lot of 1 star reviews from non-English users because they don't understand what it is. Any suggestions on how to avoid this?

    Posted: 31 Jul 2020 04:35 AM PDT

    I've been maintaining a moderately successful app over the past few years that most users love. 99% of my English users rate it at 5 stars and say they love it.

    But then I have a lot of non-English (mostly Brazilian) users that download the app not fully understanding what it is. So they end up leaving a 1 star review with comments like "worthless" or "garbage." Over time this has gradually lowered my overall rating.

    I don't want to limit what countries I make the app available to as I have a lot of non-English users that do understand the app and love it. Plus non-America sales are about 33% of my income.

    I'm also hesitant to add a disclaimer in Spanish to my store page because of the impact it may on on SEO.

    Can anybody suggest how I might avoid this problem? Thanks for any ideas!

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

    How to use Composite builds as a replacement of buildSrc in Gradle

    Posted: 31 Jul 2020 03:48 AM PDT

    Nearby Sharing Feature Now Available on Windows via Chrome

    Posted: 31 Jul 2020 07:08 AM PDT

    Nearby Share, Android's answer to Apple's AirDrop sharing feature, has now reportedly been rolled out to Windows users via Google Chrome. It allows users to share files between compatible devices wirelessly and instantly. Last month, the Nearby Share feature was rolled out on the Google Play Services Public Beta Program. Soon after, Chromebook users also got access to the feature as it was reportedly rolled out to Chrome OS. Now, it appears that Windows user can use Nearby Share on the Chrome Dev or Canary channels.

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

    Neumorphism Library for Android.

    Posted: 30 Jul 2020 11:21 PM PDT

    Neumorphism Library for Android.

    Neumorphism Android

    A clone of the CRED app as a demo

    There are already a few libraries to achieve Neumorphism on Android. But I've added a Custom ConstraintLayout. So you can directly use this ViewGroup or as a normal CardView. The ConstraintLayout can give you the effect on each of its children, so you don't have to manually wrap each child with the card view.

    This is my first ever library. So, please try it out and am open to suggestions.

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

    Hey guys, what is your opinion on optimizing on the go?

    Posted: 31 Jul 2020 08:14 AM PDT

    I'm very new to android dev scene, and one thing that I find that keeps bugging me while coding is wondering there's a better way to do xyz task and if I don't use that now I'll be in a mess in the future. So wanted to ask the more experienced people here, what do you guys do? Do you guys seek out the latest and best practices as you code or is it really like if it works then it works regardless of the fact you found the hows in a 1786 stack overflow comment and you relax?

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

    Failed an android exam for a job. Would like to ask what I could've done better.

    Posted: 30 Jul 2020 09:34 PM PDT

    Here is the github link for the project:
    https://github.com/gmatcat/EnglishCentralExam

    This was the positions' responsibilities for Android Developer

    • Design and develop Android mobile applications using an agile and test-driven development process
    • Unit test code and build instrumented tests
    • Implement custom native user interfaces using latest Android programming techniques
    • Document and maintain design specifications, source code, and archives for new applications and ideas
    • Perform individual project components within the entire development lifecycle including implementation, testing, deployment and maintenance
    • Work from UI/UX requirements, APIs, mockups to build functional, high-performance Android phone and tablet apps

    The exam details:

    (CRUD person) Given a pre-defined fictional product, account schema, develop a shopping cart

    proof of concept application that should show the following key elements:

    ● Show product listing

    ● User can select a product

    ● User can add product to shopping cart

    ● Shopping cart shows the currently added products

    ● User can check out, simulates fake payment and a success page.

    and use these libraries ( I used all of them )
    Butterknife, RXJava, Dagger, Retrofit, GreenDAO

    The notes I sent them:
    Inserted mock product/user data on LoginActivity onCreate and on main thread since pre-defined data is required.
    Created mock retrofit implementation on Presenters and commented it since data source is from GreenDao.
    GreenDao DB architecture may not be the best since it's my first time using it.
    Tested with real device Vivo1811.
    No handling of DB upgrade, shopping cart delete, choose payment method, create account, edit account details.
    No unit/instrumented tests
    15 products in total, separated in three categories.

    No language was specified so I used native Java. They told me "The final rating of your exam is on the average, not bad but also not that impressive. The open position that we have will undergo a few days of training since we currently have a big project that has to be done as early as possible. We also made some changes with the requirements for this position like senior level with more than 5 years of work experience in android development." I have only 2+.

    I'm not able to put on the most effort since I was also working. I also did not put much into design as I would assume they have a UI/UX designer.

    They gave me 7 days to work on it but I sent it only after 5 days because I think it was already "good enough" and wouldn't like someone getting ahead of me for the position. In hindsight that was probably a mistake as I would have more time making unit tests. They also did not pull my project which means they just checked the code and the screenshots I sent them.

    I felt as though I have become too comfortable since I already have a job at a small company and have plateaued in the last year or so. How would someone with 5 years of experience in Android development do this project with 7 days? I will truly appreciate any feedback that can be done to improve my code. Thank you very much.

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

    Improving inter-activity communication with Jetpack ActivityResult

    Posted: 30 Jul 2020 05:04 PM PDT

    Google has released a new way of passing data between Activities/Fragments which replaces the widely used onActivityResult. It's called ActivityResult.

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

    Android Studio 4.2 Canary 7 available

    Posted: 30 Jul 2020 05:04 PM PDT

    AdMob strange reporting since 27 July: Clicks with no Impressions

    Posted: 31 Jul 2020 05:23 AM PDT

    Since 27 July, my AdMob reporting shows that in some countries (mostly Japan, Australia, South Korea, Taiwan, New Zealand) there are placements (Banner and Interstitials) with Zero Impressions but with a positive number of Clicks (and they generates a revenue too).

    Anyone else facing this?

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

    What STB emulator is there for STB apps?

    Posted: 31 Jul 2020 04:46 AM PDT

    We develop an STB app, we run it on actual STB boxes for testing, the boxes are slow and the development experience is so bad.

    Many options on the STB are only accessible through a remote control. We use windows 10. We tried many Android emulators and bluestacks and whatnot, all of them boot the app but they boot it in phone layout, we're looking for

    • Free STB emulator that can be used for development and run on windows 10
    • The STB should open the app in STB layout, as if we're using an actual STB BOX
    • The STB should map some keyboard keys as if they were TV remote control keys, such that everything we can do on an STB, can be done on the emulator
    submitted by /u/lynob
    [link] [comments]

    Restrictions on SafetyNet API usage?

    Posted: 30 Jul 2020 01:56 PM PDT

    Here's my POV, please please please comment below if you disagree: The SafetyNet API makes sense for very specific use cases, like TAN generation. For other reasons (general online banking that can also be used via a website, Anti-Cheat or whatever McDonalds is doing), not so much. Specifically Anti-Cheat should imo be implemented server side, since if you can't detect a cheater based on gameplay, is he even cheating?

    Proposed solutions: 1) Force apps to go through rigorous verification where only apps with valid use cases are allowed to get API access because the problem (for example tan generation or NFC payment) can't otherwise be solved securely and where broken security would have serious implications. People abusing coupon codes because of client side spaghetti code or cheating in games aren't severe issues at all and if there's "one API call to rule them all", this is often used as an escape to avoid fixing the actual design flaws, i.e. "Android assured me it's running on safe hardware, therefore I can store my user's password in plain text because tHe aPP DaTA FoLDeR iS sAfE, RiGhT?" 2) Since option 1 is probably not realistic in practise, what about creating a play store policy like "you aren't allowed to abuse the api (+ examples), if enough people complain we'll look at your case"

    If it was just for McDonalds and Pokemon GO, I wouldn't care as much, but I doubt it'll stay that way. Navigating around one "dev-hostile" app can be done, but 2, 3, 4 or more? It doesn't take many apps before it's impossible to dailydrive an unlocked phone (mind you, not even rooted, just unlocked for the purpose of full backups and actual recovery with the option to install another ROM for a day because why not).

    What do you guys think about all of this? Should there be a screening process for API access? Other solutions? Is this not an issue at all? I'm actually curious to hear your thoughts!

    EDIT: Quick rundown of safetynet: Devs get an API that they can use to check if the device has been tampered with, if the system partition has been modified etc. Custom ROMs fail this by default since you need an unlocked bootloader for that. SafetyNet doesn't give much insights on how secure the device is, just if it has been tampered with. For example, an old used phone with stock firmware and potentially missing security patches will most likely pass the test, while a new phone with no modifications aside from TWRP for backup purposes will fail it.

    View Poll

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

    Managing files associated with SQL entries

    Posted: 31 Jul 2020 01:00 AM PDT

    I have a room table with list of paths to photos located in internal storage. When I delete an entry I obviously want to delete the actual file. Should the repository be responsible for that? If not, how should I structure this? Should I have another injected singleton that would manage the deletion on its own? Thanks for all the responses!

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

    Why Do Applications Need To Be Auto Updated To Maintain Users?

    Posted: 31 Jul 2020 12:21 AM PDT

    What’s the easiest way to bypass android FRP on Lenovo tablet?

    Posted: 31 Jul 2020 12:00 AM PDT

    Androibites | Overcoming limitations of positional Destructuring!

    Posted: 30 Jul 2020 09:36 PM PDT

    Developing for Android 11 with the Android Emulator

    Posted: 30 Jul 2020 01:17 PM PDT

    Android Studio State with Apple's Developer Transition Kit ?

    Posted: 30 Jul 2020 10:02 AM PDT

    Did anyone have any news about the state of Android Studio performance on Apple Developer Transition kit ? Building time , Emulator performance...etc Also i know that most of the apps that doesn't ported to work natively with the new ARM Architecture will be emulated using Rosetta 2 but do we know anything about Jetbrains/Google plans on this part ? kind of so excited that the new ARM Architecture would make Android Studio faster

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

    No comments:

    Post a Comment