• Breaking News

    Monday, January 25, 2021

    Android Dev - Weekly Who's Hiring Thread - January 25, 2021

    Android Dev - Weekly Who's Hiring Thread - January 25, 2021


    Weekly Who's Hiring Thread - January 25, 2021

    Posted: 25 Jan 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]

    Is there a way to increase the size of the "+" and "-" code folding buttons in Android Studio?

    Posted: 25 Jan 2021 03:04 AM PST

    Is there a way to increase the size of the "+" and "-" code folding buttons in Android Studio?

    It feels like a mini-game when trying to click the buttons because it takes some effort to click inside the button bounds without accidentally creating a breakpoint because the mouse click happened outside the bounds of the 5x5 or so pixels available for the "+" and "-" buttons.
    It will be a real quality of life improvement if there was a way to make these bigger.

    Code folding buttons

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

    A new open-source project for developing applications without handling complex data issues

    Posted: 24 Jan 2021 03:40 PM PST

    As I am currently releasing an open-source DB which is client first on Android, I would like to animate a discussion here about the development of applications with specific features, I think about:

    • Offline first, like your todo list
    • Live multi-device synchronization, like WhatsApp you can use on your phone and your browser
    • Multiple user collaboration with versioning: just like google doc
    • End-to-end encryption: like WhatsApp again

    So did you already came across the challenge of getting the features listed above in your app? Was it a hassle or did if you find easy solutions to implement them? - I have a small experience of existing solutions, and I will be happy to deep dive into your references.

    On my side, I am publishing with an open-source license a new kind of database. Basically, you just use it as a normal DB, by writing values on attributes and it manages all the properties I listed above. It's based on an immutable structure but the developer doesn't really need to care about that, it's totally automatized from his entries. We did a POC in this messenger app, which is offline-first, end-to-end secured, and collaborative.

    ⭐You can discover the database open-source project here.

    I and the main author of Condensation are here to answer your questions concerning the project.

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

    More on the Android FOSS assistant.

    Posted: 24 Jan 2021 04:19 PM PST

    Hello all. I posted on here a little while back about creating a FOSS assistant app for Android. Good progress is still being made, and I am a few tweaks away from the Alpha being good to go.

    I am starting to fill out some of the documentation/wiki on Github, but could use some input on what other devs would find useful to know about the project. It is intended to work as a platform to allow a user/developer the ability to extend their device and accessibility and I intend for it to integrate w/ Alexa/Google/Mycroft/Termux/Tasker, but I am just a lone dev and don't have experience with everything. Having some input (in the form of questions) can help me best present to an other interested devs ways that they can hack on it, and what falls inside/outside my scope of design.

    I made a note on the README that asks any interested party to open an Github issue if you have a question you want answered about its design, philosophy, stability, integration, etc and I will try to work what I can in to the wiki. As for having a usable copy (for devs, not end users) I expect Feb will be the deadline. I originally slated if for January, and am roughly on track, but my military obligations are many and take up time unexpectedly.

    For a quick reference: It is an on-device assistant application designed in a modular way to allow growth and customization. On device STT is handled using VOSK, natural language processing is done using Stanford CoreNLP, and it currently works on devices between Android 7.1 and 10

    Thank you for any interest and feedback, and sorry if this is obtrusive to the subreddit! I'm just excited about the design and its potential

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

    What is the app gallery cut off for iap?

    Posted: 25 Jan 2021 08:29 AM PST

    I can't find what is the cut off of huawei's app galery iap?

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

    I just spent 3 hours trying to repair my app and it turns out emulator wasn't working properly.

    Posted: 24 Jan 2021 09:17 AM PST

    onOptionsItemSelected wasn't called in my app. I tried everything to fix it without any luck. Finally in despair I hooked my phone to pc and launched app. It worked 100%. Instead of doing something productive I just lost 3 hours trying to fix app that wasn't broken. I feel sad

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

    Using Hilt’s ViewModelComponent

    Posted: 25 Jan 2021 07:02 AM PST

    How to get my app internationalized without translating the brand name?

    Posted: 25 Jan 2021 06:27 AM PST

    I'm breaking my head on this. On App Store, I can achieve that by adding custom keywords. But on Google Play, it's not possible to add arbitrary keywords.

    For example, both "Facebook" and "เฟซบุ๊ก" (Facebook wrote in Thai) will give you facebook results, and the "Facebook" word is not translated, keeping the brand name always in the original language.

    How can I achieve this in my app without translating my brand name?

    OBS: My app already has english and thai support setup in playstore.

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

    Deep diving android view classes.

    Posted: 25 Jan 2021 05:17 AM PST

    I am planning to take a deep dive in android view classes just for understanding and getting better at design sake.

    But with jetpack compose around the corner, will it be a good idea to invest so much time in View classes?

    I have very basic idea about compose, and I am not even sure if this question is valid or if both even belong to the same category.

    Assuming Compose becoming the standard, will we be working with standard view classes?

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

    I found an Intel Graphics problem with AVD, how to report this?

    Posted: 24 Jan 2021 09:15 PM PST

    I found an Intel Graphics problem with AVD, how to report this?

    After a lot of investigation I found that the Intel Graphics drivers (I'm at latest 01/08/2021 on my HD630 iGPU) is giving a broken UI on Android AVD.

    I tried HAXM and UI is broken too.

    I tried WHPX and UI is broken too...

    I tried running the AVD with Nvidia and UI is working as expected.

    I tried KVM on Ubuntu just to rule out the Intel Graphics and UI is working as expected. So...

    Definitively an Intel Graphics Driver issue. What should we do about this? Is there a official way to notify Android Studio Devs or Intel Support?

    This is an image of how the broken UI looks:

    https://preview.redd.it/hcw0nu65xed61.png?width=1080&format=png&auto=webp&s=9251360077771ad2bfe7c3aaf2154ea5ceeb651f

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

    Is my app a news app?

    Posted: 25 Jan 2021 04:38 AM PST

    I'm a bit confused by this new requirement in google play console

    My app is primarily a sports fantasy game, but it does have an aggregated news feed as a secondary feature. So is it considered a news app if the primary function is not news?

    I'm worried about it being labeled with News on the store and people expecting to find primarily news content in there.

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

    Compose | Horizontal expanding Cards

    Posted: 25 Jan 2021 03:32 AM PST

    I left Android dev last year because of my studies. Now I got a job interview, any resource to prepare?

    Posted: 25 Jan 2021 02:30 AM PST

    Last year, I resigned as an Android dev to fully focus on my studies. Since then, I have only made 1 toy project with arch components, and that's it.

    Now I have like 2 days to prepare for the interview and I want to go through some latest trends/topics that could be asked during the interview. Currently, I am planning to cover DI (I have never used it), coroutine, and compose UI. Also, the interview is for mid-level dev.

    Thank you for reading!

    Please help, if you can!

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

    How do you guys get good build speed? Emulator speed ups.

    Posted: 25 Jan 2021 01:02 AM PST

    I have been using recommended gradle.properties and the guide at https://developer.android.com/studio/build/optimize-your-build. Still I feel build times are slow, the pain of waiting to see the change is a tad too much.

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

    Jetpack Compose: on handling config changes and getting rid of Fragments and ViewModels

    Posted: 24 Jan 2021 09:56 AM PST

    I've written two articles about how, with compose, we can overcome some of the biggest pain points of Android development.

    I describe the pain points, explain why compose can help, and how to do it.

    I hope you enjoy them, and please share your thoughts!

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

    Playgameservices not logging in on some phones

    Posted: 24 Jan 2021 09:15 PM PST

    I implemented GPGS for Android in Unity, and a strange problem comes up on some phones. (On most phones it works perfectly). The Play Games log-in window appears and starts to log in but fails. The game is on internal test track. One of the phones which can't log in is a Galaxy S20U.

    Did anyone else encounter this problem?

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

    BottomNavigationView And Navigation Component Bug

    Posted: 24 Jan 2021 03:03 PM PST

    Fragments' states are not preserved and they are always added on top of the last one when you try to navigate using the bottom navigation view. Therefore, keep in mind that you should use workarounds like these:

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

    Anyone have any idea what function is done by the settings process: "TrafficUsageAlarmIntent"? I have never came across it running on my device before until now.

    Posted: 24 Jan 2021 05:22 PM PST

    Why is my Relativelayout broken on fragments?

    Posted: 24 Jan 2021 03:19 PM PST

    I have created a bottom navigation bar from this tutorial https://www.youtube.com/watch?v=JS3DIb4x1JQ&t=1352s, but RelativeLayout doesn't work properly on fragments. Here is the code of bluetooth fragment with textview in the middle:

    <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent"> <TextView android:id="@+id/bluetooth" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="#0472FE" android:text="Bluetooth" android:textSize="30dp" android:layout_centerInParent="true" /> </RelativeLayout> 

    Java class for bluetooth fragment:

    package com.example.nesto; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.fragment.app.Fragment; public class BluetoothFragment extends Fragment { @Nullable @Override public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { return inflater.inflate(R.layout.fragment_bluetooth,container,false); } } 

    This is what it looks like in design

    And this is what it looks like in android emulator

    How do I fix it?

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

    Laptop specs for Android Studio

    Posted: 24 Jan 2021 03:10 PM PST

    My current computer is four years old and used to run Android Studio ok, but now it's always slow and sometimes unusable. Specs are: i7 - 7500, 16GB RAM, and a hard drive. A replacement I'm looking at has an i7 - 10750H, 16GB RAM, and a choice between an SSD with 32GB Optane or an NVMe M.2 SSD. Should this be a significant improvement or should I try for something better? Thanks.

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

    Architecture Question MVVM + DataBinding

    Posted: 24 Jan 2021 02:44 PM PST

    Just finished reading this RayWenderlich article that goes over Android MVVM and how it compares to other arch patterns.
    One thing that sticks out to me about this article and DataBinding in general is how the examples will usually show the views being directly hooked up to data models, often accessing properties on the models themselves. The first part of the article talks about how the view layer should only be dependent on the ViewModel layer, but if the views are bound to model properties directly, doesn't that mean that the view now depends on the ViewModel (who holds the LiveData<Model>) AND the Model itself?

    The article example looks like this: xml <layout xmlns:android="http://schemas.android.com/apk/res/android"> <data> <variable name="user" type="com.example.User"/> </data> <LinearLayout android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@{user.firstName}" android:id="@+id/firstName"/> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@{user.lastName}" android:id="@+id/lastName"/> </LinearLayout> </layout> </xml>

    And as you can see, what looks to be a Model layer class User is referenced in a View layer component. Shouldn't it look more like this?

    xml <layout xmlns:android="http://schemas.android.com/apk/res/android"> <data> <variable name="uiModel" type="com.example.UiModel"/> </data> <LinearLayout android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@{uiModel.userFirstName}" android:id="@+id/firstName"/> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@{uiModel.userLastName}" android:id="@+id/lastName"/> </LinearLayout> </layout> </xml>

    This way the ViewModel can expose the things that the View needs via the UiModel (which would be a ViewModel layer class), without the view actually knowing the structure of the data/model layer.

    Any insights are greatly appreciated.

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

    Modules, Interface and choosing between multiple implementations

    Posted: 24 Jan 2021 12:57 PM PST

    So I've successfully avoided gradle modules until now, but I really think I need to learn how to use them. Googling hasn't gotten me very far, so I'm curious what people here have to say.

    My problem: I want to integrate Google Play Billing, but also want to offer a Google-free version on F-droid. I imagine it like this: A wrapper interface around the billing logic, and a Google Play Billing implementation of that interface as well as a Google-free one. Then with some kind of build flag (flavors?) I can decide which one is used to build.

    Ideally this would work so the Google-dependent implementation never appears when building the open source version, so I think the modules would have to be dependencies that are only applied if the right build flag is set. I don't know whether that's possible though (I could also maintain two branches if it's not).

    How would you solve this? I would have thought that this is a pretty frequent scenario, but I can't find anything explaining how to do this in detail. I don't use Dagger by the way.

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

    Does this make sense? Kotlin for frontend, Kotlin + R + SQLite for backend.

    Posted: 24 Jan 2021 11:43 AM PST

    Hey everyone,

    I'm creating an app with a friend, and we're currently making the big choices up front. What does the collective wisdom of r/androiddev have to offer?

    - We want to create a data driven app for a specific niche that gives users a report once a week as a reward for entering their data. It also rewards them with new reports at certain stages of their app usage.

    - The idea for the backend is to set up a home server that calculates these reports adhoc. So a user will send a few data points to the server through the app, which is then added to a sequential list of tasks. The order in which these tasks are received from each user doesn't matter hugely, so long as the server receives the data eventually (i.e. within a day).

    - The list of tasks is run in sequence regularly - i.e. adding rows to the SQLite database, running queries from the SQLite database, and creating R Markdown reports in the R programming language based on the queried data. These reports are then sent to a web server that hosts our app website, which will house all of the reports for all users. They can only access them with username/password.

    - In theory, the SQLite queries/updates can be run in parallel with the R Markdown report creation. However, SQLite only allows one user to access the database at a time, hence the sequential access. We are assuming that the number of app users would, at least initially, be low enough that this would not be a problem. We can always scale up later.

    - The reports are sent to the user once a week (or thereabouts), and they receive a notification for these. They can then view them through a WebView activity in the app.

    Does this make logical sense? Is there a smarter way to do this? The reason we want to use R is because R is our primary language, we want to iterate quickly, and we think it has the best plotting/statistical tools for the data we have in mind. Also, R Markdown reports are fantastic, and far simpler than getting Java graphs to work well in Android. Or am I mistaken?

    Thanks very much!

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

    No comments:

    Post a Comment