Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

kotlin

Unfortunately MyApp has stopped. How can I solve this?

September 7, 2022 by Tarik

This answer describes the process of retrieving the stack trace. Already have the stack trace? Read up on stack traces in “What is a stack trace, and how can I use it to debug my application errors?” The Problem Your application quit because an uncaught RuntimeException was thrown. The most common of these is the … Read more

Categories java Tags android, debugging, java, kotlin Leave a comment

What is the equivalent of Java static methods in Kotlin?

September 6, 2022 by Tarik

You place the function in the “companion object”. So the java code like this: class Foo { public static int a() { return 1; } } will become class Foo { companion object { fun a() : Int = 1 } } You can then use it from inside Kotlin code as Foo.a(); But from … Read more

Categories java Tags java, kotlin, static Leave a comment

Place cursor at the end of text in EditText

September 5, 2022 by Tarik

Try this: UPDATE: Kotlin: editText.setSelection(editText.length())//placing cursor at the end of the text Java: editText.setSelection(editText.getText().length());

Categories java Tags android, android-edittext, java, keylistener, kotlin Leave a comment
Newer posts
← Previous Page1 … Page110 Page111

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa