• Breaking News

    Friday, April 10, 2020

    Android Dev - Weekly "anything goes" thread!

    Android Dev - Weekly "anything goes" thread!


    Weekly "anything goes" thread!

    Posted: 10 Apr 2020 05:40 AM PDT

    Here's your chance to talk about whatever!

    Although if you're thinking about getting feedback on an app, you should wait until tomorrow's App Feedback thread.

    Remember that while you can talk about any topic, being a jerk is still not allowed.

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

    It bothers me that most tutorials and or architectural guides don’t include any kind of automated testing

    Posted: 10 Apr 2020 02:18 AM PDT

    No unit tests, no UI tests, nothing. It seems nobody cares :-(

    It also makes it hard to learn more about the subject and I don't know about you guys but I feel like knowing how to test stuff is what separates you from a median developer.

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

    What is wrong with you Samsung?

    Posted: 10 Apr 2020 03:32 AM PDT

    I just want to share this unbelievable story...

    As usual, I've recently submitted an update of my apps on the Galaxy Apps Store.

    But I just got an email from Samsung to inform me that after the review, my apps have been suspended / removed.

    It's not only the update, it's a complete removing from the store.

    Ok, well, let's see the reason of the suspension...

    >> Unable to attach contents in Facebook.

    It's so funny, they even sent me a video of the problem.

    Unable to attach contents in Facebook

    The export feature is just a text sharing through a simple Intent.

    Do I must test all the apps on the market to check if they can handle Intents correctly ?

    I don't know if I must laugh or cry...

    I'm trying to stay polite, but what a joke!!!

    I re-submitted the apps today with absolutely no changes at all.

    I just hope the review will be handled by someone else, someone really qualified for the job...

    EDIT:

    As I thought, my re-submit has been approved by someone else and now my apps are back online on the Galaxy Apps Store.

    Thanks to yo_asakura for the clarification about the Facebook SDK.

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

    How could this be?

    Posted: 09 Apr 2020 10:57 AM PDT

    Is Data Binding worth?

    Posted: 10 Apr 2020 07:03 AM PDT

    Hi guys, I'm currently studying Data Binding because I want to introduce it to my co-workers but after reading the documentation and having implemented a simple example, I have a few dubts and I'd like to know your opinions about Data Binding:

    Is it worth? Did it change your life in Android developement?

    Every opinion is appreciated, thanks!

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

    New Database Inspector in Android Studio 4.1 Canary 5

    Posted: 09 Apr 2020 12:39 PM PDT

    Implementing Retrofit in Android | Implementation | Part 2

    Posted: 10 Apr 2020 07:57 AM PDT

    Vibrations in musical notes like Samsung

    Posted: 10 Apr 2020 07:43 AM PDT

    My Galaxy S8 has some predefined vibration patterns to use for incoming calls. Some of them use different musical notes, like "Siren", that goes between the notes F and D. I need to be able to do that in my app, but it seems like vibration intensity doesn't change the tone, just the loudness. Do you know how I can do this myself? :)

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

    Glucose device BT integration

    Posted: 10 Apr 2020 07:04 AM PDT

    Does anyone have experience with Bluetooth integration with a One Touch Verio Flex. My team is running into a wall. We have only been able to find one code reference anywhere to something that mostly works. Here is the repo we found and have modeled our code after: https://github.com/NightscoutFoundation/xDrip/blob/master/app/src/main/java/com/eveningoutpost/dexdrip/GlucoseMeter/VerioHelper.java

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

    Google Play has suspended our air quality monitoring app saying it's related to Covid-19

    Posted: 09 Apr 2020 09:47 AM PDT

    Our app is not related to Covid-19 whatsoever. It's an air quality and weather conditions monitoring app. Yet, Google has suspended it(for the second time now) citing their sensitive events policy. Has this happened to anyone else? Can anyone here suggest what we can do to get our app reinstated?

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

    Do you / Should I use ViewBinding over kotlin synthetics?

    Posted: 10 Apr 2020 01:58 AM PDT

    From your experience, is android dev more fun than web dev?

    Posted: 09 Apr 2020 01:36 PM PDT

    EditText and focus

    Posted: 10 Apr 2020 04:28 AM PDT

    Whats the simplist way to implement a EditText that loses focus consistently?

    I've run into a problem where an EditText isn't able to lose focus which gives me no way to indicate when to remove the soft keyboard, this is by design as I understand it.

    My current application state is an Activity with 2 Fragments side-by-side and a Toolbar along the top, in the right side Fragment I have a RecyclerView which contains an EditText field, when I click/tap on the EditText a soft keyboard appears, this is working as intened.

    The problem is that whenever I try to click/tap on any other View the focus on the EditText persists and I am therefore unable to hide the soft keyboard when the focus changes.

    I am only able to set another view to have focus if I do the following on every View in the Fragment;

    v.setOnClickListener { v.isFocusable = true v.isFocusableInTouchMode = true v.requestFocus() } 

    This doesn't help if a user clicks/taps on the other Fragment or the Toolbar, I would have to add this method to every View in the Activity for this behvaiour to propagate. This seems like an incredibly inefficient way to handle my problem.

    Is there something simple that im missing to enable transfering of focus on EditText Views?

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

    Google is still recommending AsyncTasks in their documentation

    Posted: 09 Apr 2020 08:35 PM PDT

    I know Google's documentation has never been great but I found it especially egregious that they are still recommending using an AsyncTask to avoid ANRs:

    https://developer.android.com/training/articles/perf-anr.html

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

    Android video conferencing, and rarely discussed pitfalls: Picture-in-picture and bluetooth headset

    Posted: 10 Apr 2020 04:00 AM PDT

    Retrofit with OAuth

    Posted: 10 Apr 2020 02:17 AM PDT

    Several times I've used retrofit to interact with OAuth protected restful API's and everytime I've wondered... Haven't someone made a nice library for doing so. I've googled far and wide without finding much so now I'm asking here.

    Can you guys recommend me a library wrapping retrofit, or something else, with proper OAuth support? Automatically refreshing of tokens and such

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

    Android Studio 4.1 Canary 5 available

    Posted: 09 Apr 2020 10:38 AM PDT

    Open source COVID-19 app I made in my spare time

    Posted: 09 Apr 2020 02:13 PM PDT

    So I've been exploring jsoup and made a new app, this time open source.

    I guess you can feel free to poke around, suggest some stuff etc.. I did this one in a hurry, you can learn a thing I guess.

    GitHub link

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

    Delay between fragments

    Posted: 09 Apr 2020 07:24 PM PDT

    Whenever I switch from one fragment to another, the on click listener for the buttons doesn't work and doesn't register clicks and there's a delay for like 20 seconds until it starts functioning. Any reason as to why that could be?

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

    How to get real imageview coordinates ?

    Posted: 09 Apr 2020 11:00 PM PDT

    So if i have an image view i can get coordinates by converting to matrix and getting the x and y value but it is relative. If I zoom in the image, the x,y of unzoomed image and x,y of zoomed image will represent different parts of the image depending on where you zoomed in.

    I want to always refer x,y with unzoomed image. How to get this?

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

    Speeding Up Android Studio

    Posted: 10 Apr 2020 02:05 AM PDT

    Pros and cons of encrypting an SQLite DB of my Android app and/or possible threat vectors

    Posted: 09 Apr 2020 02:25 PM PDT

    I'm having a hard time coming up with all of the pros and cons of encrypting my app's SQLite DB and/or the potential threat vectors.

    The reality is, the only way I can see that the DB file could be compromised is if someone has access to the phone, can unlock it, plug it into their computer, extract the SQLite file, and then use `sqlite` to view it.

    Aside from that, are there any other threat vectors that would make encrypting the DB important?

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

    Difference Between MVP and MVVM for Android App Development

    Posted: 10 Apr 2020 12:01 AM PDT

    No comments:

    Post a Comment