Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Android app development: fixing bugs before creating them
Rating: 3.9 out of 5(9 ratings)
1,979 students

Android app development: fixing bugs before creating them

Correction of frequent malfunctions in android development
Created byLeonid Ivankin
Last updated 10/2022
English

What you'll learn

  • Solve well-known bugs in android development
  • Looking for solutions to non-trivial bugs
  • Understand why LogCat is confusing when solving bugs
  • Develop your own algorithm to solve bugs

Course content

1 section16 lectures1h 18m total length
  • Introduction1:50
  • Error 1. java.lang.NullPointerException. Attempt to invoke virtual method...4:19

    Understand how a java.lang.NullPointerException occurs when invoking a method on a null object due to mismatched activity xml. Fix by using the correct activity_main xml and adding missing resources.

  • Error 2. java.lang.RuntimeException. Unable to start activity6:51
  • Error 3. android.content.ActivityNotFoundException. No Activity found to...8:36

    Demonstrates how to diagnose and fix android activity not found errors when sending text via implicit intents, using chooser, package manager, and toast messages to ensure a valid target app.

  • Error 4. java.lang.ClassCastException. Button cannot be cast to ImageView...3:52
  • Error 5. android.os.NetworkOnMainThreadException5:45

    This lecture explains the android.os.NetworkOnMainThreadException and shows how network requests must run in a background thread to avoid crashing, including adding internet permission and moving requests to a background task.

  • Error 6. java.lang.SecurityException. Permission denied3:20
  • Error 7. java.lang.IllegalStateException. You need to use a Theme.AppCompat...2:40

    Fix an illegal state exception by applying a Theme.AppCompat theme to the affected activity in the Android manifest, and verify manifest changes when debugging since logs may omit manifest details.

  • Error 8. android.view.ViewRootImpl$CalledFromWrongThreadException. Only ...4:40
  • Error 9. kotlin.UninitializedPropertyAccessException. lateinit property...6:27

    Explore Kotlin uninitialized property access exception and fixes, including immediate primitive initialization, lazy for heavy objects, marking variables as knowable, and checking initialization before use.

  • Error 10. java.io.IOException. Cleartext HTTP traffic to info.cern.ch not permit5:02
  • Error 11. Unable to create protected region in stack for implicit overflow check4:18

    Avoid creating thousands of threads; use thread pools and IO schedulers to manage async tasks and prevent implicit overflow and stack overflow errors.

  • Error 12. Application2:57

    Explore how the Android application class onCreate runs before other activities, enabling library initialization. Fix error 12 by declaring a custom application in the manifest.

  • Error 13. java.lang.NullPointerException. Attempt to invoke virtual method5:43
  • Error 14. java.lang.IllegalStateException. Vertically scrollable component ...11:18

    Diagnose an illegal state exception caused by vertical scrolling with infinite constraints in XML and compose, and outline solutions: remove scroll view, use a column, or cap the maximum constraint.

  • Overall conclusion0:45

    Explore common Android development bugs and practical solutions, and learn an approach to solve other issues across projects. Share feedback and stay tuned for next courses.

Requirements

  • Know the Kotlin language, have basic knowledge in android development

Description

I am pleased to welcome you to my course, which is dedicated to solving common problems on android.

What is this course about?

In the process of application development, very often you may encounter a problem and not find a solution for a long time, despite many articles and the StackOverFlow website. This can happen because you don't have enough experience in development and therefore can't see the big picture. Or because you have never encountered such a problem and have no idea how to handle it. It also happens sometimes that the error description in LogCat is not correct and confuses the programmer instead of helping him/her. Let's deal with these cases further on.

This course can be compared to the troubleshooting section in the manual of some devices. This section describes solutions to common problems.

We will solve such problems by simple examples with a few lines of code. Because complex examples can be confusing on their own.

Who will benefit from this course?

This course will be useful for intermediate-level android developers. Beginner developers who have no experience at all will probably not be able to take it. You're better off taking the beginner's course and then coming back to this course.

Who this course is for:

  • Middle Android Developer