• Breaking News

    [Android][timeline][#f39c12]

    Monday, May 2, 2022

    Weekly discussion, code review, and feedback thread - May 02, 2022 Android Dev

    Weekly discussion, code review, and feedback thread - May 02, 2022 Android Dev


    Weekly discussion, code review, and feedback thread - May 02, 2022

    Posted: 02 May 2022 05:00 AM PDT

    This weekly thread is for the following purposes but is not limited to.

    1. Simple questions that don't warrant their own thread.
    2. Code reviews.
    3. Share and seek feedback on personal projects (closed source), articles, videos, etc. Rule 3 (promoting your apps without source code) and rule no 6 (self-promotion) are not applied to this thread.

    Please check sidebar before posting for the wiki, our Discord, and Stack Overflow before posting). Examples of questions:

    • How do I pass data between my Activities?
    • Does anyone have a link to the source for the AOSP messaging app?
    • Is it possible to programmatically change the color of the status bar without targeting API 21?

    Large code snippets don't read well on Reddit and take up a lot of space, so please don't paste them in your comments. Consider linking Gists instead.

    Have a question about the subreddit or otherwise for /r/androiddev mods? We welcome your mod mail!

    Looking for all the Questions threads? Want an easy way to locate this week's thread? Click here for old questions thread and here for discussion thread.

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

    Weekly Who's Hiring Thread - May 02, 2022

    Posted: 02 May 2022 06:00 AM PDT

    Looking for Android developers? Heard about a cool job posting? Let people know!

    Here is a suggested posting template:

    Company: <Best Company Ever>
    Job: [<Title>](https://example.com/job)
    Location: <City, State, Country>
    Allows remote: <Yes/No>
    Visa: <Yes/No>

    Feel free to include any other information about the job.

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

    Learn Android with Jetpack Compose (no programming experience needed!)

    Posted: 02 May 2022 10:02 AM PDT

    Which Cpu arhictecture should be my wearOs apk?

    Posted: 02 May 2022 05:05 PM PDT

    I have developed a wearos app and generated 2 apks (first not bundle). Should i publish both arm64-v8a and armeabi-V7a apks ? what are the wearOs watches today having architecture? I support only wearos 2.0 and 3.0 not older versions.

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

    What's the difference between singletons with lazy initializations vs singletons with Hilt annotations?

    Posted: 02 May 2022 02:33 PM PDT

    For example, let's say you want to create a singleton object in Kotlin. You can add the @Singleton annotation above your object and then inside use the by lazy property to initialize your variables. The other way you can do it is with Hilt annotations where instead you add @Module and @InstallIn(SingletonComponent::class) above your object and then inside create a function to return your initialized variables with the @Provides annotation above the function.

    What is the difference between the two approaches and which one should you pick (if there is a difference)?

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

    i just completed my first "real project"!

    Posted: 02 May 2022 02:19 PM PDT

    what's up guys, I've posted a few weeks ago about being a self-taught androiddev and feels like im not ready yet to apply for Android Developer role and i got som pretty motivational replies that posted my confident THANK YOU

    i started my journey to build my portfolio, last 2 weeks I've been building this cool project QR CODE GENERATOR that uses coil library to send api request to generate QR bitmap

    i wanna share the project with you guys maybe get some reviews/advices for improvement from senior fellows

    GitHup repo: https://github.com/MathRoda/QR-Creator-App

    thanks guys again i really appreciate the love

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

    A survey about refactorings

    Posted: 02 May 2022 10:42 AM PDT

    7 things to keep in mind while building jetpack composable’s.

    Posted: 02 May 2022 01:21 PM PDT

    Do virtual office addresses work for Google Play for indie developers?

    Posted: 01 May 2022 07:48 PM PDT

    So, I'm an indie developer, and I want to sell apps including with ads and subscriptions. Obviously, I don't want to provide my personal home address as public. I know that we are required to submit an address to Google Play in private, I have already done that.

    I'm talking about the one that appears in public on an app page. I learned about "virtual" office addresses, where I can sign a contract with a company, and get what looks like a legal mailing address. I'm wondering if Google (and the law) is ok with using that as the official business address? That way, I can satisfy all legal and business requirements, is what I'm hoping.

    Do any other indie devs here have experience with this? Have there been any problems?

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

    Compose or Flutter for new project?

    Posted: 02 May 2022 11:17 AM PDT

    I am building a new product which I am initially planning release on Android and then on iOS in near future.

    AFAIK, Compose doesn't support iOS yet.

    Considering this, is it even worth considering Jetpack compose over Flutter?

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

    What is the most interesting feature of jetpack compose for UI/UX designers?

    Posted: 02 May 2022 10:31 AM PDT

    Like the title says. If you got the chance to present one feature of jetpack compose to a audience of designers only. What would you show?

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

    Policy question: Disclosure/Consent dialog about data collection inside the app (not only on the website)?

    Posted: 01 May 2022 10:59 PM PDT

    In the last couple of months there have been tons of changes, especially Data safety form, emoji policy, and many others. I've read them all, and this part specifically got my attention:

    Prominent Disclosure & Consent Requirement

    ...

    You must provide an in-app disclosure of your data access, collection, use, and sharing:

    • Must be within the app itself, not only in the app description or on a website;
    • Must be displayed in the normal usage of the app and not require the user to navigate into a menu or settings;

    ...

    Your in-app disclosure must accompany and immediately precede a request for user consent and, where available, an associated runtime permission. You may not access or collect any personal and sensitive data until the user consents. The app's request for consent:

    • Must present the consent dialog clearly and unambiguously;
    • Must require affirmative user action (e.g., tap to accept, tick a check-box);

    ...

    Whole text available here

    Just to confirm - if my app uses firebase analytics to collect some anonymous info - does that mean that:

    1. I have to basically copy-paste my policy from my web url into dialog within app too and launch it BEFORE user starts to use my app?
    2. UNLESS user clicks on AGREE button, I can not collect any firebase data?
    submitted by /u/throwaway41142095
    [link] [comments]

    Productivity hack to save tens of engineering hours when working with Jetpack Compose

    Posted: 02 May 2022 08:23 AM PDT

    Possibly dumb question on LiveData

    Posted: 01 May 2022 09:13 PM PDT

    So in my viewmodel I have a property like so:

    var someList = someRepo.getSomeList().asLiveData() 

    However, if I databind to it it never 'fires' the first time and the list is empty. I have a similar property in another viewmodel and that works fine so I'm trying to figure out what is going wrong here. In the example that works I'm creating an observer on said property in the Fragment but here I'm databinding in the layout file. The only other thing of note I think is that the attribute I'm binding to in the UI is a custom one I've made for AutoCompleteTextView (it's for setting the items in the suggestions dropdown)

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

    Should my app use Material Design 2 or 3?

    Posted: 01 May 2022 12:00 PM PDT

    Should my app use Material Design 2 or 3?

    I'm just curious, since personally Material Design 2 goes more easier on the corners, whereas Material Design 3 has way more rounded edges.

    Material Design 3 Button

    Material Design 2 Button

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

    Anyone aware about this bug with Firestore + FirebaseUI? Only very few users face it, and clearing app data doesn't fix it.

    Posted: 01 May 2022 12:28 PM PDT

    I use Firestore+FirebaseUI to show posts in my app, and use FirebaseUI to handle pagination and displaying the data.

    Data is shown according to the timestamp (with latest posts on top).

    But very few users (like probably 1 in thousand) have reported a bug where Firestore just stops showing them the latest data. Clearing the app data doesn't help either, and they keep on seeing some really old post.

    Firestore does seem to fetch the data from server though, except that it doesn't load past that one post no matter what's done (clearing cache/clearing app data/uninstall & reinstall). Has anyone faced this issue? The app doesn't crash and there's no way for me to test/replicate this bug either.

    Users are able to load posts that were added BEFORE that one post, but cannot fetch the latest data. I'm pulling out my hair because of this issue because it's reported time & time again every few months.

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

    What to do when API developer is slow & not giving APIs on time?

    Posted: 01 May 2022 09:35 PM PDT

    This question is not Android specific but posting here because can't find a common group for mobile app development. Most app needs backend APIs which are developed by backend developers. The app I am working on (there os an iOS version in development by iOS developer). And the backend developer is not giving APIs on time which makes app development time slower. Also the response format is inconsistent. The project manager is assigning the overhead of following him to get APIs on time to me & the iOS developer. Should a project manager put these overheads on developers?

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

    is there a material icon for the 52 card deck or should I import them as pic

    Posted: 01 May 2022 08:39 PM PDT

    I am trying to create a card game for low end devices, should I create and import 52 pictures which will be too much images or is there a material icon that's available?

    I want to be able to manipulate the color of the cards specially the back, that's part of my game. If I use png or vector files I will need 52x3 or more pictures.

    I searched online and couldn't find something similar.

    submitted by /u/08Feb2022
    [link] [comments]

    Wouldn't it be easier if composables have IDs in jetpack compose?

    Posted: 02 May 2022 01:31 AM PDT

    I am used to android development using xml where I control the app layout using IDs but since Jetpack compose doesn't have IDs for composables, I feel like I don't have full control on the design. Why was it made this way with no IDs? I don't get it. I feel like life would have been much easier with IDs.

    I know flutter and react and all frameworks that have state management works this way but why the pain?

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

    Discord and mentors

    Posted: 01 May 2022 02:10 PM PDT

    Hello devs, i am starting my cs semester this summer and i wanted to know if there is a android dev discord to share bugs and code maybe even mentors?

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

    Tool for making screenshots for store/portfolio?

    Posted: 01 May 2022 01:39 PM PDT

    I'm currently making a portfolio and was wondering which tool is the best for creating snapshots/screenshots of my apps?

    Does anyone have any suggestions, or do you straight up screenshot from the phone?

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

    Changing app's title and short description according to new google policies

    Posted: 01 May 2022 01:39 PM PDT

    Unfortunately my downloads are expected to drop after I change my app's title, just a question what if I have words like: best, free, top etc... in the long description, is it prohibited too? Or prohibited only in the title?

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

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel