• Breaking News

    Monday, April 5, 2021

    Android Dev - Weekly Who's Hiring Thread - April 05, 2021

    Android Dev - Weekly Who's Hiring Thread - April 05, 2021


    Weekly Who's Hiring Thread - April 05, 2021

    Posted: 05 Apr 2021 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]

    Top court sides with Google in copyright dispute with Oracle

    Posted: 05 Apr 2021 07:33 AM PDT

    Location permission update for Android 11. Now application is rejected?

    Posted: 05 Apr 2021 07:21 AM PDT

    We have an app that (since Android 6.0) has to have the location permission enabled to discover nearby Bluetooth BLE devices. This is the primary function of the app. It's a business app that installs and configures meters and radio firmware, and has been functioning fantastically in the store for well over a year now.

    To be compliant with the new policy updates we updated our location permission declaration, which came back with a rejection because we had no text declaration on the app. Fine. We put it right on the login screen. All of our customers are aware of the issue that Android needs to have the location permission on. The first thing the app does is pop up the OS permission dialog. But, OK fine. We added the text to the login screen. After some back and forth on language, we have this text:

    "This app uses location data in the background to enable Bluetooth device discovery for the IMR radios."

    Now we just got a rejection that there is no declaration text found.... at all?

    I opened a ticket, but just reaching out here for support. We have update to go live to the stores this week. We have this app in Android, Apple, and Windows stores. It looks like our Android customers won't be getting the update anytime soon, because of this issue.

    Also, it's EXTREMELY silly to have to enable the location permission to detect nearby BLE devices. But, Google's own developers don't seem to realize this is the case?

    Very frustrating.

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

    I'm looking for a good sample codebase to review/learn from that uses MVVM, live data, compose and either dagger or hilt. Any suggestions?

    Posted: 04 Apr 2021 04:32 PM PDT

    What to put inside ViewModel?

    Posted: 05 Apr 2021 05:34 AM PDT

    Hi everyone!

    I'm studying MVVM and I have a few questions. From my understanding, I should write the logic of my activity/fragment inside the ViewModel but there are cases where I am not sure where to write the code.

    1. I have seen many samples where we handle the button click in the ViewModel (that it's connected with the data binding). I understand this can be useful in some cases when, for example, we need to handle some logic inside the click method, but why do I need it if I simply want to go from one activity to another (I would use only an intent so there is no logic here).
    2. Some people check the runtime permissions inside the ViewModel. It does not seem useful at all to me. So why should I do that?

    Thank you for your time 😊

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

    Handling file/image uploads to server -- what to do if the upload fails?

    Posted: 05 Apr 2021 04:00 AM PDT

    Hi
    I am building an app where a photo is taken and sent to the backend. How would I handle the event that the upload fails. Would you store the image locally on the phone, and attempt to retry. Or would you ask the user to take a photo again and send it?
    Thanks

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

    What permission is needed to 'install unknown apps?'

    Posted: 05 Apr 2021 05:03 AM PDT

    Hi all. I'm developing an Android app. What permission in Manifest.permission is needed to install unknown apps, as per these screenshots?

    My Attempts

    • I tried to enable the INSTALL_PACKAGES permisison, but that was unresponsive. And indeed the description indicates, "Not for use by third-party applications."

    • I tried to enable the WRITE_EXTERNAL_STORAGE permission. I was able to successfully enable that, but it did not enable the 'install unknown apps' permission.

    The motivation for this question is that my app has an 'update' feature, which downloads a new APK from a remote location and installs it on the user's device. Every time that occurs, the user is met with these prompts about not having the correct permission to 'Install unknown apps.' I am hoping to alleviate that a bit by programmatically enabling the appropriate permission before the APK is downloaded.

    This app is internal to our company, and not in the Google Play Store.

    Thanks in advance.

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

    Run Android devices virtually

    Posted: 05 Apr 2021 05:40 AM PDT

    Hi,
    Is it possible to run a android device virtually? (Thinking most of the Pixel phones)
    Want to run some .img images virtually, and have a log terminal in the background to see whats happening in the background.
    And config the ram, cpu to look like the complete phone, just with some monitering in the back.

    cheres

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

    Google Admob alternatives?

    Posted: 05 Apr 2021 08:28 AM PDT

    I'm a small independent developer with a few Android apps published on the Google Play store. They are all pretty small amounts of users. I've been monetizing with Google Admob for more than 7 years now, but over the past year they've repeatedly disabled ad serving on my account for months at a time without providing any reason. So far I've lost more than 4 months worth of ad revenue because of this.

    So I'm looking to maybe switch to another ad network, but there doesn't really seem to be any alternative that can come close to the monopolistic giant that is Google.

    Has anyone used any Google alternatives to monetize their apps?

    Perhaps the best I could find was Facebook (another tech giant), but I've read mixed reviews about their ad program.

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

    How to avoid writing the same code in different Activities

    Posted: 05 Apr 2021 12:33 AM PDT

    Hello,

    Currently I am writing a Android app using Kotlin and the choice for authentication and data storing is Firebase. It is for my thesis.

    The "issue" (more like an inconvenient) is the fact that I have to copy paste some functions from an Activity to another.

    Default functions like:

    onCreateOptionsMenu onOptionsItemSelected finish 

    I have a one-two more functions that I've made which I also have to copy&paste.

    What would be a good way to deal with this? Is the hassle of dealing with this big?

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

    Hows is b4a for developing app?

    Posted: 05 Apr 2021 07:02 AM PDT

    b4a seems lightweight and easy to adapt. but has anyone used for app development, what are possible issue that can be encountered, what are disadvantages or drawbacks of b4a?

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

    Android subscriptions are getting auto cancelled

    Posted: 05 Apr 2021 12:40 AM PDT

    Hi Guys

    In the past month I had 20 subscriptions to my app and after every subscription when 4 days passed each of them got cancled. I tought weird and i subscribed by myself and after 4 days I received an email stating that my subscription has been cancled.

    Could someone help me what I am doing wrong?
    I am using the google play IAP library and android studio

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

    Noisy Code �� with Kotlin Scopes | AndroidBites

    Posted: 04 Apr 2021 08:35 PM PDT

    Hi mates! do check out my recently published article on how devs often end up creating code noise with Kotlin scope, do give me feedback or other points you have encountered yourself while using them.

    featured on proAndroidDev

    https://proandroiddev.com/noisy-code-with-kotlin-scopes-331c632739de

    Topic Covered :

    1. Null handling using Let
    2. Branching scoped operators
    3. misusing runs
    4. use of with operator
    submitted by /u/dev-ch8n
    [link] [comments]

    Why do we have to use AAB? I won't.

    Posted: 05 Apr 2021 04:57 AM PDT

    My app comes to a grand total of 3.9 MB. I do not benefit whatsoever from App Bundles and I don't want Google to have my signing keys. IIRC, a Google dev relations person said in this subreddit that they would consider changing the requirement, and I'm wondering if that is still on? If Google goes ahead with this change, I'll publish one final update telling users they can't get updates from the Play Store due to this change. Obviously, I can't tell them where to download the APK since that would violate play store rules, but I would hope users are able to find it themselves.

    I think a Google rep said they would consider allowing devs to upload the signed APKs as created by bundletool. This would allow users to get the same download size optimization without having to impact signing whatsoever.

    And if Google is worried that I might loose my signing key, I have no problem uploading my signing key, encrypted with a strong password in a way that Google can't decrypt it, so that they can keep it safe for me. This was one of the major "advantages" of App Signing.

    If you worry that people will accidentally re-use a key between apps, just add a warning when duplication is detected. Google already has the key fingerprint.

    TL;DR I won't update my app if I am forced to give away my signing key.

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

    XML MAP

    Posted: 05 Apr 2021 03:22 AM PDT

    Hi I use a custom m3u parser for my app,however I would like to try a different approach so instead of the m3u parser I would like to go for xml and xmltv so I want to map both incoming xml and xmltv using integers to link each values then return the xmltv parser class I'm not good with xml but I can read and understand please someone point me to the right direction thank you .

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

    Using Bubbles API for a use case other than messaging /calls

    Posted: 04 Apr 2021 06:38 PM PDT

    I'm planning to use the Bubbles API in my app to display some brief info and quick actions so that the user doesn't need to open the app as frequently.

    I'm curious to know if anyone has successful implemented the Bubble API into their production app for a use case not related to text messaging/calls, because the official docs seem to suggest messaging apps is the only use case and purpose for the Bubbles API

    previous discussions [1] [2]

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

    Flow & StateFlow vs LiveData [poll]

    Posted: 05 Apr 2021 02:09 AM PDT

    Quick poll, what have you used in the past months in android development for emitting/observing value changes and why: Flow with the Stateflow or LiveData?

    My motivation is to figure out if other android devs really switched to flow & Stateflow to the detriment of LiveData. From what I know:

    StateFlow
    and LiveData have similarities. Both are observable data holder classes, and both follow a similar pattern when used in your app architecture.

    Note, however, that StateFlow
    and LiveData do behave differently:,

    StateFlow
    requires an initial state to be passed in to the constructor, while LiveData
    does not.

    LiveData.observe()
    automatically unregisters the consumer when the view goes to the STOPPED
    state, whereas collecting from a StateFlow
    or any other flow does not.

    In other words, I see that live data has only advantages overflow & Stateflow. Why developers use it?

    View Poll

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

    Free Android Mentorship Program - Registrations are now open

    Posted: 04 Apr 2021 10:40 AM PDT

    Hey,

    Around two weeks ago I posted here saying that I want to start a free Android mentorship program.

    There were a few replies on the post and that's why I decided to create the program.

    Today, I finished the page, and I'm accepting applications.

    You can find the full details about the program on the page below.

    Apply here for the Android Mentorship Program

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

    is it just me or are android apps getting bloated? and how can devs avoid bloating their apps ?

    Posted: 04 Apr 2021 10:13 PM PDT

    edit: question solved

    i just did a test build with android studio on my phone with an app that literally does nothing! its just a text saying I MADE AN APP along with the empty default activity .

    but why is an app that does literally nothing 27 megabytes? !? i was expecting maybe 2 or 3 megs but 27 sounds kind of bloated. i get having to include libraries but i rather not be wasteful as my future app needs to be easy to distribute . (i wont be using google play the full apk is shared directly )

    how does one remove unnecessary code from their app ?

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

    Academic Survey on Parameters in Android Apps

    Posted: 04 Apr 2021 02:22 PM PDT

    Hi everyone! I'm a graduate student from Purdue University. I'm currently working on a research project trying to understand the parameters in Android apps.

    I would like to hear about your development experience with them through a survey:

    https://purdue.ca1.qualtrics.com/jfe/form/SV_d6bEkkLrhq5ZI1M?source=androiddev

    The survey should take about 7 minutes and is anonymous.

    I appreciate your input. Thank you!

    I'll share the results in the comments below.

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

    Why Google Play store is not promoting my app?

    Posted: 04 Apr 2021 06:05 PM PDT

    Hi, I released two weeks ago a game on Android and iOS. On iOS, app store is slowly pushing it through different markets, I am getting downloads and ratings and it got even in US to Top strategies (max was like 103rd in strategies). In other smaller countries it is even higher.

    However on Android there was na initial uptake and now store is almost not directing any traffic. They are taking % of in app purchase so it should be in store interest. That's why they take my money.

    Does anyone have similar experience? Do I really need to pay Google for ads on top of what they take in % from IAP? Maybe I am missing good descriptions? Video?

    Game is made with unity, works the same on Android and ios. It's free on both platforms. On IOS is has right now around 20 reviews and on Android over 40. Reviews are mostly 5 stars (4.6 is average). Not much difference between stores.

    I hope someone have some observations.

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

    Creating a good Android developer test

    Posted: 04 Apr 2021 04:16 PM PDT

    I am creating a test for an Android dev position, I would like to have some feedback about it.

    The task is available in link below:

    https://anonymous.4open.science/r/aaf062de-e702-41c5-9b8d-40c3ba7469e6/

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

    Break out from the sea of installed app icons with app actions.

    Posted: 04 Apr 2021 12:15 PM PDT

    Why are there many people asking for a developer account?

    Posted: 04 Apr 2021 03:00 PM PDT

    Why are there many people asking for a developer account?

    I use the platform UpWork for do jobs as freelancer. I noticed that there are many people asking for a google play developer account to upload his owns app.

    When you go to the client account, you can advertise that he has spent more than the price of the developer account.

    I never requested a job like this because I though I could be some dangerous that some upload a malicious app on your developer account and after you get banned or something worst.

    Someone knows what could be the reason of this kind of jobs?

    https://preview.redd.it/w0lrxoyja8r61.png?width=596&format=png&auto=webp&s=bf42aadb80fc2c0d8b6323d962af62d11094843a

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

    No comments:

    Post a Comment