• Breaking News

    Monday, February 15, 2021

    Android Dev - Weekly Who's Hiring Thread - February 15, 2021

    Android Dev - Weekly Who's Hiring Thread - February 15, 2021


    Weekly Who's Hiring Thread - February 15, 2021

    Posted: 15 Feb 2021 06:00 AM PST

    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]

    Guide to using Dagger-Android effectively

    Posted: 15 Feb 2021 04:57 AM PST

    Dagger-Android is superseded by Hilt. So there is a good chance that if you are already using Hilt, then for the most common cases (injecting Activity, Fragment, ViewModel, Worker), you don't need to think about Dagger-Android whatsoever. However, @ContributesAndroidInjector is still popping up every now and then, so this article is intended to explain how it works, what it intended to solve, how to use it, and how NOT to use it (for better scalability).

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

    Improving CI/CD pipeline for Android via Fastlane and GitHub Actions

    Posted: 15 Feb 2021 05:34 AM PST

    What are the pros of going with Jetpack's Navigation Component?

    Posted: 14 Feb 2021 03:27 PM PST

    Hi everyone 👋! Happy Valentine's Day 💖😜

    What better thing to do on Valentine's Day than talk about Android architecture!

    I'm thinking about using Jetpack's Navigation Component on my next project. So far I've been using the old approach of one Activity per screen, and I have no complaints TBH. I've been doing Android Development for quite some time now, and I've learned to be careful with the new shiny technologies that Google proposes.

    I remember back in 2012 when there were no architecture standards defined by Google and the architecture standards were pretty much defined by the community best practices, we all saw different architectures come and go, I remember that around that time I implemented a single Activity architecture for an app that I was working on, things was that around that time you couldn't nest that many Fragments, so in the long run, the architecture pretty much blew in my face. That's why I'm a bit wary about going with a single Activity solution. I would like to request feedback from anyone who has actually used the new Jetpack's Navigation Component on a production app. I'm a bit cautious of moving into this because of:
    - Jetpack's Navigation Component, kinda looks like iOS' storyboards, and if you have ever worked with any iOS developer you know how much they complain about storyboards, because of conflict issues when pushing code, because of not being a scalable solution, etc.

    - Deeplinking. Does Jetpack's Navigation Component provide a scalable solution for deep linking? Something that's as good as AirBnB's Deeplink Processor? For example, let's say you have an app that shows a list of buildings, and you can tap on each item and go to the building detail. Can you implement a deep link handler that goes straight to the building detail, and then goes back to the list when tapping the back button without too much hassle?

    - Is there any performance benefit from using the Single Activity / Multiple Fragments approach?

    - How does Jetpack's Navigation Component work with multi-module projects? It's doable? Do you have to go through too much hassle to get things working?

    TL;DR: Jetpack's Navigation Component, yay or nay?

    Thank you all! 🙇

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

    5 Smart Ways to Approach Mobile App Localization

    Posted: 15 Feb 2021 05:37 AM PST

    Tips on how to localize Android apps faster and with less effort 🚀https://blog.crowdin.com/2021/02/11/smart-ways-to-approach-mobile-app-localization/
    Share your experience with app localization in the comments

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

    Looking for server side solution

    Posted: 15 Feb 2021 07:03 AM PST

    (Please don't mind my english)

    I would like to make an application with a self-made interface, account registration and upload / download files up to 500MB (for self-education). I'm familiar with android development. I'm interested in the server side. Are there any solutions, maybe based on Apache or nginx or something similar. I am trying to find a direction.

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

    Android Accessibility Service

    Posted: 15 Feb 2021 06:57 AM PST

    I am building an app which uses accessibility service to automate some stuff inside Android. I wanted to know whether the id changes or not for every device or custom rom. Is there any guarantee that the id remains constant for all devices.

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

    Where should I start learning about Pinning (security) as a beginner Android Dev?

    Posted: 15 Feb 2021 06:05 AM PST

    (Please don't mind my english)

    I have recently landed my first job as an Android Developer at a multinational bank (yay!).

    I will be starting in a month or so and decided to ask for topics I should be studying so I can prepare accordingly. I am comfortable with most of the topics, but since security is such an important matter (that I honestly know very little about), especially for banks, can you point me to some reliable yet beginner friendly resources?

    Also, I'm open to any advices regarding android development for big companies and banks.

    Thank you!

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

    RecyclerView adapter Memory Leak

    Posted: 14 Feb 2021 12:28 PM PST

    If you have used Memory Leak in your project and have Fragments, try this.

    1. In Fragment A set up a RecyclerView.
    2. Declare the Rv Adapter as a inmutable variable in your fragment.
    3. When an item is clicked replace) the Fragment A for Fragment B.

    When the replace transaction is done, you will notice that a memory leak will appear with the recyclerview.adapter. So which one of these options do you currently use:

    Declare your adapters as a top variable in your fragments/activities

    class FragmentA : Fragment() { // Some other variables as viewmodel, viewBinding, etc... private val adapter = MyAdapter(listOf(), ::onItemClicked) override fun onViewCreated(view: View, savedInstanceState: Bundle?) { super.onViewCreated(view, savedInstanceState) initView() } private fun initView() { viewDataBinding.rvOrderHistory.adapter = adapter viewModel.orders.observe(viewLifecycleOwner) { adapter.bindItems(it) } } private fun onItemClicked(model: Model) { //Navigate to fragmentB will cause a memory leak } } 

    Set up to the recyclerview adapter when your "list" is ready (so every time you get a new list a new adapter is attached and therefore)?

    class FragmentA : Fragment() { // Some other variables as viewmodel, viewBinding, etc... override fun onViewCreated(view: View, savedInstanceState: Bundle?) { super.onViewCreated(view, savedInstanceState) initView() } private fun initView() { viewModel.orders.observe(viewLifecycleOwner) { items -> viewDataBinding.rvOrderHistory .adapter = MyAdapter(items, ::onItemClicked) } } private fun onItemClicked(model: Model) { // Navigate to fragmentB is safe but Android Logcat // shows a warning for not seting up the rv adapter. } } 
    submitted by /u/VisualAncient4338
    [link] [comments]

    When adding locales to your app should you add all the variations of every locale?

    Posted: 15 Feb 2021 05:43 AM PST

    For example if I want to add the Norwegian language to my app in Android Studio, I just add the "no" locale which means Norwegian. However when I try to test this by changing the language in my phone's system settings I never get Norwegian, meaning the app stays in the default English. There's apparently two Norwegian languages to choose from in Android system settings, one is Nynorsk and the other is Norsk Bokmal, neither of which my app detects as Norwegian (no). What am I doing wrong here?

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

    Which Static code analyser you guys are using?

    Posted: 15 Feb 2021 04:44 AM PST

    android studio wont install gradle distribution

    Posted: 14 Feb 2021 05:45 PM PST

    I just installed android studio today, and immediately after creating a project, was given this error:

    Could not install Gradle distribution from 'https://services.gradle.org/distributions/gradle-6.5-bin.zip'.

    since then, ive tried to get it to work by manually installing it (which gives me the file properly), reinstalling android studio, and various other troubleshooting forums, none of them working. how do i fix this problem?

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

    File.renameTo is not working on api 29

    Posted: 14 Feb 2021 01:35 PM PST

    I am trying to move a file to a folder I created using media store, but file.renameTo is not working. The file gets moved, but it's size is 0 bytes. When I check the other folder, the file is still there. Any idea as to why?

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

    Encrypted sqLite

    Posted: 14 Feb 2021 10:13 AM PST

    The requirement is to secure the sqLite database on a device (not in the cloud) utilizing AES-256 encryption. The challenge seems to be that certain functions (like synchronizing with a database on another device) can not be automatically achieved when/if the sqLite database is AES-256 encrypted.

    Anyone have any insight or suggestions to solve the issue?

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

    Ignoring Battery Optmization Settings

    Posted: 14 Feb 2021 04:17 PM PST

    I was browsing the docs a while and came accross references to ignoring battery omptimisations. The things I'm reffering to are as follows:

    Class Field or Method
    android.Manifest.permission REQUEST_IGNORE_BATTERY_OPTIMIZATIONS
    android.os.PowerManager isIgnoringBatteryOptimizations(String packageName))
    android.provider.Settings ACTION_IGNORE_BATTERY_OPTIMIZATION_SETTINGS
    android.provider.Settings ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS

    What are these optimisations specifically and where are they detailed in the official Android Developers site?

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

    Intents and Security question.

    Posted: 14 Feb 2021 05:55 PM PST

    I'm wondering how secure intents are from passing data from app to app and have any exploits been shown to intercept and alter data in between. I'm not worried about rooted devices just regular non rooted android phones with rouge apps. I'm just wondering if i should use an intent or write my own solution when dealing with sensitive data.

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

    A question about the google play store

    Posted: 14 Feb 2021 10:31 AM PST

    Goodevening,

    Let's say.. I'm downloading an app about from the google play store.

    While my google playstore account is connected with my google email.

    After it is launched on my phone and using it.

    Does the concerned app has automatically my email adress or more personal information from the google service that is always connected with the playstore ?

    Yes or No.

    Personally.. I don't think so. Only collects the device information + version of the app and stuff.. but no inside information. Or am I wrong ?

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

    Which is best?

    Posted: 14 Feb 2021 08:20 AM PST

    I am an intermediate programmer. I have mostly worked with python. I am now planning to develop an android app. So what should I chose to develop, a native app or a hybrid? The app that I am designing has to work smoothly and would use push notifications, databases, cloud services and cameras and sensors. So what do you think should I go for, React/Flutter or JAVA/C++?

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

    No comments:

    Post a Comment