• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Understanding a code flow

 
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am bit new with android(only working from past 13 days).It's like I have to understand a whole project's code flow on my own.Like from where the application is starting after that what all is getting load.Now the problem there are bunch of files in that project and everything is dynamic.Constant strings are also saved in a separate file.The project is following pure MVVM pattern with Rooms Db connection and data-binding and API connections.
There are bunch of files in the project  So Everything is looking like a magic to me,I am getting bit messed up while trying to understand the project.So I wanted to know what should be my approach to understand the code flow?

Thanks in advance . I know somebody will definitely help me out.
 
author & internet detective
Posts: 39399
763
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Write stuff done. Seriously make boxes and arrows as you go through the code.

Over time, you will be patterns/layers and get a feel for how the app is designed.
 
Sheriff
Posts: 13570
223
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you spent time studying the Android app lifecycle events? Without a clear understanding of that flow, things will seem like "magic" to you.
 
Saloon Keeper
Posts: 5718
144
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Start by analyzing the launch activity mentioned in the manifest, particularly its on Create method. See what it displays and what options and menus etc are available.
 
priyanshi bhardwaj
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Jeanne Boyarsky wrote:Write stuff done. Seriously make boxes and arrows as you go through the code.

Over time, you will be patterns/layers and get a feel for how the app is designed.


Doing this only Thanks
 
priyanshi bhardwaj
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Junilu Lacar wrote:Have you spent time studying the Android app lifecycle events? Without a clear understanding of that flow, things will seem like "magic" to you.


This I have read.I have learn about Fragment and activity life cycle+Using Recycler View+Using Data Binding+Requesting Permission+Made a dummy app where I am syncing contacts from my phone and using CameraX library and saving that picture in phone storage.And using RoomDb to store the synced contacts.  
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!