Hello Android - Basic App Project Structure


Each Android app has a corresponding project that needs to be created. Android Studio creates a fully functional Hello World app for us. But what all is included in this project - let's dissect this and understand the structure of a Basic App Project Structure.

Project File Structure -


Project files can be divided into 3 parts:

1. Source Files - These are the Java source code files. Android Applications are written in Java Programming Language. All the source code and logic you write is Java. Java code written can be further divided into packages.

2. Resource Files - These are the files which are raw, static and does not include any code logic like images, XML files, audio files, SQLite Databases, excel files and any other resources you want to be packaged with your app.

3. Configuration Files - AndroidManifest.xml file is one of the most important file in an android project. This includes all the details about your app that is required by Android OS like minimum version your android app will support, components your app contains, permissions etc.

Android Studio and Project Views


Android Studio provides different views of the project like Android View and Project View. Android Studio displays files in a different manner for a view but files in the project remains the same. Refer below screenshot.

cheezycode_android_studio_project_view
Cheezy Code - Android Studio - Project View

Android Project Files


Files in Android Project are structured as explained above. Refer the screenshot below - this only shows the files for Hello World App. In a production quality app, there are various files in these folders. But those files lies only in 3 categories - source code, resources and configurations.

cheezycode_android_file_structure
Cheezy Code - Android Files

Let us know if you have any query. Happy reading.

You can follow our video tutorial series as well to understand it better







Comments

  1. Your videos and notes are very lucid and crisp. They are to the point and easy to understand.

    ReplyDelete
    Replies
    1. Thank you so much. Please stay tuned for our next set of tutorials. We are in a process of creating new tutorials for networking in android.

      Delete
  2. I also like it...I am just newborn to Android and I think it will help me lot

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. And indeed, I’m just always astounded concerning the remarkable things served by you. Some four facts on this page are undeniably the most effective I’ve had. really nice page
    Ai & Artificial Intelligence Course in Chennai
    PHP Training in Chennai
    Ethical Hacking Course in Chennai Blue Prism Training in Chennai
    UiPath Training in Chennai

    ReplyDelete
  6. After reading your article I was amazed. I know that you explain it very well. And I hope that other readers will also experience how I feel after reading your article.

    Data Science Certification in Bangalore

    ReplyDelete

Post a Comment

Hey there, liked our post. Let us know.

Please don't put promotional links. It doesn't look nice :)

Popular posts from this blog

Create Android Apps - Getting Started

Polymorphism in Kotlin With Example