• Breaking News

    Friday, January 31, 2020

    Android Dev - Weekly "anything goes" thread!

    Android Dev - Weekly "anything goes" thread!


    Weekly "anything goes" thread!

    Posted: 31 Jan 2020 04:40 AM PST

    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]

    GitHub - mohammadima3oud/Complete-Google-Map-API-Tutorial: Learn How to use Google Map API for Android from Basic to Advance with complete examples.

    Posted: 30 Jan 2020 11:42 PM PST

    Takeaways comparing Flutter to Jetpack Compose

    Posted: 31 Jan 2020 07:42 AM PST

    Bottom Nav or Tabs

    Posted: 31 Jan 2020 05:03 AM PST

    Do you guys and girls prefer bottom nav or tabs? They're both ergonomic forms of navigation, but bottom nav(for Android at least) doesn't look right because it's stacked on the system navigation. I personally prefer tabs, but so many popular apps use bottom nav. Thoughts?

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

    Kotlin Scope functions made simple

    Posted: 31 Jan 2020 08:26 AM PST

    Is the compression performed on an app bundle guaranteed to be lossless?

    Posted: 31 Jan 2020 03:17 AM PST

    I just did an update and users are getting errors that could only make sense if lossy compression was being applied to my asset files.

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

    Play Store finally doesn't cut text on weird places of the "what's new" section

    Posted: 31 Jan 2020 05:09 AM PST

    Remember this:

    https://www.reddit.com/r/androiddev/comments/dhuecz/play_store_now_concats_the_start_and_end_of_your/

    ?

    I've noticed that now it doesn't occur anymore and is officially fixed by Google. I've tried on multiple apps on the Play Store.

    So, you don't have to worry about this anymore :)

    submitted by /u/AD-LB
    [link] [comments]

    Reactive Paging and Loading based on the usage of Unidirectional Data Flow pattern.

    Posted: 31 Jan 2020 04:19 AM PST

    Cross-device data synchronization design question

    Posted: 31 Jan 2020 08:30 AM PST

    Hi, I'm developing an app and am looking for some insight on an architecture that will help me sync data across devices/platforms. I have a few somewhat unique requirements:

    • App should have no login
    • Data entered into the app is unique to a single user and never viewed by anyone else
    • When a user installs the app on either Android or iPhone all of their data should be stored only in a local SQLite database or some other datastore (e.g. Realm.io) on their phone
    • A user may upgrade to a paid membership at which time they have the option to sync their data between all their devices (Android/iPhone/iPad and in the future a website). I would like to keep a copy of the data on each device for the eventuality of.....
    • A user may stop syncing between devices at which time a local copy of whatever data is on each device remains intact.

    My thoughts right now are to have a local Realm database that comes with the app install. When a user upgrades I will create a unique identifier and hidden password stored on the device which I will use to associate them with a synced Realm in the cloud, without needing to provide a password themselves.

    At upgrade time I will copy the local Realm to the synced Realm.

    If they want to link a new device they will have to read a QR code from their master device, which will give them the unique identifier/password combo used to connect to their cloud-based Realm. I'm going for a similar experience to how apps like Signal or WhatsApp work.

    A few of my questions/concerns:

    • Is there a better datastore and syncing option than Realm, like another provider, or some way to do this with pure SQLite and running my own sync server, without writing a ton of complex transactional data merging code?
    • How do I go about keeping a local copy of data on each phone, that way when someone downgrades all their data is simply on their phone?
    • What is the best way to authenticate someone to a cloud data store without requiring them to have a username and password? (e.g. UUID or token)

    Thank you very much!

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

    How can I do AsyncLayoutInflater onCreate

    Posted: 31 Jan 2020 07:16 AM PST

    I wrote my question here before. Is there anyone to help
    https://stackoverflow.com/questions/60006139/asynclayoutinflater-oncreate

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

    [Android Studio/Kotlin] Linting is Complicated? Am I doing this right?

    Posted: 31 Jan 2020 06:35 AM PST

    (I'm new to Android dev with a background in web dev.) I've been trying to implement a linting situation for our teams new project and there seems to be a lot of pieces involved. [In web dev I've just used 'prettier' w/ VS Code]

    Our goal is to control standard kotlin formatting/code styles by a command line script (so we can run it CI), w/a preferred action of being able to have Android Studio automatically format/fix the files.

    From the way I'm looking at it, there are four pieces involved in this equation (It's been surprisingly hard to understand how all these pieces fit together):

    1. Android Studio Code styles
      seems to be what rules are used w/`Reformat Code`
    2. Android Studio Linting
      can be run w/command line; hard to figure out how to customize/better see what the rules are. Seems to be a list here(https://sites.google.com/a/android.com/tools/tips/lint-checks) which can be configured in lint.xml but... I'm assuming these rules are fine as is, and we're going to use this check, but just not going to configure unless we disagree w/something that is yelling.
    3. Android Studio Inspections
      easy to configure, but don't seem to relate at all to what happens when running `lint`
      These seem to be the rules that are applied when running `Analyze > Code Cleanup`
    4. Detekt (w/ktlint formatting),
      seems to be the most commonly used Code Analysis for kotlin, and super thorough from a smells perspective (which seems very useful)

    I don't like having to mirror the configs for detekt w/Code Styles + Code Inspections. :

    It seems like I need to do this in order to get the "automatic updates" to work properly.

    • I can run `Reformat Code` and `Code Cleanup` and they automatically update the file(s) in a useful manner
    • I am using the detekt plugin, and it has a command in Android Studio called "Auto Detect by Detekt Rules" which seems to just auto correct the formatting rules. This seems fine, but looking further it doesn't help me in some useful situations like breaking up long function signatures, for example.

    We have all these files in source control to keep us on the same page:

    • codeStyles/Project.xml
    • inspectionProfiles/Project_Default.xml
    • detekt.xml (config for anyone who uses detekt plugin)
    • detekt-config.yml

    Is this a normal way that "Android dev" lints? It seems SUPER complicated. Maybe just initially while you are configuring things to match?

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

    Google Play Store listing experiments, "needs more data", should I really wait?

    Posted: 31 Jan 2020 06:23 AM PST

    I sometimes run experiments changing the app icon, and usually within a few hours you can see an icon 30% or 40% better than the other, but google says it needs more data.

    Does anyone ever noticed a change on this?

    Should I really wait or just consider one better than the other already?

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

    Now in Android: The podcast

    Posted: 30 Jan 2020 12:28 PM PST

    Alternate android stores

    Posted: 31 Jan 2020 01:35 AM PST

    This has been asked many times before but much of the material that could be found was more than 5 years old so wanted to get latest update on how is the experience publishing on SlideMe and Samsung Stores in particular? Issues of payment and refund, apk integrity (read Amazon changes dev's apk on their own so...), does it affect your publisher status on other stores or any other specific issues.

    Also if anybody can relate a positive experience with any other store or make any recommendations they are most welcome.

    Thanks in advance.

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

    Need help with implementing Design library

    Posted: 31 Jan 2020 05:03 AM PST

    I'm kinda new to the world of android development. I need help with implementing design library, that would look something like this:

    implementation 'com.android.support:design:28.0.0'.

    this is showing an error. I'm running android studio version 3.5.3.

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

    Good resourcesLearning Java for app development(i already know C++)

    Posted: 31 Jan 2020 04:23 AM PST

    Can someone please tell me where can I learn java when I already know C++?

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

    Add 'Play in VR' option to an image

    Posted: 30 Jan 2020 10:23 PM PST

    Hey devs, I'm developing a Museum Gallery app which will play videos and images in VR. These are the problems I'm facing:

    1) There are no online tutorial on how to open a images in VR in Android Studio (like if I click on a VR icon, one specific image will open in standard VR mode). How to do this?

    2) I can ask a user to import images. Is it possible to arrange those images in 3D space which can be played in VR?

    I'll be grateful to the dev who will help me.

    Thanks for the help.

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

    Some store named Catappult is redistributing my apps without permission

    Posted: 30 Jan 2020 08:06 PM PST

    This isn't some piracy site. They seem to be presenting themselves as a legitimate store. They proudly sent me automated emails to tell me that two of my free apps are being distributed on their store. I had never heard of them.

    Isn't this a copyright violation even though the apps are free on Google Play? Honestly, I'm probably going to ignore it because they are probably doomed to fail, but if a major player did this kind of stuff, it could create big problems for developers. You'd have to support users without knowing how they got your app. They could be stuck with an obsolete version and emailing you about it. They might be using it on a non-GApps device so they aren't being served ads. etc.

    Plus, they even have the gall to name themselves after an absurdly inferior siege weapon.

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

    View focuses to Recyclerview after scrolling frament

    Posted: 30 Jan 2020 09:05 PM PST

    I have a recyclerview on first fragment and when I scroll to 3rd fragment and back, it focuses to the recyclerciew. I tried descendantFocusability="blocksDescendant" but it still happens.

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

    [Question] Why can't developers force 1/30" video?

    Posted: 30 Jan 2020 04:38 PM PST

    In apps like Snapchat and Instagram, if the lighting is bad, the video framerate/shutter speed will drop to something low, especially on lower end devices, dropping to what looks like 1/2". Why is this so? Is there a limitation within the Camera2API to not set this limit and just control ISO like the native camera app? Is it harder to implement? I've noticed that on iPhone, these video limits are fine, and the ISO is cranked up.

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

    Help a noob out

    Posted: 31 Jan 2020 03:43 AM PST

    So I just got into Android Programming with Java on Android Studio and I'm planning to make an app which combines text files to make one PowerPoint Presentation. How would I go about making that?

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

    NEED APP DEVELOPER

    Posted: 31 Jan 2020 06:38 AM PST

    I WANT A APP DEVELOPER JUST BASIC WORK

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

    Extending and analyzing storyboards to prevent vulnerabilities in Android apps

    Posted: 30 Jan 2020 04:55 PM PST

    SeMA is a design methodology focused on preventing the creation of vulnerabilities in Android apps. It is based on extended storyboards (aka navigation graphs in Android world) and iterative refinement of storyboards (as done in model driven development). The methodology relies on static analysis tools to detect and flag errors during the design phase of Android app development.

    The pre-print providing details of SeMA methodology is available here. A proof-of-concept realization of SeMA in the form of tool support is available at https://bitbucket.org/secure-it-i/sema/src/master/. This tooling works with the navigation graphs in Android Studio, and it can help prevent the creation+detection of 49 known vulnerabilities documented in Ghera benchmarks.

    We would love to hear feedback from users of the tool and methodology!

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

    No comments:

    Post a Comment