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

Post a Comment

Popular posts from this blog

Just Maths - Views, View Groups and Layouts

Create Dynamic Table In JavaScript Using WebMethod And jQuery AJAX Without Postback