top of page

Search Results

5392 items found for ""

  • Project files

    As part of your learning related to project structure in Android Studio, it is essential for you to be aware of some of the key files within this structure and their functions. To access the entire file structure of a project including all files hidden within folders from the Android View, select Project from the dropdown at the top of the Project window. Choosing Project View displays many more files and directories. Project file types The most important project files and their contents include: build/ Contains files generated after a project build occurs libs/ Contains private and 3rd party libraries used within the app src/ Contains all code and resource files for the module in its subdirectories androidTest/ Contains code for testing features of the app that runs on an emulator or a physical device test/ Contains code used for unit testing code, with unit tests executed on the computer main/ Contains the Android code and resources shared by all build variants for testing and production deployments AndroidManifest.xml Describes specific information about your app and each of its components such as Activity java/ Contains Java and Kotlin-related code files gen/ Contains the Java files generated by Android Studio, which are required for the app to build successfully (not displayed in the image above) res/ Contains application resources, such as image files, layout files for user interface designs, color files, dimension files and UI string for managing texts used across the app assets/ Contains files that should be compiled into an .apk file as-is (not displayed in the image above) You can navigate this directory in the same way as a typical file system using URIs and read files as a stream of bytes using the AssetManager. assets/ is a good location for video files, for example.

  • Survey: Module quiz: Emulation and Development

    Duration: 15 minutes Total points: 5 Read Edcent Honor Code Click Complete to take the quiz.

  • Reading: Additional resources

    Learn more Here is a list of additional reading material that may consolidate some of the knowledge you've gained so far and be helpful as you continue your learning journey. Android Activities Introduction to Android Activities Android Manifest App Manifest overview Gradle Introduction to Gradle in Android Studio

  • Basic project planning

    Project planning is an important part of commencing any new project. It serves as a roadmap that shows the phases of the project, as well as their start and end dates and dependencies. Project planning is one of the most critical stages of software development. Let's explore why it's is so important. 1. Project performance and success rates Project planning involves comprehensive mapping and organization of project goals, tasks, schedules and resources before anyone assigns project roles and the team starts implementing the plan. With proper planning in place, you can boost the project performance and success rates of a team. 2. Clear objectives Having a clear direction of what needs to be achieved greatly increases the likelihood that you will do it. But without a concise objective from the start, the project will be complicated. If the team isn't clear on what they are working on, it’s almost impossible to know when the project is completed. Proper planning helps the team focus on the most important thing, the objectives and the end goal. 3. Resource allocation Having a project planned out shows how much of the workforce is required to execute the project. The plan also allows project managers to monitor which resources have been allocated and thus avoid excessive allocation. 4. Communication Planning aids communication, which will help every team member know what exactly is required of them ahead of time. A well-written plan will help you communicate key details, making it seamless for you and your entire team to complete specific tasks. Listening to their input and ideas is also a great way to achieve buy-in and foster the commitment of every team member. 5. Project-specific Training Project planning ensures team members have the required technical know-how to execute the assigned tasks and identifies talent pipelines to provide an adequate supply of trained talents throughout the lifecycle of the project.

  • Exercise: Create the player

    Following this reading exercise, you should be able to create a simple player app. Lab objectives Goal Create a video player that plays a video file Objectives Create an Android project Add an mp4 video file to your new project Create a user interface Add import statements VideoView and MediaController to your Activity class Add a VideoView to activity_main.xml Add the code that plays video in the onCreate() function of MainActivity.kt Step 1: Create a new project using Basic Activity Template and call it video_player. Step 2: Create a raw directory and add an mp4 video file to the folder. Step 3: In the activity_main.xml file, create a VideoView inside a ConstraintLayout: Step 4: In MainActivity.kt class add the following import statements at the top of the file if they don’t exist: Step 5: In the onCreate function add this code snippet to play the video file.

bottom of page