• Breaking News

    Wednesday, March 10, 2021

    Android Dev - A custom view that resembles the iOS notification group behavior

    Android Dev - A custom view that resembles the iOS notification group behavior


    A custom view that resembles the iOS notification group behavior

    Posted: 09 Mar 2021 12:48 PM PST

    Best device for developing AR apps?

    Posted: 10 Mar 2021 06:21 AM PST

    We currently have a Note8 (yes, it's old). It has the hard Bixby button which is a major pain when doing demos, etc. We are upgrading and I'm hoping to find a phone that doesn't have a lot of bloat. I know the Pixel seems like the obvious choice, but I just wanted to check in to see what everyone recommends.

    Note that this is not standard android app development, so we don't need to test on a variety of devices. This is a purpose built app that is only used for demonstrating a part of our main product.

    Any tips appreciated!

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

    Recommended Cloud Storage Solution for Storing Individual User Database

    Posted: 10 Mar 2021 12:54 AM PST

    I'm looking for a solution to use for this situation, for say, 10 users:

    • each user has their own database built using Room
    • so far, I am able to store the database file externally and reuse these files if so decided
    • I want the users to be able to store these database in a cloud, and be able to reload them when they want to, so effectively, it is a backup of their database file

    I've looked at Google Drive API v3 for Java after finding out that the Google Drive API for Android has been deprecated.

    After researching some more, I found in this sub that this move is kind of related to Google's push to make developers use Firebase, a paid service of sort. I am somehow familiar with this but have never really used it to an extent; I was only able to experiment with it for a day by hosting a useless MySQL database there and seeing that I can actually synchronize my desktop inputs to the database that was hosted there.

    I haven't begun studying the Google Drive API v3 either and am still on the fence if this is worth my time, since I am still not sure if this is the right track to take if I will implement what I want to implement.

    Anyway, this is where I am at so far, and my questions again are:

    1. How do I go about implementing a measure where individual users can store their Room database into a cloud and retrieve/re-sync their local Room database to what was stored in there?

    2. Is Google Drive API v3 the right way to do this?

    3. Or is Firebase the one I should study?

    4. The storage for the database files should be centralized and the process should be hidden/streamlined from the user's perspective, i.e., they only know that their database is backed up somehow online, and they can recover those data through the app.

    5. Are there any other solutions you recommend that I should look into before I dive deeper into studying a selected approach?

    Thank you very much.

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

    Any reason why init Firebase Crashlytics and Fresco in Application class in Runnable?

    Posted: 10 Mar 2021 02:59 AM PST

    Hi guys,

    I got new project and notice that init of Firebase Crashlytics and Fresco is wrapped in Runnable?

    Any thoughts why? Is it OK at all?

     @Override public void onCreate() { super.onCreate(); Runnable runnable = () -> { FirebaseApp.initializeApp(SpendManagementApplication.this); FirebaseCrashlytics.getInstance().setCrashlyticsCollectionEnabled(true); Fresco.initialize(getApplicationContext()); }; new ThreadPoolExecutor( 2, 2, 60L, TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>(), new PriorityThreadFactory(Process.THREAD_PRIORITY_BACKGROUND) ).execute(runnable); } 

    Thanks!

    UPD:

    code snippet updated

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

    My app's play store rating has averaged a 4.4+ for 5 months straight, with my all time average being a 4.33 over 5 years, yet Google shows my app having a 4.1 rating on the store for almost a year now.

    Posted: 10 Mar 2021 08:54 AM PST

    Android Code-Along: Kotlin coroutines

    Posted: 10 Mar 2021 08:52 AM PST

    Need to do benchmark tests of a Firefox extension on android but don't have an android smartphone, what are my options?

    Posted: 10 Mar 2021 08:12 AM PST

    I thought of using the emulator from Android Studio. Will that work for tests of a Firefox extension?

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

    Facebook audience network problem

    Posted: 10 Mar 2021 07:56 AM PST

    Hello androiddev members, I wanna ask you about Facebook audience network.

    If here anyone have experience in Facebook audience network. I need to know why every time I add my bank account details to payouts I get this message " This platform isn't supported in this payment account's region."

    I tried to use different bank account details but the same result.

    When I contacted Facebook support team, I get stupid reply that they don't accept new publisher now although they open it for all.

    Any one here have experience in this

    submitted by /u/mga-1997
    [link] [comments]

    How to create an android shortcut with external API?

    Posted: 10 Mar 2021 02:15 AM PST

    How to create an android shortcut with external API?

    Something similar to what's available in the shortcuts app in iOS. I am not a super technical person so pardon me if I sound ignorant. I need to collect content from tweets after sharing them and send them via an external API. Have attached an image to represent where I think the shortcut should pop-up.

    https://preview.redd.it/bjpoincve6m61.jpg?width=1000&format=pjpg&auto=webp&s=e9048818804d550ae3f8c07386725ec25f7152dd

    submitted by /u/Potential-Weight-886
    [link] [comments]

    A solution to every Android developer's nightmare: faster debug builds

    Posted: 10 Mar 2021 05:33 AM PST

    In Activity, under what situation getIntent().getExtras() can return a null bundle?

    Posted: 10 Mar 2021 04:08 AM PST

    I have an Activity, it is used as both

    • Pending intent (It is used as drop down notification, home widget)
    • Intent passed as context.startActivity

    I am 100% sure, there is always an intent.putExtra, to pass necessary data to the Activity.

    However, occasionally, in Firebase crashlytics, I can see getIntent().getExtras() returning a null bundle in onCreate.

    I was wondering, how does that ever happen?

    This is the manifest of the Activity

     <activity android:name="com.xxx.widget.NewNoteChecklistLauncherFragmentActivity" android:noHistory="true" android:taskAffinity="com.xxx" android:theme="@style/Theme.Transparent" android:windowSoftInputMode="stateAlwaysHidden" /> 

    So far, I can never reproduce the same problem at my side.

    I was wondering, how does getIntent().getExtras() can return a null bundle in onCreate? Not sure to handle this edge case, is it Ok that I check for the returned bundle, and perform super.finish() if the bundle is null?

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

    Android Studio 4.2 Beta 6 available

    Posted: 09 Mar 2021 10:04 AM PST

    What framework does SoloLearn use?

    Posted: 10 Mar 2021 03:30 AM PST

    I just noticed that there is an app with the exact same UI as SoloLearn.

    Does anyone know what framework was used for it? Is it some kind of stock design for this framework?

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

    Is there any way an app can change text that appears in other apps?

    Posted: 10 Mar 2021 03:13 AM PST

    I'm pretty sure it can't be done, even with a rooted device.

    In Google Chrome, you can "Inspect" elements, change the HTML, and whatever you write in there it'll appear in your screen. I assume the "Translate" feature works like this, pulling text from the HTML and replacing it with the translation.

    Is there any way an app can do the same? I know it can pull text from other apps with "Accessibility" permissions, but not replace it with something else.

    I know even if it was technically possible, it'd be extremely frowned upon and it would definitely not be accepted in the Play Store. And I'm not trying to develop anything like this, in fact I have to prove this cannot be done from a technical point of view.

    Is there any technique, rooted or not, that can achieve this?

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

    Any way to create custom indoor maps?

    Posted: 09 Mar 2021 05:14 PM PST

    I've been looking into creating custom indoor maps for a location guide mvp and I'm not sure which ones to use. Basic premise is to upload a floorplan on the map and use that floor plan as a guide. I checked google maps but you can't really zoom in too much to use a custom image. There's an indoor google map but you have to contact google to register. I've looked into Mapbox and it seems to be a good option. Are there others? I'm starting the mvp for android first then will move to web and iOS if the indoor mapping solution works. Will appreciate your suggestion. Thanks!

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

    Best way to include a `classpath` only in release builds?

    Posted: 09 Mar 2021 07:24 PM PST

    I currently need a classpath of R8 included in my project level gradle file for CI release builds of my app in order for R8 to succeed. I need it disabled for local debug builds as there is a conflict with local tooling (perhaps from Android Studio itself? I admit I'm naive to the actual problem). How can I toggle a classpath dependency in my project level gradle file based on release/debug flavors?

    Here is my project level build.gradle.kts file and the dependency in question:

    ```kotlin buildscript { repositories { google() jcenter() mavenCentral() gradlePluginPortal() } dependencies { // This is only needed for release builds on CI classpath("com.android.tools:r8:2.1.75")

     classpath("com.android.tools.build:gradle:7.0.0-alpha08") classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.30") classpath("com.google.dagger:hilt-android-gradle-plugin:2.31.2-alpha") classpath("com.google.gms:google-services:4.3.5") classpath("com.google.firebase:firebase-crashlytics-gradle:2.5.1") classpath("com.google.firebase:perf-plugin:1.3.5") } 

    }

    allprojects { repositories { google() jcenter() mavenCentral() } }

    tasks.register("clean", Delete::class) { delete(rootProject.buildDir) } ```

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

    What is the CI/CD process in your company?

    Posted: 09 Mar 2021 01:04 PM PST

    How do you build release beta and production? What about git flow?

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

    If you've struggled with Dagger2, I've started a blog series explaining it as simply as I could

    Posted: 09 Mar 2021 03:07 PM PST

    Which of these ways is best used to access the meaning of guessed words?( a word finder with given letters game)

    Posted: 09 Mar 2021 10:40 AM PST

    A) A button on the end page of the game that by clicking on it, we will have access to a list of all guessed words and the main word

    B) A button is placed next to each word that is in the list of guessed words during the game.

    C) A button on the game screen that shows only the meaning of the last guessed word.

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

    No comments:

    Post a Comment