• Breaking News

    Sunday, January 16, 2022

    Android Dev - Update on ModernStorage

    Android Dev - Update on ModernStorage


    Update on ModernStorage

    Posted: 12 Jan 2022 08:11 AM PST

    Hi everyone 👋
    A few months ago, someone posted a thread on a library I've been working named ModernStorage. For the ones who haven't heard about it before, it's a library aiming to simplify storage interactions on Android. I've been working a lot on it with my colleague u/nic0lette, and after gathering some feedback and trying some experiments, I'm happy to share some updates about it.

    Initially, we started with two separate packages: mediastore for MediaStore interactions and filesystem for Storage Access Framework interactions. The first one was a simplified wrapper around MediaStore API while the second was implementing java.nio.File.FileSystem (API here). The main blocker for us was the requirement on API 26+ for java.nio. We tried to look for possibilities to bring it on older devices, but it was a dead end.

    While looking for alternative paths, u/nic0lette pinged me on an experimental filesystem API in Okio 3.x when it was in alpha that got my attention. I had the chance to chat with Jesse Wilson who is one the maintainer of Okio and he explained me in depth the spirit of the library and I was sold on!

    Fast-forward to today, I've deprecated the mediatore and filesystem packages and created new ones that work on API 21+ with the release 1.0.0-alpha03:

    • permissions to check storage permissions and soon to request them
    • storage to interact with files using the Okio filesystem API, which lets you read and write content of a file only using its URI, whether it's a MediaStore or a DocumentProvider (SAF) one, but also get metadata and folder file listing (Note: some methods aren't implemented yet)

    I wrote a sample app highlighting some use cases and I'm looking to create other packages to answer other storage-related needs.

    Now I need your help 🙏. The library is still experimental, but I want to shape it based on your feedback to make sure it's ready for the next version of Android, which will ease your migration with announced changes (like the Photo Picker. There are many features I want to implement, but I'm unsure how developers feel about them, please add your comment there 👈

    Thanks 🙏

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

    Form state management and validation library

    Posted: 16 Jan 2022 12:44 PM PST

    Hi! Lately, I have been working on a pure Kotlin library for form state management. It provides a small DSL for building your form data, manages its state and propagates any changes via StateFlow. It also consists of a validation module, which enables you to easily model your validation logic. Due to the fact that it is just Kotlin, you can use it with any UI system you need. Will be grateful for any feedback and constructive criticism!

    Link to the repo: https://github.com/boguszpawlowski/Chassis

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

    Portfolio ideas for first dev job?

    Posted: 16 Jan 2022 11:16 AM PST

    I'm currently looking to work in android dev and was hoping to get some project ideas that would help me land my first job.

    What sort of things are employers looking for in a portfolio?

    submitted by /u/yerba-matee
    [link] [comments]

    Are you experiencing problems with Android Studio?

    Posted: 16 Jan 2022 06:32 AM PST

    Are you experiencing problems with Android Studio?

    I installed Arctic Fox 2020.3.1 version, only rebuilt few projects and BAM!

    UPDATE: Reinstalling Android Studio from scratch doesn't help.

    Another productive day for me

    submitted by /u/Present-Effective-52
    [link] [comments]

    Work Manager or Services(foreground and background)

    Posted: 16 Jan 2022 07:06 AM PST

    What would you for recommend for background tasks. Google recommends using work manager for background work but some parts of the documentation also talks about services. when should you use what and what are the benefits?

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

    Local Notifications from Recyclerview Adapter, is it possible?

    Posted: 16 Jan 2022 02:55 PM PST

    I'm working on a military specific app, that displays a multitude of pdf references and guidance. In my app, there is a title, number, and certified date. If this certified date is newer, I'd like to display a notification to the user. When I tried implementing it before, it would only display upon scrolling of the recyclerview and often repeat notifications. This has been a huge request, but having problems implementing it. SO was no help, and have scoured google and github for similar methods.

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

    I made a Tampermonkey script that shows app total installs and release date on Google Play.

    Posted: 15 Jan 2022 11:40 PM PST

    Maximizing profits from banner ads

    Posted: 16 Jan 2022 04:35 AM PST

    Hi. Currently, my app has several activities. Starting from the main activity, I am already loading a banner ad. When I click the profiles button, another activity will be opened and it will load another banner. I am considering a redesign and will move the selection of profile to the main activity. Which is better in this case, loading a separate banner ad or keep one ad in main activity (the users will have more time in this ad)? Thanks!

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

    AndroidDev & WebDev Possible?

    Posted: 16 Jan 2022 02:05 AM PST

    I am a CS graduate and a freelance web developer. I want to learn Native Android Development aswell in order to be more employable, is this a good idea? Or should I just focus on one field.

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

    Questions related to android development on M1 Macs.

    Posted: 15 Jan 2022 12:55 PM PST

    Hi, anyone here using an M1 Mac for android development? I am particularly looking for users of the base M1 macbook air but generally any answers will be much appreciated.

    Till a few months back atleast, there was no native support for android studio on the m1 macs and there was no direct emulators. Has that changed by any chance by now? What's in pipeline? And what does your workflow look like on a m1 Mac as an android developer?

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

    App launcing anxiety.... Seeking advice...

    Posted: 15 Jan 2022 09:39 PM PST

    I have just completed my first ever Android App. Took 9 months to build! Fuuuh.

    Now I want to launch it but I am hesitant after viewing a video from Udemy (https://www.youtube.com/watch?v=Sfpcl4FX3TU&t=2700s) which says:

    • You only have one shot to launch your app! Make sure everything is ok!
    • On the first day, first week and first month your App is launched, Google will access the worthiness of your App. They will then SEO you based on user response. If you don't get many downloads/engagements in these first few days of launch, you will be put at the bottom of the SEO.

    This is my first ever app. So I want to get it right. Should I be worried? Any advice please? Like to hear your experience as well.

    Thanks

    BTW the app is available for open testing at https://play.google.com/store/apps/details?id=com.vlix.contacts

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

    How can I get the time interval between two actions and then wait this amount of time?

    Posted: 16 Jan 2022 02:38 AM PST

    Hello, I am new to android development.

    How can I get the time interval between 2 consecutive actions, specifically between MotionEvent.ACTION_DOWN and ACTION_UP?

    Also how can I wait for an amount of time? Is there a sleep or delay function which I can use?

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

    beginner here.

    Posted: 16 Jan 2022 06:02 AM PST

    Hi I'm not really seeking help to make an app, probably in future I'll ask .

    I'm here because I want to start developing games, I have an idea for one and it's actually similar mechanic to

    Five nights at freddys, but with my own universe and scenario. I know this could sound niche and a fan game is different from creating my OWN game. https://play.google.com/store/apps/details?id=com.scottgames.fivenightsatfreddys

    So I got a few questions here.

    1. What are you inspired by making something out of nowhere?
    2. How do you create models and make animations?

    I'll try to voice act everything myself, but I think it'll be having no purpose in it since it would sound monotonously and I don't think I would be satisfied in it.

    1. From where I can get voice sounds or in which program will help making my voice sound like this https://youtu.be/NBxbDoKaJhs ?
    submitted by /u/YEETpoliceman
    [link] [comments]

    Creating Speech to Text Application using Android Studio

    Posted: 16 Jan 2022 01:27 AM PST

    Hello there. Just want to ask. Anybody knows on how to create a speech to text application that comes with the additional features such as

    - save the recording/speech files

    - edit the speech files

    - download/share the speech or recording files whether by copy or share the link to the other social media etc.

    - exporting the recording/speech files into the user's device.

    FYI, I have made some research from the YouTube and google. Most of them only can create the speech to text application but without the additional features that i have mentioned above. If any of you have some any idea on how to solve this problem please let me know ASAP. At the same time, it would be very great if you guys can recommend me any videos or references that can be considered later on how to create this speech to text application.

    By the way, I am planning to use by using the Java Programming Language.

    Hope to hear from you guys soon.

    Thank you :)

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

    MakeEventsEasy library - implement events tracking smoothly

    Posted: 15 Jan 2022 01:52 PM PST

    Why we chose Telegram for team-app over Slack and Microsoft Team, and then moved away from it —…

    Posted: 16 Jan 2022 05:35 AM PST

    A cautionary tale about the mistake we did in using Telegram source code. This article can serve as insights and possibly a warning for those who are considering using it and also discusses a very capable open-source alternative

    https://medium.com/@jimbk/why-we-chose-telegram-for-team-app-over-slack-and-microsoft-team-and-then-moved-away-from-it-2b87012d2095

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

    Help! My internal test version is not available on playstore for testers

    Posted: 15 Jan 2022 09:44 PM PST

    background I am not a developer but an app owner. My developer used to handle the publishing of testing and release of production versions of the app in playstore. Now that my developer was not available I had created an upadate for the app with the help of another developer

    The problem I uploaded the apk for internal testing through playstore console. It showed an error that my app uses api level 29 and should be upgraded to level 30. But anyway playstore allowed me to proceed and I was shown a notification that the update is published in playstore for internal testing. But the internal test version is not shown to testers and they are still being able to download only the old version. What did I do wrong? How to make the internal test version available for the testers? Please help.

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

    Hot reload like flutter

    Posted: 15 Jan 2022 06:07 AM PST

    Can compose hot reload like flutter? It's real boomer to run the app again and again for every little change. I've tried the preview but its different than hot reload, no network and such, plus need to build anyway so the preview updated, any way to make compose hot reload?

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

    What is best way to prevent recreation of fragment when using bottom navigation?

    Posted: 15 Jan 2022 01:38 PM PST

    For example. I don't want to recreate same fragment and call it's api again n again when I revisit it through bottom nav tap, I'm not using navigation component.

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

    2022 Feedback on other stores (Huawei, Amazon, ...)

    Posted: 14 Jan 2022 11:48 PM PST

    If you have your app on an alternative store, except in China, is it worth it?

    I had some feedbacks but pretty outdated (before Huawei ban), I'm wondering if it changed anything or still "useless" to target those stores if you are not targeting China.

    What's the ratio of downloads or money are you making from them, compare to playstore?

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

    JetpackCompose Practice: Only Mutate Compose State Variable Locally

    Posted: 14 Jan 2022 09:07 PM PST

    Harsh truth about software development with respect to Android apps?

    Posted: 16 Jan 2022 04:56 AM PST

    Let me start with one example. In Google drive I have noticed that if we tap the 3 vertical dots icon near a file/folder rapidly, the bottom sheet dialog opens multiple times. So it means an app cannot be 100% perfect in each and every scenario.

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

    Room (SQL) query vs sorting in memory

    Posted: 15 Jan 2022 01:01 AM PST

    Let's say you have a list of objects data class User(val name: String, val age: Int, val height, etc....) stored only in a Room database locally.

    If you had to sort and filter a List<User>, would you query the database each time you filter or sort, or would you query the database once and sort/filter the value in memory? Why?

    Thanks!

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

    How would one impement private one-to-one messaging in an anonymous chat app?

    Posted: 15 Jan 2022 01:02 PM PST

    Has anyone heard of an app called Whisper? I'm trying to figure out how this app implements it's private chat features. So the way the flow works in this app is that there's no sign-in when you first open the app. The only thing it asks for is permission to get your location. Once you give permission for location, you have the ability to view 4 different tabs: Groups, Popular, Nearby, and Latest. Each of these tabs lets you view anonymous posts that each have text and an image behind it. You can tap a post and it gives you the option to reply to the post. Replies just create another public post attached to the original post. I get how that works. However, there's another option when you tap a post that let's you privately message the original poster. What I'm wondering is how private messages are being sent between anonymous users when there's absolutely nothing to uniquely identify them. There's no unique username or id. It's an anonymous chat app and the app doesn't ask for your number either. The private chat feature in the app also includes the ability to upload images and block users. I do know one thing. That the private messages that are sent and received are persisted with Room. If you delete the app and reinstall you lose all your private messages and the same if you clear storage. I'm just really curiuos if this feature is actually really complicated or if it's really simple and I just haven't thought of it.

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

    How I made $2.44 with Google AdMob before my account was suspended

    Posted: 14 Jan 2022 02:09 PM PST

    What do you consider a good automation setup in Android and why?

    Posted: 15 Jan 2022 11:12 AM PST

    There are many options and many I have used but what can be considered good these days?

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

    No comments:

    Post a Comment