• Breaking News

    Tuesday, March 30, 2021

    Android Dev - Weekly Questions Thread - March 30, 2021

    Android Dev - Weekly Questions Thread - March 30, 2021


    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]

    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]

    Run ARM apps on the x86 Android 11 Emulator

    Posted: 30 Mar 2021 08:07 AM PDT

    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]

    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]

    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]

    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]

    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]

    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]

    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]

    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]

    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]

    Apply even if you don't meet the "qualifications"? Do those things even matter?

    Posted: 29 Mar 2021 01:44 PM PDT

    I'm looking for some different perspectives on the whole job hunt side of Android Development, mainly how it seems there are so many people with less than 3 years experience and so many positions "requiring" 5+ years to even be considered. I had it put to me like this:

    Apply to those jobs anyway. Of course everyone wants a senior android developer, but they aren't finding them. If you're smart and can show some good work, they'll settle for you.

    I'm fresh into hunting for a job, but I've already got a few projects on Google Play, am familiar with relevant technologies, and certainly don't view myself as helpless when put in front of Android Studio. Is all the hesitation people experience applying just because the job listings are mainly wishful thinking? If so, should I just be applying to every Android position (within reason) I come across?

    I'd love some insight into this from experienced people. Thank you.

    submitted by /u/Schindlers_Fist1
    [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]

    6 Factors that Impact the Mobile App Development Sector

    Posted: 30 Mar 2021 03:04 AM PDT

    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]

    Choosing the best Network for a banner ads

    Posted: 29 Mar 2021 11:07 AM PDT

    Hello,

    I want to add a banner on my main page, just to generate a little money without bothering the player's experience

    As I will only have one banner, what kind of banner do you suggest and which Ad Network to choose

    Thank you

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

    Anyone here to review my code?

    Posted: 29 Mar 2021 08:14 AM PDT

    Created circular progress like twitter's.

    ProgressCircle

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

    Does anyone know how to fix this glitch? I installed APK beta of snapchat and when i deleted and tried to revert to normal playstore version it installs instantly and the version does not change.

    Posted: 29 Mar 2021 06:01 PM PDT

    Latest Revolutions in Android Applications Development

    Posted: 30 Mar 2021 02:20 AM PDT

    The prospect of Android development is considerably engaging because of a collection of modern and unique technologies. Users and developers aspire to have a magnificent experience and to become competitive and boost user engagement, you need to keep up with all the latest Android app trends in mind.

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

    hilt module with sip manager not being created

    Posted: 29 Mar 2021 04:24 PM PDT

    Can someone help me injecting sipManager into my service? repository works fine but sipManager is giving me later it error. Thanks link: https://stackoverflow.com/questions/66856625/hilt-uninitializedpropertyaccessexception-trying-to-inject-sipmanager

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

    No comments:

    Post a Comment