• Breaking News

    [Android][timeline][#f39c12]

    Tuesday, March 2, 2021

    Weekly Questions Thread - March 02, 2021 Android Dev

    Weekly Questions Thread - March 02, 2021 Android Dev


    Weekly Questions Thread - March 02, 2021

    Posted: 02 Mar 2021 06:00 AM PST

    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]

    Commonsware: Don't Put All Your Eggs in One Basket - Google is not your friend

    Posted: 02 Mar 2021 03:53 AM PST

    Mavericks, Meet Jetpack Compose

    Posted: 02 Mar 2021 01:35 PM PST

    Compose beta01 sample app with mvvm and without AAC-ViewModels

    Posted: 02 Mar 2021 11:31 AM PST

    Hello! I have written a series of 3 posts where I propose manually handling config changes and avoiding AAC-ViewModels, among other things, in fully compose apps.

    I just published part 3, and with that a sample app to show what I explain in those articles, plus some other things.

    Some headlines for the app:

    • MVVM with flow, and with no fragments, no AAC-ViewModels, and no AppCompatActivity

    • config changes handled manually

    • UI adapts to landscape or multi-window (with a simple animation)

    • ViewModels scoped to a screen, nav sub-graph, or the whole app

    • Koin DI with scopes bound to nav destinations

    • it saves state

    • custom view (clock)

    As you can see st the start of the Readme, there are reasons for the (sw) design decisions i chose, and these are explained in the articles that you can also find in the Readme.

    Any discussion, improvements or code review are more than welcome :)

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

    openmobilemaps/maps-core The lightweight and modern Map SDK for Android (6.0+) and iOS (10+)

    Posted: 02 Mar 2021 02:40 PM PST

    Android Dev jobs which aren't basically CRUD apps

    Posted: 01 Mar 2021 10:25 PM PST

    I am an Android Developer at an MNC with about 3.5 YOE straight out of college. And while I am grateful for this job I am starting to get a bit tired out by the usual loop of Fetch stuff from API, do some modifications and show it on UI. Most of the time you barely do any hardcore algorithmic stuff since most of it happens in the backend (Not sure whether this is just the case with my company so happy to be proven wrong)

    Do any of you guys work on Android projects which are bit more involved at OS level and takes direct advantage of the platform rather than just using whatever SDK API Google thinks is cool currently? Android as an open platform is used in a variety of use cases apart from apps so wondering if any companies who do this kind of stuff which I can target?

    Edit: Thank you all for your replies. Didn't expect this to blow up so much. I will look to focus on embedded and IoT stuff a bit more going forward. Maybe even try to convince my PMs at my current job to add in few features

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

    Bind attributes easily in your custom views using Tablespoon!

    Posted: 02 Mar 2021 06:39 AM PST

    A small side-project-turned-library that helps with binding xml attributes to custom views easily using annotations. Check it out:
    https://github.com/nikhilpanju/Tablespoon

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

    Tree structured models in MVVM pattern.

    Posted: 02 Mar 2021 08:40 AM PST

    I did some (little) research on which specific java package should I use to design trees, and it was somewhat a surprise to find out that there really isn't a dedicated package for this, so with a few hundred lines I designed a tree class, that stores nodes in a relational way (unique keyed nodes).

    I also thought it would be good to provide downward communication between parent and children, so I did.

    What I found out just now, after giving it some thought, is that most of the model interactions in my project could be concatenated with this tree.

    But before jumping on the journey of actually doing it, which I think would require some effort, I ask you If you have seen such a design in a project and how easy is it to maintain and read,

    is it a good idea? is it efficient?

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

    New Mobile Native Foundation to Foster Development Collaboration - Linux Foundation

    Posted: 02 Mar 2021 10:08 AM PST

    Help

    Posted: 02 Mar 2021 03:31 PM PST

    I'm trying to edit an apk and need to change thw portal URL but I think the apk has a hardcoded DNS or URL does anyone know how to change the URL?. Been trying for a while and having no luck

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

    What to focus on to make most employers want you?

    Posted: 02 Mar 2021 05:39 AM PST

    Hey everyone,
    I have 3+ years of professional experience as an Android developer. I've been working for a small company on small/internal projects so it does not look all that great in the CV. I feel confident as a developer as the company had good flow of Code Reviews and cooperation, but that does not show on the CV either.

    I'm taking some time (+- 5 months) off to focus on making my CV/online presence stand out and find a better job afterwards.

    My question is: what should I (or anyone) focus on the most to get the best position?

    • try really hard and push a usable app to the Play Store? (seems like a really tall order nowadays that literally everything has been done before (unless you have a really great idea))
    • start blogging/writing articles?
    • build smaller projects/libraries and publish on GitHub?
    • all of the above?
    • other ideas?
    submitted by /u/jakub-minarik
    [link] [comments]

    Jetpack Compose vs SwiftUI

    Posted: 02 Mar 2021 02:16 PM PST

    Hello, has anyone tried Jetpack Compose that already knows SwiftUI? Can you compare those two?

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

    Circle CI + Android configuration tips

    Posted: 01 Mar 2021 06:03 PM PST

    Can the same instance of a fragment be reused with a different arguments?

    Posted: 02 Mar 2021 05:43 AM PST

    Say we have some sort of fragment recycling component (pager, etc.) where we have the same fragment class and provide to it different arguments. Can the same instance be "recycled" and reused with different arguments?

    I'm asking because I've seen some patterns where people use a lazy val accessort for a fragment argument value, which would be problematic in these cases.

    (really hard to find documentation as to what the Android SDK does and *can do* with fragments)

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

    Distribution Channel For B2B / Enterprise Apps?

    Posted: 02 Mar 2021 03:55 AM PST

    Curious what people's experiences have been using Google Play Store vs direct download or some other distribution Channel for B2B apps where the business is buying/subscribing to X number of licenses for their employees.

    Advantages and disadvantages? Obviously Play Store makes version control easier. Any other thoughts or anecdotes?

    Thanks!

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

    Mavericks (previously know as MvRx) now supports Jetpack Compose

    Posted: 01 Mar 2021 09:38 PM PST

    Help please

    Posted: 02 Mar 2021 03:43 PM PST

    I'm trying to edit an apk and need to change thw portal URL but I think the apk has a hardcoded DNS or URL does anyone know how to change the URL?. Been trying for while and having no luck

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

    Installing CA certificate on AndroidTv

    Posted: 02 Mar 2021 09:42 AM PST

    Anyone knows a way to install CA certificate on an AndroidTv? There is no UI for it as on Android. I would like to install certificate to make Charles Proxy work.

    Thanks.

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

    Advice on implementing secure delete application using hardware key store

    Posted: 02 Mar 2021 08:15 AM PST

    I'm starting to work on an app that will let the user input some secret text, and later view that text. There would also be a button that would permanently "erase" the text, or at least make it impossible to read.

    My strategy was going to be to encrypt the secret prior to storing it. The decryption key would be stored in the KeyStore hardware security zone. To destroy access to the secret, the button would delete the decryption key from the KeyStore.

    Just wondering if that is a good way to approach this problem, or if anyone had a different idea.

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

    Do Android Developers like using CLIs?

    Posted: 02 Mar 2021 10:24 AM PST

    I work for a company called tru.ID that offers a mobile phone number verification solution that hooks into the same mechanism used by MNOs (Mobile Network Operators) to authenticate your phone's connection to their network: they use this to authenticate voice calls, mobile data sessions etc.

    We're an API first company, meaning we first create APIs and then build everything else on top of them. Because of this, we've decided to create a CLI (command line interface) as the primary mechanism for managing an account (workspaces and projects) on our platform. We've prioritised this above building a comprehensive web dashboard/console.

    What I'd like to ask this group is: are you happy to use a CLI? Would you prefer to manage things via some other mechanism? For example, would you prefer a web console? Or an Android Studio plugin?

    A few references:

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

    Trying to Setup Android Flash Tool

    Posted: 02 Mar 2021 09:41 AM PST

    I have a Pixel 3 I am trying to flash with an OTA image with the flash tool. However, I need to update my drivers. The issue is that I am using a Razer computer and I don't see any OEM USB drivers available for the razer. I see that Razer has the Razer Phone 2 USB drivers but this would be for a Pixel 3.

    Which driver should I install to make sure this works properly?

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

    Is there really any point in the ActionBar (as opposed to a custom layout)?

    Posted: 01 Mar 2021 07:40 PM PST

    Bit of a noob question, but I'm finding ActionBar just a bit of a pain in the ass to work with. To make a custom one I need to create menu files, have a lot of code in OnCreate for what should be pretty simple, and as far as I can tell it's impossible for me to use svgs as icons as they don't resize correctly, so I need to have several correctly-sized png icons.

    So I'm giving up and just having a noactionbar theme with a simple LinearLayout that will look exactly the same as the bar. But is there anything bad about doing this? It seems like both less work and more effective results, so I'm a little unsure why I can't find anyone advocating for it.

    Also, side question, but does anyone know how I can find all the default attributes for ActionBar to copy into my fake one? I can use ?attr/actionbarsize to get its height and I found that text size is 18sp, but anyone know about exact icon dimenstions/margins/etc? Thanks.

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

    With the latest emulator 30.4.5.0 , -gpu angle_indirect does not seem to really work

    Posted: 01 Mar 2021 11:07 PM PST

    I'm using an old laptop, which has 4th gen Intel CPU and NVIDIA GPU with Maxwell1 arch. Of course VT-x is enabled. The OS is Windows 10 20H2 x64.

    By default GPU emulation is enabled (host mode). Since host mode seemed to have some problem for me, I looked for alternative options. I then tried running emulator.exe manually, with -gpu angle_indirect argument. The emulator then started normally, however it's somewhat laggy, then I found that the emulator didn't seem to actually use the GPU - the NVIDIA tray icon said there was no apps using GPU at all! Task manager also showed almost zero GPU usage. Process Explorer also showed that qemu-system-x86_64.exe didn't load any DLL under emulator\lib64\gles_angle subdirectory.

    After some googling I found an older version of the emulator (27.3.10), which seems to be able to actually use GPU. However this old version can't start newer Android Q AVDs.

    I'm okay with this situation. I just think it's somewhat funny that the angle_indirect option seems to be bogus - however I'm not sure whether it was just me who encountered this problem.

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

    i just opened a new console account. and im also want to open a new bank account since i dont have one yet. my problem is why google play is asking a USD bank account?its so expensive here to open a usd bank account. is it possible to Change the currency requirement from USD to PHP?

    Posted: 01 Mar 2021 08:25 PM PST

    Having fun with jetpack compose?

    Posted: 02 Mar 2021 01:03 AM PST

    I saw the current trend of making puppies listing app with jetpack compose on Twitter and was thinking to do that and learn compose more and see what changed since the early alpha builds ... but I couldn't even build the template created by android studio. Error is explained (Here).

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

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel