---
title: "Discussion on \"Android 101\" | Hashnode"
description: "Discussion on \"Android 101\". Log\n//use logd shortcut\n//use this to debug code\nLog.d(\"main\",\"error\")\n//print exception in logs\ntry {\n            val a = 5/0;\n        }\n        catch (e : Exception) {\n            Log.e(\"main\",\"zero error\",e)\n        }\n//use class name for logs\nvar..."
url: "https://hashnode.com/posts/android-101/62277cf133120280724e76cf"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Android 101](https://abhinesh.hashnode.dev/android-101?utm_source=hashnode&utm_medium=feed)

Log //use logd shortcut //use this to debug code Log.d("main","error") //print exception in logs try { val a = 5/0; } catch (e : Exception) { Log.e("main","zero error",e) } //use class name for logs var...

Mar 8, 2022 · 14 min read · abhinesh.hashnode.dev  
Updated May 15, 2022  
Read the article

-   [#android](https://hashnode.com/tag/android)
-   [#kotlin](https://hashnode.com/tag/kotlin)
-   [#java](https://hashnode.com/tag/java)
-   [#thw-mobile-apps](https://hashnode.com/tag/thw-mobile-apps)

## Written by

[abhinesh chandra](https://hashnode.com/@abhinesh)

@abhinesh

  
[View profile](https://hashnode.com/@abhinesh)

Android Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
