• Breaking News

    Thursday, November 19, 2020

    Android Dev - Google reaction after Apple cut their fee

    Android Dev - Google reaction after Apple cut their fee


    Google reaction after Apple cut their fee

    Posted: 18 Nov 2020 04:12 PM PST

    Roman Elizarov is the new Project Lead for Kotlin

    Posted: 19 Nov 2020 04:14 AM PST

    Apple MacBook Air M1 is very slow in gradle builds

    Posted: 19 Nov 2020 07:26 AM PST

    I run `./gradlew clean assembleDebug --offline` multiple times on medium size project and here is build times:

    MacBook Pro 15 (Mid 2015) – 1:43 m

    MacBook Air 2020 (M1) – 5:40+ m

    Android Studio UI feels sluggish as well. No way to run emulators. I believe we need native JVM/JDK first to consider M1 as decent development platform.

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

    Android Sitemap - Find every link ever pointing to the Android Developer site.

    Posted: 19 Nov 2020 04:44 AM PST

    Android Sitemap aims to be your starting point to find every link pointing to Android Developer sites: Android Developers and Android Open Source Project.

    The repo was created to see the full scope of Android documentation guides and reference APIs. Some gems like API diff, Android Open Source Project reference APIs were discovered in the process which I find very interesting.

    The repo contains only links and no meta information like Title, Description for now as there are 30000+ links.

    The content is generated from here and here.

    Project URL: https://github.com/androiddevnotes/android-sitemap

    Contents

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

    Is anyone using latest gradle and having crash in Android 4?

    Posted: 19 Nov 2020 06:55 AM PST

    Recently, we just upgraded gradle from 4.0.1 to 4.1.1

    But we are getting java.lang.VerifyError: f/i/b/f during Android 4 app start.

    Anyone has experienced the same as I do - https://stackoverflow.com/questions/64914138/java-lang-verifyerror-f-i-b-f-in-android-4-after-upgrade-gradle-from-4-0-1-to-4

    We prefer to use latest gradle 4.1.1 as it claims it generate smaller APK.

    Thanks.

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

    How to contribute to big open source projects?

    Posted: 19 Nov 2020 08:47 AM PST

    I have spent the last 2 years learning Java and Android, the last year in Kotlin. I can make some pretty clean apps now and understand a lot of what I thought it would take to get a job as a developer. In order to grow my skills I started looking into open source projects like Signal who allow bug fixes/contributions. These apps are huge compared to what I'm used to and I cannot really grasp where things are. I figured I would just find a bug and start digging in and hopefully get a grasp of how it all works. Is this similar to how it would be on the job? How can I most effectively become a contributor to projects like this?

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

    Which is the best way to manage more than one ViewModel?

    Posted: 19 Nov 2020 08:27 AM PST

    Thinking about develop an app which needs AndroidViewModel with application context for Room and another class that extend ViewModel with an argument (which brings me to extend ViewModelProvider.Factory)

    All these makes me think which the optimal way to implement ViewModel, is it right to initialize several viewmodels? how would you handle this?

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

    SwipeView using MotionLayout

    Posted: 19 Nov 2020 08:06 AM PST

    cdroid NDK - configurable CMake C and C++ development/packaging module

    Posted: 19 Nov 2020 01:17 AM PST

    https://github.com/Wirtos/cdroidI was kinda uncomfortable with all the magic gradle/forced jni stuff, so I made this in order to easily port/cross-develop small GL/vulkan apps for android in C and C++ (without even a line in java at all). There's a little guides on NDK in general, but it was fun. I saw other projects like this, but they seemed very monolithic and fragile in general. Suggestions are welcomed. All you need is to drag'n'drop cdroid.cmake in your CMake 3.18 project using NDK toolchain and declare some cmake variables.

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

    How I localized my media player app into 50 languages for free

    Posted: 19 Nov 2020 03:05 AM PST

    Responsive UI and problems with AdobeXD export

    Posted: 19 Nov 2020 01:26 AM PST

    Hello.
    I'm new to the Android developing and I'm making my first "bigger" app. I have a prototype in AdobeXD and now want to put it into XML. I searched for the best practices of responsive UI and they suggest using constraint layout and also multiple layouts. I also have a problem where my fields/buttons have shadows, so when I exported them into PNG they have a lot of empty space around and I can't set them as Background of textView, button, etc.. so i have put first imageView of all of them and then over that, I have put the invisible buttons/textviews? is this a very poor practice? If so, do you have any ide how to fix that? Example photo of how my rectangle with shadow exports and normal one: https://i.stack.imgur.com/L0s5y.png

    Thank you for your help, Regards.

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

    I have set my "Target audience" age to 18+ in google play console. But how do I as a user see the age restriction in my app in playstore?

    Posted: 19 Nov 2020 04:23 AM PST

    Play Console: We're unable to process your payment because your tax info is incomplete

    Posted: 19 Nov 2020 03:23 AM PST

    I got this in a big red warning banner on the play console. I clicked on it and then it asked for the information written on my income tax forms which I don't have since I've never paid income tax nor do I think most people in my country pay even though it exists in the law. So I just entered my name in both "full name" and in "signature" and put my address. Did I do something bad? Will this prevent me from getting paid?

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

    Did anybody make in app calling using WebRTC without Firebase servers?

    Posted: 18 Nov 2020 02:32 PM PST

    Basically the title. I know how to implement WebRTC with Firebase to allow users to establish a connection and conversate using the app. I wanted to know is it possible to do with my own server, and how hard would it be to do if somebody knows?

    For example I know doing Notifications without Firebase is borderline impossible to do, so I wanted to see if there is some insight on this issue with WebRTC...

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

    when to use @TypeConverters and when to use the new @Relation

    Posted: 18 Nov 2020 06:04 PM PST

    It seems to be a stupid question idk but, I feel like TypeConverters are more easily to be used instead of making a lot of tables in our code base, I mean after all we're more frontend like developers not backend developers.

    submitted by /u/dev-atef
    [link] [comments]

    Do you prototype your app before coding it?

    Posted: 19 Nov 2020 01:09 AM PST

    Hi all, I am wondering if you are prototyping your mobile app with Adobe XD (or similar) before actually building it? Do you see any advantage doing so (doing some back and forth design testing before implementation) or do you usually go straight to the code?

    The reason I'm asking is because I feel that prototyping is going to take me a lot of time! But I'm wondering if it will also help me doing more visual testing too as I often find myself testing once the code is done, which is not very optimal.

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

    Implement a certain type of horizontal scroll view

    Posted: 18 Nov 2020 08:58 PM PST

    Implement a certain type of horizontal scroll view

    How do I implement the UI as shown?

    • When user clicks on the 'go left' button, the box to the left of the currently selected box gets chosen(unless it's at the very start) and a viewpager changes the fragment shown below (the Live feed thing). It's not shown in this mock up but there will also be a 'go right' button to the right (self-explanatory).
    • The user also has the option to click on any of the visible boxes itself to instantly go to the fragment corresponding to that box without using the go-left/right buttons.
    • When the user reaches the rightmost visible box, then they'd have to use the 'go right' button to show more boxes until the end is reached

    Earlier, I implemented a horizontal scroll view here but it isn't actually what is shown in the mock up. However, if you have criticisms of the UX of this UI, feel free to say so, it's subject to change anyway (I didnt make these btw, the UI guy gave them to me, but isnt totally required to make it look like this if it's bad UI)

    https://preview.redd.it/mpw5mvv7p4061.png?width=572&format=png&auto=webp&s=87759efed4c7c0b3d8776e914332bb9a80973b56

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

    What is the best way to running Linux apps on a Xiaomi Mi 8?

    Posted: 19 Nov 2020 03:32 AM PST

    I don't know anything about this subject and Linux. I just need to run some lite desktop applications on my Mi 8 (MIUI 12.0.1) what is the best way to do this? Will I have problem accessing and editing files on the device? Thank you

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

    Anyone still using GeoFire, and using Kotlin? I've developed a small geofire-ktx library for converting GeoQueries to Flows.

    Posted: 18 Nov 2020 07:54 PM PST

    https://github.com/psteiger/geofire-ktx

    /** * Transforms a [GeoQuery] into a cold [Flow] of maps between [GeoQuery] keys * and corresponding [GeoLocation]s. */ fun GeoQuery.asFlow(): Flow<Map<Key, GeoLocation>> /** * Transforms a [GeoQuery] into a cold [Flow] of maps between [GeoQuery] keys * and corresponding [LocationDataSnapshot] objects, which contain the * [GeoLocation] and the [DataSnapshot] stored in "[dataRef]/$key". */ fun GeoQuery.asFlow(dataRef: String): Flow<Map<Key, LocationDataSnapshot>> /** * Transforms a [GeoQuery] into a cold [Flow] of maps between [GeoQuery] keys * and corresponding [LocationData] objects, which contain the [GeoLocation] * and an object of type [T] (the object obtained by converting the * [DataSnapshot] stored in "[dataRef]/$key" to an object of type [T]). */ inline fun <reified T : Any> GeoQuery.asTypedFlow(dataRef: String): Flow<Map<Key, LocationData<T>>> 
    submitted by /u/psteiger
    [link] [comments]

    What is your strategy of passing around Object with vary size from Activity to Activity/ Activity to Fragment?

    Posted: 18 Nov 2020 05:35 PM PST

    All the while, using Parcelable is my only choice, to pass around the Object with vary size from Activity to Activity/ Activity to Fragment.

    Most of the time, our Object size is below 500 kilo bytes, which is still Okish to use Parcelable to pass around.

    However, as our user base grow, from Firebase Crashlytic, we notice there are edge cases, where we will hit by Caused by android.os.TransactionTooLargeException. We will need to rework our previous strategy

    - Use a singleton in memory do hold the Object. Doesn't work on low memory condition/ app restoration.

    - Passing around SQLite row id. Perform read operation in receiver. Decrease performance and increase code complexity. As, I/O operation is time consuming and we need to rework our code in async way.

    Do you encounter such issue? What is your strategy of passing around Object with vary size from Activity to Activity/ Activity to Fragment?

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

    Create array from a lot of variables with similar name [Java]

    Posted: 18 Nov 2020 11:08 PM PST

    Hey all, I can't seem to find an ansewer online because I can't seem to articulate myself properly haha

    so, I've got the following variables:

     public String strIngredient1; public String strIngredient2; public String strIngredient3; 

    Is there a way to put them all into an array without adding them one by one? specifically, to check if they're null and only then add them to an array list

    Super noob here, sorry!

    submitted by /u/Bullfrog-Dear
    [link] [comments]

    A pragmatic guide to Hilt with Kotlin

    Posted: 19 Nov 2020 02:31 AM PST

    Anyone has experience with One-Time permissions in Android 11?

    Posted: 18 Nov 2020 10:33 AM PST

    Hi,

    When I choose "Only this time" option in the permission dialog, kill the app and call

    ContextCompat.checkSelfPermission() 

    it always returns

    PERMISSION_GRANTED 

    I am using the new Activity Result API and I am following these guides https://developer.android.com/training/permissions/requesting#one-time but I am stuck on handing the "Only this time" option. Can someone help?

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

    I'm new to app development. Why is google taking away almost 70% of my profits every month? What does the negative dollars in this pic mean?

    Posted: 18 Nov 2020 09:01 AM PST

    No comments:

    Post a Comment