• Breaking News

    Thursday, February 6, 2020

    Android Dev - Whats the point of "Developer Support" when you can't tell me what i need to fix to deploy an update? Directing me to the Developer Program Policies does NOT help - especially when the app has been live with no major changes.

    Android Dev - Whats the point of "Developer Support" when you can't tell me what i need to fix to deploy an update? Directing me to the Developer Program Policies does NOT help - especially when the app has been live with no major changes.


    Whats the point of "Developer Support" when you can't tell me what i need to fix to deploy an update? Directing me to the Developer Program Policies does NOT help - especially when the app has been live with no major changes.

    Posted: 05 Feb 2020 05:12 PM PST

    AndroidX security

    Posted: 06 Feb 2020 05:19 AM PST

    Android Dark Theme

    Posted: 06 Feb 2020 05:10 AM PST

    Motion Pattern (Gesture) Recognition AI: MiVRy

    Posted: 05 Feb 2020 09:58 PM PST

    Huawei, Xiaomi, Oppo and Vivo creating a Google Play Store alternative

    Posted: 06 Feb 2020 08:06 AM PST

    ARCore and Sceneform in Android — Performing Gestures and Collisions on Transformable Nodes

    Posted: 06 Feb 2020 08:22 AM PST

    How can I fix this type of crashes which are apparently not exactly related to my code?

    Posted: 06 Feb 2020 02:12 AM PST

    Live Data + Sealed Classes are an easy way to lose a reference to data. How can I go around this?

    Posted: 06 Feb 2020 02:08 AM PST

    It's becoming very popular to use sealed classes as a way to handle errors when observing LiveData. One common example would be to have a sealed class named Result with two Data Classes: Success and Failure.

    Success holds a reference to our data and Failure holds a reference to Exception.

    If we have a very simple data flow where we request some data once and wait for it to be read, this works very well. Our observable will either give us the Success state, after which we retrieve our value and draw UI - or it'll give us a Failure state, after which we handle the error gracefully and deem that we were unable to get the data for whatever reason.

    Now here are two relatively common cases from the top of my head when things can go wrong and I'm not sure how to handle them:

    1. We read some data and pass it to UI. User decides to refresh the view, but this time the network request fails for whatever reason. Now our LiveData<Result> turns from Success (which holds a reference to our previous data) to Failure (which only holds a reference to our Exception). We can decide to ignore the error in this case, since our UI is already drawn and we can tell the user that the refresh failed some other way (e.g. Toast) but we don't have a reference to our data any more.
    2. Our Repository read the data from both a local cache and a network request. We don't have a single point of truth implemented (we don't read all data from a database because we only cache data rarely) so the way it works is we read data from SharedPreferences and pass it to LiveData as a Result.Success. Observable is fired and UI is drawn. Now because the network request failed, just like last time, this Result.Success turns into Result.Failure again. The UI is already drawn, we don't really care that the request failed because we'd rather display outdated data than an error message. But again we lost the reference to our data because Result.Success was overwritten by Result.Failure.

    How should this be handled? I don't see how Sealed Classes are so popular and they seemed to have completely replaced callbacks when it's so easy to lose a reference to your data. Error states will simply overwrite any other states.

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

    Why is my Android virtual device so slow on Ubuntu 18?

    Posted: 06 Feb 2020 04:19 AM PST

    I've been developing an app for Android using the Pixel 3a Oreo virtual device. Every time I start up the device, my computer completely tanks, to the point of not being able to move my mouse for 30 seconds at a time. It only runs slightly better once set up, and practically freezes my computer for 5 minutes when shutting down.

    I followed these tutorials on VM acceleration fully and they don't appear to have helped.

    This isn't the case for my friends on Windows, and I'm sure it isn't the case for most people on Ubuntu, so do you know how I can make the device run better?

    I will gladly provide any information needed in solving this problem.

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

    CMake on Android Studio doesn't provide with error log?

    Posted: 06 Feb 2020 07:23 AM PST

    I'm currently working on a C++ project that can be built for Windows and Android. I use Visual Studio for Windows part and it lets me know what exactly is wrong in my CMakeLists. But all Android Studio shows me is just single line of ERROR: Cause: executing external native build for cmake, which doesn't help at all. How do I debug something like this?

    I googled a bit but all the answers are just about correcting what is wrong in the specific codes. What I want to know is whether I can get nice log messages or not, so that I can fix tons of problems I would encounter in future.

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

    Does view.ContextMenu no longer work?

    Posted: 06 Feb 2020 07:08 AM PST

    I wrote an app for work about 6 years ago and we haven't really looked at it since. I was asked to add some features to it and now with my new phone I noticed that some of my menus are drawn so small you can't read the text, but not all of them... I figured out that the ones that display correctly are ones I created myself and manage the layout manually, the ones that don't work were created as ContextMenu's.

    As far as I understand a ContextMenu manages it's own layout, and there is no way to override or specify this in code. All I do in the "onCreateContextMenu" override is set the title and add (textual) menu items.

    Is there a way to salvage this easily? I don't want to have to do something completely different... looking for the path of least resistance here.

    Thanks.

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

    Easily create beautiful app screenshots for the Play Store

    Posted: 05 Feb 2020 11:50 AM PST

    Easily create beautiful app screenshots for the Play Store

    Hey folks! Have you ever dreaded uploading screenshots when listing your app on the Play Store because they were annoying to make? I've had the same experience, so I decided to build a super easy-to-use tool to streamline making beautiful looking screenshots.

    It has support for the latest phones, like the Pixel 4 and Pixel 4 XL, Samsung Galaxy S10 and S10+, as well as smaller phone sizes like the Nexus 6P and 5X. You can customize a lot of aspects of the screenshot, such as font family, font size, background color, background images, etc. You can also save your screenshots directly in the tool, access them on any device, and edit them easily at any point in the future!

    It has a generous free tier and I'm continually adding new features based on users' feedback. Check it out at https://screenshotcreator.com, and let me know what you think!

    Here's a preview of some of the screenshots that you could make:

    https://preview.redd.it/b4x7r5lcs5f41.png?width=3726&format=png&auto=webp&s=073d68d6750cc3b57fee8cd412665e8822f5d4f6

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

    Is using closure in ViewHolder cause performance problem?

    Posted: 06 Feb 2020 02:38 AM PST

    inside the ViewHolder, i set setOnClickListener with lamda but lamda access outer scope object. When i use that closure, kotlin compiler create new object every time when i call that function. Is this approach cause any performance problem to recyclerview and is there any better way doing this?

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

    Which course to pick in 2020 for learning android development?

    Posted: 06 Feb 2020 02:25 AM PST

    I am totally a beginner and I know some java basics. While searching yesterday, I find out that people suggest Udemy course: The Complete Android Oreo Developer Course - Build 23 Apps!
    OR
    Android basics on Udacity. On the other hand, people say these courses are outdated and contain some topics or functions which are legacy.

    I am confused, I don't know what to do. I have to work on the university project and I still have 6 months. I will be spending 6 hrs each day for learning, but I really need to know that even if these courses are 4 years old, are they worth to start now in 2020? I hope I am not wasting my time on learning outdated courses since time is really short for the project.

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

    WorkManager 2.3.1 release

    Posted: 05 Feb 2020 12:13 PM PST

    "Wouldn't it be nice to use <style> for styles and <theme> for themes?"

    Posted: 05 Feb 2020 04:13 PM PST

    Data Storage and Flow in Android

    Posted: 05 Feb 2020 07:33 PM PST

    I've been looking to get into android development for years now just to make myself useful apps for work and home, but I'm a bit fuzzy on how to manage data.

    A bit of background: I'm a data analyst/scientist depending on your definition (I prefer the prior). I am usually only coding in VBA and SQL, but I pull out python for certain projects. I know the syntax of c# and java, but I've never used them outside of learning environments. I've never written a standalone exe outside of a visual basic class in college... in 1998 :( I work mainly in SQL server, power bi, and excel.

    That being said, I'm having a bit of a struggle conceptualizing data storage and flow for the android environment since data storage is variable and limited. So, for apps that store data like a workout or diet app, is the user data stored directly on the device, or is it temporarily loaded from some server? The same for game type apps like an RPG for example?

    I've seen that some store directly to text files on the SD card, some use the built in SQLite db. I've read there may be issues soon with data storage directly on a device as well. So, while I'm in the planning phase of my first app, I want to start off in the right direction with respect to both best practices and upcoming changes to avoid having to update due to deprecated methods or changes to the OS/privileges.

    Thanks in advance!

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

    What is the best best open source Android Scanner Library?

    Posted: 06 Feb 2020 12:32 AM PST

    Is there any android scanner library used cameraX and kotlin work like WeScan.
    https://github.com/WeTransfer/WeScan

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

    Bundletool and Gradle

    Posted: 06 Feb 2020 12:31 AM PST

    Is it possible to use bundletool from gradle scripts or just command line? (clearly I don't know what I'm doing :) )

    bundletool is the underlying tool that Gradle, Android Studio, and Google Play use to build an Android App Bundle or convert an app bundle into the various APKs that are deployed to devices. bundletool is also available to you as a command line tool, so you can recreate, inspect, and verify Google Play's server-side build of your app's APKs.

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

    Deep insight into APK file

    Posted: 06 Feb 2020 12:25 AM PST

    Recommendations for a Xamarin Android dev looking to possibly switch to Java/Kotlin

    Posted: 05 Feb 2020 01:34 PM PST

    So as the title reads, I've been working in C# for years now and do all my work in android using Xamarin Android. I also write in VB.NET for work, so I'm rather plugged into the .NET framework. I've been working on a hobby project for a little over a year (full-feature messaging app using Firebase) and I've gotten to a point with it where I want to add features but the libraries for Xamarin either don't work, or don't exist. I've been thinking about switching my project over to Java/Kotlin as that seems to be where most android development work is these days, and it seems like there's a lot more resources for building apps and learning about the tools available on the Java side.

    I'm a self-taught developer: I started by working on games using c# in Unity, and then went from there to Xamarin Android, as it seemed like a natural progression with Xamarin using c# as well. Now that I'm looking at Java, there's so many little nuances that are different that I'm getting a bit lost in the sauce. Does anyone have any recommendations for picking up the basics of Java/Kotlin, or any other advice in general (eg: of Java vs Kotlin, which is more useful/easy to learn)?

    Thanks for the help!

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

    So... how exactly did I violate the target audience and content section?

    Posted: 05 Feb 2020 10:39 AM PST

    Got hit with this randomly when I woke up this morning. What gives? How can a dictionary app that doesn't access the internet or show ads violate the target audience requirement? Swear words in the dictionary data itself? Lol.

    For now, I just went the "fuck it" route and just set everything to 18+, but honestly right now I'd much rather know what in my app or store listing caused the app to be flagged. Anybody got any ideas? The apk is available here: https://github.com/0xbad1d3a5/Kaku/releases

    submitted by /u/Rea-sama
    [link] [comments]

    Want to create my first app. Inventory Management.

    Posted: 05 Feb 2020 10:15 PM PST

    I'd like to create a tiny app, that has a single purpose, it scans Excel (or something else if possible) worksheet, shows the quantity of items, and has a minus and a plus close to the number, and if you click on them, the spreadsheet removes 1 or types -1 in another feel so it would calculate that we have 1 less after clicking a minus. Anywhere I should start? I've never developed for Android, but I know the very basics of python.

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

    No comments:

    Post a Comment