Your First Kotlin Android App · Customizing Elements | raywenderlich.com


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/4936497-your-first-kotlin-android-app/lessons/14
1 Like

I believe that Kotlin has great prospects to overcome Java in Android development. Now this language is gaining high popularity thanks to its various cool features and simple syntax. In our mobile development company, we are using both Java and Kotlin for creating Android applications.

By the way, world-famous companies and products like Pinterest, Coursera, Uber are already using Kotlin. Recently, a new version of this language has been released and it’s great that the founders are constantly improving their technology.

@rbondoc, not able to run the app on the Pixel 2 API 28 simulator device - after customising the textView post this lesson. On the virtual device the app doesn’t open and it throws an alert: “Time Fighter keeps stopping”. (was able to see it on the virtual device before this lesson).
Since I’m a newbie to this, not sure what’s going wrong and how to run the game again on the virtual device. Would you be able to help me out?
FYI: The build is compiling successfully with all green checkmarks.

Here’s the error messages from Logcat:
2020-01-15 16:11:03.144 1860-2668/? E/AudioPolicyIntefaceImpl: getInputForAttr permission denied: recording not allowed for uid 10041 pid 6519
2020-01-15 16:11:03.144 1860-2668/? E/AudioFlinger: createRecord() checkRecordThread_l failed
2020-01-15 16:11:03.145 6519-9314/? E/IAudioFlinger: createRecord returned error -22
2020-01-15 16:11:03.145 6519-9314/? E/AudioRecord: AudioFlinger could not create record track, status: -22
2020-01-15 16:11:03.145 6519-9314/? E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -22.
2020-01-15 16:11:03.145 6519-9314/? E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.

I understand that audio permission needs to be enabled, but the app is not even requesting for it.

@rbondoc Can you please help with this when you get a chance? Thank you - much appreciated! :]