• Breaking News

    [Android][timeline][#f39c12]

    Tuesday, March 30, 2021

    Weekly Questions Thread - March 30, 2021 Android Dev

    Weekly Questions Thread - March 30, 2021 Android Dev


    Weekly Questions Thread - March 30, 2021

    Posted: 30 Mar 2021 06:00 AM PDT

    This thread is for simple questions that don't warrant their own thread (although we suggest checking the sidebar, the wiki, our Discord, or 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!

    Also, please don't link to Play Store pages or ask for feedback on this thread. Save those for the App Feedback threads we host on Saturdays.

    Looking for all the Questions threads? Want an easy way to locate this week's thread? Click this link!

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

    Open source, unique & mega customisable seek bar!

    Posted: 30 Mar 2021 12:12 PM PDT

    Open source, unique & mega customisable seek bar!

    Hello, I would like to share my open source library which I wrote today during my free time!
    Stars would be appreciated, but only if you like it 😊

    https://github.com/edgar-zigis/LabeledSeekSlider

    https://i.redd.it/1i3vdrmfs7q61.gif

    25 different attributes, ability to change anything from colours, fonts, text sizes to dimensions. It has also a neat disabled state which grayscales everything and disables ability to slide.

    Hopefully it will be useful to you!

    submitted by /u/biomatic-1992
    [link] [comments]

    Run ARM apps on the x86 Android 11 Emulator

    Posted: 30 Mar 2021 08:07 AM PDT

    Sales to Android dev?

    Posted: 30 Mar 2021 10:47 AM PDT

    I've been a hobby dev for 3 years and got into a great tech company right before IPO. We're expanding quickly but I was hired for SaaS sales through an employee referral.

    Tomorrow I have a 1:1 with a senior android dev on the other side of the company to pick his brain. My goal is to do well in my sales role but make it apparent I want to be in engineering. Have any of you made this transition? What would be some thoughtful questions to ask?

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

    Please feel free to upvote this feature request, if you love to see android Room Relation annotation having sorting feature.

    Posted: 29 Mar 2021 09:39 PM PDT

    Hi all,

    If you feel want to have sorting feature in Room Relation annotation, please feel free to upvote this feature request.

    I notice android Room's Relation annotation lack of a common yet useful orderBy feature. It would be very great, if such feature can be included in upcoming update release.

    Something which looks like the following will be great (Currently, "orderBy" is not supported yet. The below is just a proposed syntax)

    public class UserWithPlaylists { @Embedded public User user; @Relation( parentColumn = "userId", entityColumn = "userCreatorId", orderBy = "playlistName" ) public List<Playlist> playlists; } 

    Here the link to perform upvote - https://issuetracker.google.com/issues/183986647

    Thank you for reading this.

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

    HackerRank Android hiring test

    Posted: 30 Mar 2021 03:27 PM PDT

    Did someone take the HackerRank Android test? if yes, what's is it about? is it a quiz or a coding challenge? i'm going to take a 90 minutes test.

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

    Will there ever be a version of Room for Kotlin Multiplatform?

    Posted: 30 Mar 2021 01:29 AM PDT

    I'm trying to understand if Kotlin Multiplatform is a viable solution for my workflow and it seems so. My biggest problem right now is losing Room, as the only alternative seems to be SQLDelight (which I don't like).

    Will Room ever become a Multiplatform library? What is the biggest issue that could stop it from happening?

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

    New Android malware disguises itself as a system update

    Posted: 30 Mar 2021 01:11 PM PDT

    how anonymous are android apps and how does a developer make sure their apps cannot be used to reveal their true identity and location ?

    Posted: 30 Mar 2021 09:16 AM PDT

    i am new to app development and i am one of those privacy nerds too.

    since i live in iran i cant risk releasing any controversial software and face the awful and unfair consequences . therefore i am curious about the privacy risks of android development and how i can avoid leaking my true location and identity to anyone with my programming .

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

    SIM Card Based Mobile Authentication with Android - tru.ID

    Posted: 30 Mar 2021 11:49 AM PDT

    Kotlin Poet Use Case

    Posted: 29 Mar 2021 11:45 PM PDT

    Hi fellow developers,

    Can I know what is the use case of KotlinPoet. I know from reading the docs is Kotlin Poet capable of generating a Kotlin code by writing a "blueprint". But wondering what is the use case of this? and is there any open source project example or library that use KotlinPoet?

    Thanks in advance.

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

    Question about payment gateway implementation in Android

    Posted: 30 Mar 2021 01:58 AM PDT

    Hi,

    I will sign a contract with one of my clients for a ride-sharing app. I have estimated most of the work for the android implementation but I am struggling to estimate the payment gateway. How the money will be taken from the passengers and eventually added to the driver with the commission my client takes.

    I have put 100h but I have the feeling is too much but I have also never made such implementation.

    This is 1 man project so I am using firestore for the backend, some functions, firebase login, and will also do iOS. Is it possible to implement the payment gateway without a proper backend?

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

    Notification action after User authentication

    Posted: 30 Mar 2021 08:54 AM PDT

    Currently I am using a service to show Notification and two actions on the notification. Notification is visible to user, and so the actions. I can reduce the visibility(secret) of the notification is settings, but I want to offer user the content and actions. When user takes an action, e.g. (Accept/Reject), I want the lock screen to appear (Just like DUO). I have the strict requirement to use Service to take action on the notification (Not activity), without opening the app. I have the working app for this scenario, but lock screen doesn't work properly. Any suggestions would be helpful.

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

    How much does college grades affect job hunt

    Posted: 30 Mar 2021 04:14 AM PDT

    Is a good college CGPA necessary to land a first job as an Android app developer at a decent company?

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

    Share your bug workflow

    Posted: 30 Mar 2021 04:07 AM PDT

    Hi!

    I need one (or more) developers to give me real world example of whole process from discovering to resolving a bug. Your personal experience.
    I have job interview for software tester tommorow and this is a task I am given.
    I would be REALLY thankful if somebody shared their real life process and is willing to spend some time giving me whole procedure.
    Even one message of whole process explained would be enough.

    Thanks!

    submitted by /u/Emotional-Ad6255
    [link] [comments]

    2 months after it release, some users still don't use the latest version of my app

    Posted: 30 Mar 2021 06:48 AM PDT

    I've noticed something weird with my app on the playstore. The latest update was released 2 months ago, yet many users are still using the previous version, according to the statistics available on the playstore console.

    Why don't their app got auto updated?

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

    Anyone know how to do the same thing Greenify does?

    Posted: 30 Mar 2021 03:48 AM PDT

    I've been asking on StackOverflow for two days and I'm not getting responses. This is the only place left I know where to ask. Greenify uses an accessibility service to Force Stop apps. This answer seems to explain how it's done: https://stackoverflow.com/a/26687754/15338753

    The accessibility service should find the views on the App Info page and automatically click them.

    However I tried the code in the above answer and it doesn't work. It doesn't find the views with the given id. I tried it on two different devices.

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

    Amazon did not approve my app made in thinkable..

    Posted: 30 Mar 2021 09:41 AM PDT

    Hello, I made an app with thunkable classic and made a submission to the amazon app store but according to them, it was not approved. Here is the entire message:

    Your app submission does not meet one or more of our acceptance criteria for some or all targeted devices. Failure reason(s) are listed below:

    Your app appears to be directed at children and contains an SDK(s) whose terms of use prohibit its use in children's apps. Please remove the SDK - AMPLITUDE and resubmit the app. Alternatively, If you use a restricted feature set of this SDK, please send a confirmation with the details (such as details about your data collection practices or a screenshot of the restricted feature set toggle in your SDK configuration) by visiting the Contact Us page and selecting the category "Appstore" and the Topic "Content Policy Results".

    You can view our guidelines on the Appstore Developer Portal.

    1. My app is not directed to children
    2. What in the world is AMPLITUDE SDK???

    Also, I already contacted amazon regarding that…

    but still no response

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

    I want to Install "GPS Emulator" Plugin but it is showing this error

    Posted: 30 Mar 2021 03:13 AM PDT

    Error-- Plugin Error: Plugin "GPS Emulator" is incompatible (supported only in IntelliJ IDEA)

    Can anyone help me? I want to use this with Genymotion plugin

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

    App Center Change Owner/Transfer Apps

    Posted: 30 Mar 2021 06:19 AM PDT

    I have an old account in App Center and now I want to transfer all the applications from that account to a new account. Is there an option to change owner???

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

    android Room M:N relationship with attribute on relationship, can it be done?

    Posted: 29 Mar 2021 05:08 PM PDT

    Does anyone know if it is possible to have a many-to-many relationship between entities in Room where you store an attribute on the relationship table. For example, say I have an Ingredient entity and a Recipe entity, is it possible to make a M:N relationship between the two (e.g. RecipeIngredientCrossRef) that also has a property called amount. This is necessary because each ingredient may need a different amount for each recipe it is a part of, so it cannot be stored on the ingredient itself. Nor can amount be stored on the recipe, because each ingredient needs a separate amount.

    I've looked at using Relation and Junction, but these don't seem to support having attributes on the relationship/crossref table. I'm assuming this could be done with plain SQL queries however, so any help would be appreciated. Thanks.

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

    Implementing one activity per "flow"

    Posted: 29 Mar 2021 10:09 PM PDT

    So I'm coming back to android development after 5 or so years and things looks pretty different but also pretty good!.

    I started using he navigation component (which is pretty nice tbh) and although the recommended pattern is to use a single activity for the whole application, i find my self using one activity per flow, let me explain.

    My app is a online store, so it has these "natural" flows:

    • Store navigation, this flow isn't "linear":
      • you can browse relevant items/news on the home
      • you can view and navigate the different categories
      • you can search for an item
      • you can see and edit your sopping cart
    • User registration,if you like what you see, at some point, the app will ask you to register, this flow is "linear" :
      • input your an email, phone and password
      • input your primary address
      • a welcome/success message is displayed and the app ask you to confirm your account, you can return to the store now
    • Order checkout, after reviewing your cart you can initiate the checkout flow which is also linear
      • Review your car total and optionally enter a coupon code
      • Select a delivery date/time and an address
      • Select a payment method
      • Optionally, perform an in-app payment with credit card
      • Order is completed

    These flows have little in common, they work together to form the overall user experience but they led to different goals and IMHO the code "feels" better being separated in these "mini-modules" each of which has it's own activity and navigation.

    I'm close to finishing it and haven't found a major drawback using this structure, just wanted to hear what are your opinions since my android skills are kind of rusty.

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

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel