Architecture Questions
Ad
How should I structure a Java application, where do I put my classes?
First of all, i know how to build a java application. but i have always been puzzled about where to put my classes. there are proponents for
Why daemon is required for DBMS?
I was recently introduced to mongodb and going through the installation guide i came to know that we have to first run the daemon (mongod) and
Thoughts on Design - Core Control Logic and Rendering Layers
I just wanted to see if i could have your thoughts on the design of some work i am currently doing. here's the current situation -
I can't handle this error in my Verilog code: "error: malformed statement"
"main.v:38: error: malformed statement". in adder module call. i want to implement alu in verilog but i got this
sending signal from subcomponent in elm
I'm making a small application in elm. it displays a timer on the screen, and when the timer reaches zero, it plays a sound. i'm having trouble
Namespace Organization - AOP Validators
I have started using aspects for parameter validation in our development framework. it works nicely, and i enjoy not littering the first half of
Shared viewModel achived fragment lifecycle
How i can use shared viewmodel with fragments without activity? like in code but in place of requireactivity() use parentfragment. in this case
Understanding MVVM Architecture in iOS
I have few questions in order to understand the mvvm architecture for ios as below - how is model different from the view-model?
Is there any difference between androidx paging and android-arch paging?
I have to set up pagination for my android project. but i'm a little bit confused since there are two different libraries with same class names
How to handle multiple NavHosts/NavControllers?
I'm having a problem when dealing with multiple navhosts. this issue is very similar to the one asked
Ad
Problem with NavController when trying to run EspressoTest
I am getting this error: illegalstateexception: view android.widget.linearlayout{649700d v.e...... ......i. 0,0-0,0} does
Navigation Component Lifecycle
I have been trying out navigation component for a while now but somehow not getting the reason (or explanation) behind current lifecycle of
Room - Migration didn't properly - Android
I am using from room and i am using from addmigrations from 1 to 2 but say me: expected:
Where's the best place to call methods that interact with my database?
I'm creating an app that interacts with a firestore database. as of now i have a singleton class, databasemanager that has all the
Node.JS service layer design
I have a very simple express js server that accepts a request from a client, performs some business logic and respond back to the client. the
Why Dialog does not have a NavController [Missing]?
I am trying to use the latest update of nav component in my application where i can add dialog(bottomsheetdialogfragment) in
Dagger2 dependency injection: How does it work in an android app?
I am trying to understand an
Add List to MutableLiveData
I have a mutablelivedata and i want to add a list inside, but seems the below code doesn't work:
OnBackPressedCallback is being called, but app is not going back
I recently updated my dependencies to include the onbackpressedcallback change from an interface into an abstract class. i
Fragment with different size than the nav host fragment
I'm using the navigation architecture component in my single activity app and it works fine but what i'm facing is that in one of the fragments i
ViewModel refetches data when fragment is recreated
I am using bottom navigation with
Ad
Where should I chain multiple network requests in MVVM? UseCases or Repository?
I am refactoring our codebase. right now we have a singleton repository which ceates network requests and manages operators chaining with rxjava
Form validation in Clean Architecture
Input validation is a business logic so we should hide this process in the domain layer. as discussed
Navigation Architecture Component - DestinationFragmentArgs is not generated
I have this in app gradle: apply plugin: 'androidx.navigation.safeargs' implementation
LiveData two-way databinding WITHOUT exposing MutableLiveData
I'm trying to use two-way databinding on a edittext, that works fine if i expose the field as mutablelivedata as it is usually seen on examples i
Signup flow with advanced navigation example
I am currently using bottom navigation like in
How to send a byteArray to Worker class when implementing WorkManger?
I am trying to send a bytearray as an input data to my worker class inside the workrequest. is there a way to send bytearray and receive the same
Handle onBackPressed in Android Navigation Component
I have implemented navigation drawer with navigation components in android. i have 5 fragments that i want to go back to my
Android Room + ViewModel usage
I want to use android's room + viewmodel components for my app, but i'm not quite sure how. one of my database tables is going to represent
Trouble showing datepicker dialog fragment using Navigation component
I am trying to use the navigation component to show a date picker dialog fragment. i am getting the following error:
Using the Navigation component with multiple activities
In the android docs, it states: the navigation component is designed for apps that have one main activity with multiple
Ad
How to scale a node server that will be having long-running tasks for each user
I am building a service where each user will be able to have a long running task (think web scraper). an express api will be used to manage users
Single event live data emits null values multiple times will giving the correct result
I have simple login in my app which validates username and password in server side and base on that show a toast message.
Is it possible to use androidx-navigation with onClick-databinding without writing boilercode in Fragment?
I want to implement an androidx-navigation by using
How to cancel any/all work manager request if the app is removed directly from app tray?
I'm trying to use android workmanager in an application in order to schedule some background task. the requirement is to cancel the api request
How to handle global things with Clean Architecture in Flutter apps?
I have completed reso coder tutorial about clean architecture with tdd in flutter apps. but there are two points
ViewModel in architect component - android
I have a lot of fragment base architect component. is this true that i create viewmodel for per
How to use Navigation Drawer and Bottom Navigation simultaneously - Navigation Architecture Component
I have screen like below which contain a navigation drawer and bottom navigation on same screen:
Android Fragment: Different animations for enter and return
I'm showing a fragment using the androidx navigation architecture component. the fragment is shown by an arcmotion shared element
How do I make structure SPA and SSR with Laravel?
I'am using laravel + nuxt for current project. web app has user pages and admin pages. user pages are working in laravel + nuxt spa but admin
Which data structure for fast changing objects with common properties?
When working with objects in a certain manner, my code tends to get unreadble. i am looking for some ideas to change my architecture to make it
Is there a way to create implicit deeplink in Android Multi-module project using Navigation Component
I have a multi-module project, where i need to handle deep-linking within the app. the deep-links can be to any feature module with it's own
Ad
how to use Navigation component navhostfragment while altering full screen/above bottom Navigation
I'm using the single activity multi fragments with navigation component.how do i hide the bottom navigation bar for some of the fragments?
How to make variables of one file accessible along the entire application?
I have a node rest api using express and javascript. i created a database class that is able to connect, disconnect and execute the
Paging library + room not fetching @relation
In an app i'm working on, i need to very simply fetch data from a room database. there are relations involved. everything was working perfectly
Update ActionBar menu depending on navigation destination
I would like to change the menu items displayed in my actionbar depending on the current destination of my
Questions about the responsbilities of each component in Android Architecture Components
I've been using mvp for a long time now and i'm starting to transfer to a hybrid state between mvp and mvvm in detail my apps will go like
When KOIN graph reassembling, delegate function viewmodel() not refreshing viewmodel instance
We are using in our project koin like di library. in some
Pluginable cross-platform software design for react & react native
I want to design a cross-platform (android, ios, and web) plugin-able software that means everyone can easily develop a plugin for it and users
How to get Back Button in Actionbar with new Jetpack navigation
I want to have a backbutton in the default actionbar on an new androidx jetpack navigation app. i follow the google
Navigation component crash on rotate
Navigation component crash on the device rotate 2019-04-15 11:50:08.589 21493-21493/me.rankov.kaboom e/androidruntime: fatal
Architecture/logic issue- how do I rebuild only ONE Consumer widget in this scenario? - Riverpod
I really backed myself into a corner & have no idea how to re-design to fix this smoothly while keeping my functionality. i tried moving the
How to inject Repository into ViewModel?
I am using dagger 2 and i have a dicomponent defined as follows: @singleton @component(modules = {
Ad
NavigationComponent recyclerview return shared element transition
I use navigation component in project. trying to set up shared element transitions from recycler. and enter transition in the second fragment
Fragment Not Associated With A Fragment Manager
I am writing some instrumented tests for an app with one activity and multiple fragments using the navigation component. the
Why use UseCases? Android Jetpack is not mentioning UseCases in the docs
Is it really necessary to use usecases in my android clean architecture? in the android jetpack
Navigation component with instant/(dynamic-)feature modules
I'm trying to implement the new navigation component with dynamic features so the structure looks like this: app
Android Navigation Component: How to add a destination programmatically?
I want to inject a new destination to the current nav graph. i notice navgraph has a method void
Which layer should (In app purchase), (Firebase Messaging) go in? Data or Presentation layer?
Hi : ) i am a flutter developer. in clean archtecture the idea of layered architecture, and in particular that the business logic should be
Infinite loop of SyncAdapter
Yesterday i tested my app in some virtual devices in genymotion, and i realized some times, app sends infinite sync requests to the server on some
How to handle events fired in service class inside viewmodel? Architecture Components, Kotlin, Firebase)
I'm looking for way to react to events like oncomplete(), onfailure(), ... inside of a viewmodel. for
Flutter BLoC Architecture - Role(s)
This is a question mostly about the best practice, i'm new to flutter dev and to the bloc architecture, to summarize i have an app that has an
Jetpack Navigation with WebView is not working properly
I have a fragment with viewpager inside it, which contains 3 tabs. i have used jetpack navigation to
'Null' is not a subtype of type 'Future<Either<Failure, NumberTrivia>>'
I am implementing the flutter project in tdd clean architecture by following this video:
Ad
Optional shared library
I am developing an application that must be compatible with all android device architectures. also, some of these devices may have uhf reader
How to access/inject ObjectBox database in repository in Flutter - Reso Coder DDD
All the examples, i have seen, initialize objectbox in a state(less/full)widget. i am using a layered architecture (currently refactoring to ddd)
Select activity depending on Room
When i launch my app, i should select start activity, depending on room data. like this: if there is no user (by login string,
How can I navigate from an activity to another using Navigation Component and removing the first activity from the stack?
In my app i have two activities (authenticationactivity and mainactivity), each one with a nav graph and a big flow of fragments. i've created an
How it impact on memory if I create all View Models with Activity scope?
I'm using new android architectural components : mvvm, livedata, etc. as recommended by android documentation as well as in many blogs, in order
What layer or pattern should I use in my Laravel app?
I have an app with about 10 work modes. each "mode" works with the same api-endpoints, but differs from others in 2-5 columns that it uses and
It is ok to call observeForever() on Livedata returned by Transformations.map() inside ViewModel?
I tried to use livedata transformations.map() to check the result and update the ui. but transformations.map() callback not triggered without an
Avoiding Android navigation IllegalArgumentException in NavController
I recently switched over to android navigation, but have encountered a fair amount of situations (in different parts of the code), where i
How to make sure that back button for settings fragment goes to the launching fragment with aac
So i have an issue with aac navigation. i have multiple fragments in one activity. i inflate the menu options in mainactivity so that each
How to change label attribute of a destination in navigation controller?
I am trying to use navigation controller in android
How to ensure an application will be compliant with 64 bit?
Important links:
Ad
Android Navigation Component: java.lang.IllegalStateException: unknown destination during restore
I'm using android's aac navigation component and have implemented conditional navigation for my login flow as described in this post:
Passing argument(s) to a nested Navigation architecture component graph
How does one pass argument(s) to a nested navigation architecture component graph? let's say i construct my navigation graph to navigate
Room Update Multiple Fields
I would like to update some fields from table 1 to be the same as the values from another table (or even a subquery).
Nodejs Database configuration based on accessed domain
I have two domains abc.com and xyz.com pointing to the same nodejs server. based on the domain i want to load the
Hamburger icon not working for Navigation Architecture Components
So i have used the navigation architecture components with java although i followed the codelabds that use kotlin. my code is working but i have
Navigation Library inflator throws ClassNotFoundException for data class
In the navigation library version alpha09+ (using alpha11) i am experiencing a classnotfoundexception for one of my data classes which i defined
How to navigate Fragment from notification in Android Navigation Controller
Should i make a intent that leads to the mainactivity and then navigate function there. or is there another way?
How to catch async exception in one place (like main) and show it in AlertDialog?
Trouble i build flutter app + dart. now i am trying to catch all future exceptions in one place (class)
Simple navigation across navigation graphs with Android Navigation Architecture Component
This is a simple example of a navigation setup that i can't get to work with the navigation component library, after researching for some
WorkManager backoff delay doesn't work on some devices
I want to start a worker that performs some task, and in case of error tries again after some delay with exponential backoff
Ad
How to join multiple table in Room Database
I have an abstract class like this: public abstract class notificationparent { @serializedname(sercons.c_notification_id)
Node.js config file vs .env architecture practice and building pattern
I'm developing server side app on node.js and i thinking about config file usage. but when i google it.. well as for now i have more
Which pattern/architecture follow to build Flutter app?
I started build an e-commerce app that allows people buy one item by turn. however, i don't have deep knowledge about flutter app architecture to
Keeping states of recyclerview in fragment with paging library and navigation architecture component
I'm using 2 components of the jetpack: paging library and navigation. in my case, i have 2 fragment: listmoviesfragment &
Not able to inject ViewModel with dagger2 android java
I am trying to inject viewmodel with help of a common viewmodelproviderfactory in dagger2.
MVC vs MVP vs MVVM use cases
I am and android developer and i have worked on all of these three architecture patterns in my applications. also i have gone through several
Calling Fragment constructor caused an exception. Navigation Architecture Component
I am using navigation architecture component library and my app's starting point is this fragment: class mainfragment :
How many Supported architectures should I choose while creating apk file
I have android app, size of my android apk file is 25mb. so while creating apk file i want to know how many supported architectures
Type mismatch: inferred type is LoginActivity but LifecycleOwner was expected
I am playing with the preview version of androidstudio - 3.4 canary 9. i selected the default login activity option from
Android Paging Library - Data + Network with multiple sorting types
I recently saw that google has a great library for paginating data. in this google io:
Navigation Component's popUpTo not removing up button
I'm using the navigation architecture component and i have a setup similar to this one
Ad
How to apply transition to fragments using the new Navigation Graph?
I have created an animation using xml for fade in and out and attached it to the fragment using the drop down in navigation drop for
Cannot observe null data - MVVM with Livedata
I've create simple app using mvvm pattern with livedata to observe data. the list i display is displayed in a fragment. everything seems okay to
Ad
Blog Categories
Ad