• Breaking News

    [Android][timeline][#f39c12]

    Thursday, May 26, 2022

    Slack clone app built with Jetpack Compose and Stream Chat SDK following clean architecture principles. Android Dev

    Slack clone app built with Jetpack Compose and Stream Chat SDK following clean architecture principles. Android Dev


    Slack clone app built with Jetpack Compose and Stream Chat SDK following clean architecture principles.

    Posted: 26 May 2022 04:35 AM PDT

    Google releases Android 13 beta 2.1 for Google Pixel 4, 4a, 4a 5G, 5 and 6

    Posted: 26 May 2022 11:07 AM PDT

    Android NDK Firebase Crashlytics Symbolication for C++

    Posted: 26 May 2022 10:58 AM PDT

    I'm getting NDK Crashes in Firebase from my Android app written in java, but there is no symbolication for them, only:

    SEGV 0x0000000000000000 libnative-lib.so (Missing UUID bbcaa3aa5d4aea6d2f4865d907eced52ccb8835a) libart.so (Missing UUID adb75d6f792faa24b1bc8cf512fb112c) 

    I've followed all indications from the Firebase documentation but still nothing.

    Here's my project level gradle:

    // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:7.1.3' classpath 'com.google.gms:google-services:4.3.10' classpath 'com.google.firebase:firebase-crashlytics-gradle:2.8.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { google() jcenter() } } task clean(type: Delete) { delete rootProject.buildDir } 

    And app gradle:

    plugins { id 'com.android.application' id 'com.google.gms.google-services' id 'com.google.firebase.crashlytics' } android { compileSdkVersion 32 defaultConfig { applicationId "com.example.myapplicationid" minSdkVersion 18 targetSdkVersion 30 versionCode 10 versionName '1.2' multiDexEnabled true vectorDrawables.useSupportLibrary = true testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" externalNativeBuild { cmake { cppFlags "-ljnigraphics -Wl,--build-id=none" } } ndk { stl "stlport_shared" } } buildTypes { release { /* Add the firebaseCrashlytics extension (by default, * it's disabled to improve build speeds) and set * nativeSymbolUploadEnabled to true. */ firebaseCrashlytics { nativeSymbolUploadEnabled true } minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } debug { /* Add the firebaseCrashlytics extension (by default, * it's disabled to improve build speeds) and set * nativeSymbolUploadEnabled to true. */ firebaseCrashlytics { nativeSymbolUploadEnabled true } minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } externalNativeBuild { cmake { path "src/main/cpp/CMakeLists.txt" version "3.10.2" } } flavorDimensions "version" productFlavors { GoogleFlavor { dimension "version" applicationIdSuffix = ".google" } SamsungFlavor { dimension "version" applicationIdSuffix = ".samsung" firebaseCrashlytics { nativeSymbolUploadEnabled true } } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } } dependencies { implementation 'androidx.appcompat:appcompat:1.4.1' implementation 'com.google.android.material:material:1.5.0' implementation 'androidx.constraintlayout:constraintlayout:2.1.3' implementation 'com.google.android.gms:play-services-ads:19.7.0' implementation project(path: ':IAP6Helper') testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test.ext:junit:1.1.3' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' implementation 'com.android.billingclient:billing:4.1.0' implementation 'com.google.code.gson:gson:2.8.6' implementation platform('com.google.firebase:firebase-bom:26.0.0') implementation 'com.google.firebase:firebase-analytics' implementation 'com.android.support:multidex:1.0.3' implementation 'com.google.firebase:firebase-config' implementation 'com.flurry.android:analytics:12.1.0' // Import the BoM for the Firebase platform implementation platform('com.google.firebase:firebase-bom:27.0.0') // Add the Firebase Crashlytics SDK. implementation 'com.google.firebase:firebase-crashlytics:18.2.9' implementation platform('com.google.firebase:firebase-bom:27.1.0') // Add the Firebase Crashlytics NDK dependency. implementation 'com.google.firebase:firebase-crashlytics-ndk:18.2.9' // Pull and compile the latest release of the Amazon Appstore SDK implementation 'com.amazon.device:amazon-appstore-sdk:3.0.2' } 

    And pro guard:

    # Add project specific ProGuard rules here. # You can control the set of applied configuration files using the # proguardFiles setting in build.gradle. # # For more details, see # http://developer.android.com/guide/developing/tools/proguard.html # If your project uses WebView with JS, uncomment the following # and specify the fully qualified class name to the JavaScript interface # class: #-keepclassmembers class fqcn.of.javascript.interface.for.webview { # public *; #} # Uncomment this to preserve the line number information for # debugging stack traces. #-keepattributes SourceFile,LineNumberTable # If you keep the line number information, uncomment this to # hide the original source file name. #-renamesourcefileattribute SourceFile -keepattributes SourceFile,LineNumberTable # Keep file names and line numbers. -keep public class * extends 

    What could it be ? I'm stuck with this for days and can't figure it out.

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

    identifying & fixing UI blocking code

    Posted: 26 May 2022 08:14 AM PDT

    I am working on an old project that have a significant codebase, I noticed that the devs who where working on it didn't do a great job with coroutines and API calls, the result was UI blocking operations all over the app.

    Is there an easy way to identify the bad use of coroutines and fix this problem?

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

    Android Studio for AOSP

    Posted: 26 May 2022 08:06 AM PDT

    Hi, are there any plans for Android Studio to make it more useful for AOSP developers? I am Talking about writing native modules, Android blueprints, Soong etc. Even writing apps with blueprints will be cool. Currenlty there is only gradle supported. It sometimes resulsts in that in code base 2 versions of build system need to be mainenanced instead of one.

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

    What is the best way to develop a profile visits counter?

    Posted: 26 May 2022 12:24 PM PDT

    Let's suppose you are working on a specific app and this app contains a fragment called ProfileFragment.

    The customer told you, He wants to add a text that shows inside it the number of profile visits inside ProfileFragment.

    The customer doesn't need to show a total of profile visits only but he also wants to give the user ability to filter the visits like this

    • Last 24 hours
    • Last 7 days
    • Last 30 days
    • Last 365 days
    • All time

    1- As a developer, How you will design the table in MySQL? (Best practices)

    2- How you will handle or get millions of visits because that will affect performance.

    I'm here to learn from you, Thank you.

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

    Lazy Grid layouts in Compose

    Posted: 26 May 2022 04:25 AM PDT

    How do I replicate the infinite onUpdate bug that happens with WorkManager + Homescreen Widgets?

    Posted: 26 May 2022 11:39 AM PDT

    I've migrated my old code to update widgets from background services to WorkManager now, but unfortunately I once saw infinite loop triggered because of it in the logs, which is mentioned in detail here ->

    https://commonsware.com/blog/2018/11/24/workmanager-app-widgets-side-effects.html

    It's a bug in WorkManager, which is being passed on as "Intended behaviour" by Google from their issue tracker here -> https://issuetracker.google.com/issues/115575872

    It's been like a month now I've been trying to replicate the same thing, by rebooting the device but it's not triggered again.

    The recommended approach is to "not unconditionally enqueue work in onUpdate". Does that mean I have to set constraints on WorkManager request? Right now I have "NetworkType.Connected" as a constraint in WorkManager request (I'm using CoroutineWorker as well). Is that why it's not being triggered?

    In the meantime I've added mechanism to keep track of last onUpdate call on widget, and I'm only making API calls if a certain time has passed between each onUpdate call (more than 15 minutes). But I'm still unsure as to whether I should release the app update, because if it triggers an infinite loop, it's just going to drain out users battery really quick. And I might end up with really bad ratings on my app because of this.

    Is there any way to replicate the said behaviour?

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

    Gradle switch between local and remote dependencies is it posible ?

    Posted: 26 May 2022 09:43 AM PDT

    Consider the following use case:
    I have an Android application (in a repo A) that depends on a library project (in a repo B). When implementing a new feature in the Android application, I have to modify the library project as well.
    However , I want to be able to switch between the dependencies , meaning localy i want to use the library project and whenever the server builds the App it should use the remote dependency.

    So something like if debug build use local project else if release use dependency version.

    I found out that i can use composing builds something like this (in settings.gradle)

    include 'app' // tag::composite_substitution[] includeBuild('anonymous-library') { dependencySubstitution { substitute module('org.sample:number-utils') using project(':') } } // end::composite_substitution[] 

    but i dont know if this will do what i want.

    Now my question is , is it posible to have the local module for local builds and remote dependencies

    implementation 'org.company:very-big-dependency:2.7.1' for builds on the server ?

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

    Cisco AnyConnect & Android Studio Internet Issues

    Posted: 26 May 2022 08:15 AM PDT

    Has anyone been able to successfully connect Android Studio to the internet when on Cisco AnyConnect VPN? I'm unable to access a lot of my work resources when on my vpn, but Android Studio & AVD's have no access while on it. It's quite annoying to be turning it on and off all day.

    I've tried the solution in this old thread, but it's not working for me . (I've tried my IP, VPN IP)
    https://www.reddit.com/r/androiddev/comments/9d6sbk/android_emulator_macos_vpn/

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

    Keeping references to started activities for gaming frontend?

    Posted: 26 May 2022 06:26 AM PDT

    Hi guys, while I consider myself a developer, my knowledge of android dev is almost non-existant. But I just received an Odin Pro gaming handheld, which runs on Android - and I've been trying different emulation/gaming frontends/launchers to get the whole console experience as integrated as possible.

    Now my question is: would the android APIs allow a potential game launcher to keep track (aka references) of all the activities it started via intents?

    Potential use case: I start a game/emulator from within my game launcher, which creates the corresponding intent and starts the activity A. When I push the home button, I return to my game launcher which is now aware, that there's still activity A running in the background.

    My business logic would then be able to do various things with the reference in order to make to make the whole experience feel more like a real console OS. I don't wanna get into details, but stuff gets pretty messy with different games running in the same emulator and so on.

    Thanks a lot in advance.

    submitted by /u/jack-rabbit-slims
    [link] [comments]

    New simple app ideas for company portfolio?

    Posted: 26 May 2022 04:27 AM PDT

    I recently joined a startup company. Currently only one application is published under company. The project manager needs few simple but unique app ideas to develop as apps under company name.

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

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel