• Breaking News

    Monday, December 6, 2021

    Android Dev - Save me before interview

    Android Dev - Save me before interview


    Save me before interview

    Posted: 05 Dec 2021 06:57 PM PST

    After 2 years being away from coding. Luckily I have a pretty descent job opportunity in a good company. My technical interview is this week so it would be appreciated if anyone can suggest a course or simple project that covers most used features.

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

    Android 11 Shared Storage

    Posted: 05 Dec 2021 10:35 PM PST

    Hello all,

    I'm working on an app that targets Android 11 and am trying to wrap my head around the framework. Namely, is it still possible to read a file from the shared images, edit it, and write to it still? If so, how would I go about doing that?

    If this is the wrong place to post, please let me know.

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

    The Case of the Disappearing Days

    Posted: 05 Dec 2021 07:28 AM PST

    I'm confused by Material 3: where are the Text Fields?

    Posted: 05 Dec 2021 06:20 AM PST

    I'm confused by Material 3: where are the Text Fields?

    Is the current version of Material 3 some kind of early preview? I'm asking because it's missing some important components like Text Fields and Snackbars. And, I can understand that Snackbars may be dropped with Material 3, but what about the Text Fields?

    And, just to be clear, I'm not talking about the current implementation of the platform specific libraries, that I understand could not provide yet all the components, I'm talking about the official M3 specifications:

    https://m3.material.io/

    The Text Fields are missing also from the official Figma Tool Kit.

    I really do not understand how they can launch Material 3 without the Text Fields: how is the user supposed to input text inside the app? Am I missing something?

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

    Read from JetPackDataStore

    Posted: 06 Dec 2021 01:29 AM PST

    Hi guys,

    I found a wrapper for JetPack DataStore and I am using it like this:

    val manager = PreferencesManager(dataStore)

    GlobalScope.launch {
    manager.saveCountryAddress("https://example.com/")
    }

    But it's not suitable at all for my workflow. (I am new to android dev)

    I need to pass the Context for this and in Activities seems ok but on my singleton NetworkService is not. I don't want to pass the endpoint everytime I make a network call so I save the URL into the DataStore and I want to load it whanever I make a network call.

    Also, seems to be async this whole operation which I don't really need.

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

    Finite State Machine with Unit Tests - Real World Example

    Posted: 05 Dec 2021 11:26 PM PST

    I'm interested to see your GitHub repositories

    Posted: 05 Dec 2021 07:05 AM PST

    Sketch - An image manipulation library for Kotlin

    Posted: 05 Dec 2021 11:13 PM PST

    Where do I start?

    Posted: 05 Dec 2021 08:38 PM PST

    I have what I think is a brilliant social media app idea and I wished I knew how to build an app so it got me wondering about how apps are made and now I'm invested in learning. So where do I start? if not, then if I have an app idea, who do I pitch it to?

    thanks guys

    submitted by /u/homesick-hobo
    [link] [comments]

    What is the best way to manage and organize build gradle dependencies?

    Posted: 05 Dec 2021 02:17 PM PST

    Here's an example of an interesting way I've seen it done using the Ext block but organizing the versions and deps into arrays.

    ```
    // Root Level Gradle
    ext {
    versions = [
    'CardView': '28.0.0'
    ]
    deps = [
    support = [
    'CardView': "com.android.support:cardview-v7:${versions.CardView}"
    ]
    ]
    }

    // Module Gradle

    //Card View Dependency
    implementation deps.support.CardView

    ```

    Here's another way I've seen it done where they create a separate gradle file called versions.gradle and use groovy to organize versions and deps:

    ```
    // versions.gradle
    ext.deps = [:]
    def versions = [:]
    versions.glide = "4.8.0"
    versions.cardview = "1.0.0"
    ext.versions = versions

    def deps = [:]
    def glide = [:]
    glide.runtime = "com.github.bumptech.glide:glide:$versions.glide"
    glide.compiler = "com.github.bumptech.glide:compiler:$versions.glide"
    deps.glide = glide

    // module gradle
    dependencies {
    // Glide dependency
    implementation deps.glide
    // CardView dependency
    implementation deps.cardview
    }

    ```
    The drawback to this is that there's no autocomplete and you can't click on the dependency and be taken to it's location. The other way to do it which does have those benefits is using a buildSrc directory. I'm curious how other people are doing it though. Technically, using the Ext block is the recommended way to do it according to Google, but that doesn't necessarily mean it's the best way to do it. I guess that's why I'm asking....what is the best way?

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

    When you want to make an update on an app/game thats in google playstore does it go through another review process like when you first published it? Or is it shorter I'm assuming. Because the first one is really long :/

    Posted: 05 Dec 2021 07:41 PM PST

    Is the Google Drive API / "App folder" for developers actually going away?

    Posted: 05 Dec 2021 09:11 AM PST

    A while back, I read:

    "Support for storing and syncing in the app data folder will likely be removed from Drive in the future. Clients requiring app data storage are strongly encouraged to migrate to a non-Drive solution such as Cloud Firestore."

    I thought this was supposed to happen in late 2019, but nothing has happened yet, and the Google page where I read it now has a 404 error. I assume this means they decided against it? Anyone know anything? I know many note-taking apps that use Google Drive sync. and was curious how those users would be affected.

    submitted by /u/Puzzled-Actuator7330
    [link] [comments]

    What architecture pattern is best for AR apps?

    Posted: 05 Dec 2021 05:08 AM PST

    Hello. Currently, I am using MVVM. My app requires the user to create AR objects by tapping on the scene and then interacting with them. Everytime an AR object is created, I create a Database object for it and add it to my SQLite database via Room.

    Whenever the user interacts with an existing AR object, I update the corresponding Database object. However, my understanding about MVVM is that it is more used for updating a UI (like showing a list of items and so on). Is it a good idea to use MVVM for an AR app? I am interpreting the AR scene as a sort of UI that shows the AR objects to the user. Is there an architecture pattern specific for AR apps?

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

    How should achievements be managed with and without Google Play Games?

    Posted: 05 Dec 2021 02:18 PM PST

    Hello everyone, I'm a little bit puzzled about something and I would like your opinion on it!

    (To avoid repeating Google Play Games I will be refering to it as GPG)

    Suppose you have an implementation of leaderboards and achievements via GPG in your android game. This ensures that players are (supposedly) more engaged in competing in leaderboards and trying to get all the game achievements.

    Now, what I'm trying to figure out is the best practice in case a player doesn't have GPG installed (or doesn't want it). Of course, at this point, leaderboards (unless managed on your own servers) are out of the picture, but what about achievements?

    Objectively speaking achievements could be managed fairly easily in an offline way which includes: storage via database, viewing them all, verifying unlocks, increments and even showing a neat graphic to the players on unlock.

    The main problem here is having to manage both instances of achievements: your offline implementation and the one from GPG.

    In the best case, a player already has GPG installed and then you let the game manage everything via it.
    But what if a player decides to uninstall GPG at a moment where it already has unlocked some achievements?
    What if a player installs your game, doesnt have GPG, unlock some achievements (managed in the offline way), but then decides to install GPG?

    At first glance it looks pretty easy to just implement the GPG achievements and display the GPG login page when a player tries to access them (or an error if they don't have GPG installed). But I think that doing things this way will inevitably cut out a part of players from the "thrill" that lays in trying to get all the achievements, and therefore reducing engagement in your game.

    So, in conclusion, what do you think the best practice is and why?

    Thank you all for your time!

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

    My app is "unreviewed" how do I get it reviewed. It's uploaded, I have a description, it's also on closed testing. Do I really have to publish it live for it to get reviewed?

    Posted: 05 Dec 2021 11:13 AM PST

    Clean architecture domain layer

    Posted: 04 Dec 2021 08:45 PM PST

    1. So what's your opinion of using it on a CRUD app with almost no business logic?
    2. Is there any actual benefit? What about decoupling?
    3. What about writing test cases for domain layer as well for 100% coverage?

    Note. I know some company have gone so far as to remove the domain layer, while others embraced it even when it actually doesn't host any business logic.

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

    Android Emulator

    Posted: 05 Dec 2021 01:51 AM PST

    what is the best emulator for low specs pc because when I use Bluestack or Android Studio emulator the pc becomes too slow that I cannot open even chrome to search for errors that happened in the app or when I did that The visual studio and the emulator will be crashed ...so how can I use an light emulator with efficiency so I can develop in an easy way?

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

    Is OpenGL ES 2 book from 2013 still useful nowadays?

    Posted: 05 Dec 2021 01:02 PM PST

    Hello,

    I'm trying to get into game dev on android. I think I wanna use openGL and I found this book on using openGL for android, but it came out in 2013, and its for version 2.0 and I think the current one is 4.5?

    Should I still use this book or look for another? Any other suggestions?

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

    Change WebView provider on Samsung

    Posted: 05 Dec 2021 09:23 AM PST

    Change WebView provider on Samsung

    Hello everyone,

    I am trying to change the system WebView provider on a Samsung S21 Android 12.

    The problem is that the option to use Canary or Beta are grayed out. I think this is because Samsung has a DUAL_APP user used for the dual messenger functionality. Unfortunately I don't see how to install the Canary for the DUAL_APP user.

    Anyone has already faced this problem?

    Many thanks!

    https://preview.redd.it/9h697xt5dr381.jpg?width=1080&format=pjpg&auto=webp&s=90f0692029ab83c7753e390a02f91dd443ae5951

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

    PLEASE HELP !!!!! Create/Remove Dynamic views in Android (Android Studio), export in a excel file

    Posted: 05 Dec 2021 11:10 AM PST

    Hello everyone,

    I am working on an android application where I have a form; in this form there is an input field (number) and I should create dynamic Views for example: if the number = 3 ; 3 views must be created dynamically (View 1 , View 2, View 3) and I want to get Data from these fields to export them in a excel file. Does anyone of you know how to do it ??

    Thanks !!

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

    Tomorrow 7pm CET there will be my first premier video of learning #Android #Jetpack #Compose together. - I am trying to migrate a sample app to compose and learn on the go! ����‍�� - There will be live chat! ��️ - Press reminder to not miss it! ⏰

    Posted: 05 Dec 2021 11:02 AM PST

    Help, I’m new to android,I want to send automatic schedule email in the background

    Posted: 05 Dec 2021 09:07 AM PST

    Hello, I have this android app where the user enter his/her email and the specific date to receive the email,when he/she click send, the email will be send to the email he/she enter automatically in the background . How can I do this in kotlin ? I will send the email using my email to the user email. Could you please tell me how to do it?

    submitted by /u/Similar-Mirror2488
    [link] [comments]

    Local broadcast receiver in separate process.

    Posted: 04 Dec 2021 10:42 PM PST

    I am sending data from service in process :A to local broadcast receiver located in activity in process :B. When activity is in process A as well, Information arrives. However, in this situation, Information never gets transferred. How would you fix that problem?

    Part of code from service, process A:

    Intent intent = new Intent("transfer-info-intent"); intent.putExtra("Information", "This is my Information!"); LocalBroadcastManager.getInstance(this).sendBroadcast(intent); 

    Part of code from Activity, process B:

    BroadcastReceiver receiver=new BroadcastReceiver(){ @Override public void onReceive(Context context, Intent intent) { String s = intent.getStringExtra("Information"); if (s != null){...} ... } } IntentFilter filter = new IntentFilter(); filter.addAction("transfer-info-intent"); LocalBroadcastManager.getInstance(Activity1.this) .registerReceiver(receiver, filter); 
    submitted by /u/rcomplexx
    [link] [comments]

    No comments:

    Post a Comment