This repository was archived by the owner on Jul 11, 2025. It is now read-only.
People (bubbles): [FIXED] ClassCastException when trying to open VoiceCallActivity#188
Merged
yaraki merged 1 commit intoandroid:masterfrom Aug 11, 2020
hossain-khan:bugfix/hk-people-bubble-video-call
Merged
People (bubbles): [FIXED] ClassCastException when trying to open VoiceCallActivity#188yaraki merged 1 commit intoandroid:masterfrom hossain-khan:bugfix/hk-people-bubble-video-call
ClassCastException when trying to open VoiceCallActivity#188yaraki merged 1 commit intoandroid:masterfrom
hossain-khan:bugfix/hk-people-bubble-video-call
Conversation
The activity was created with String icon ID, but was trying to extract Int causing following exception.
```
2020-08-10 20:41:11.681 17083-17083/com.example.android.people W/Bundle: Key icon expected Integer but value was a java.lang.String. The default value 0 was returned.
2020-08-10 20:41:11.682 17083-17083/com.example.android.people W/Bundle: Attempt to cast generated internal exception:
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer
at android.os.BaseBundle.getInt(BaseBundle.java:1077)
at android.content.Intent.getIntExtra(Intent.java:8183)
at com.example.android.people.VoiceCallActivity.onCreate(VoiceCallActivity.kt:38)
at android.app.Activity.performCreate(Activity.java:8000)
```
Fix was to pass the Uri that can be used by Glide to show the thumbnail icon.
Contributor
Author
|
Hi @yaraki , I found this issue when working the the sample app. Thanks |
ClassCastException when trying to open VoiceCallActivityClassCastException when trying to open VoiceCallActivity
yaraki
approved these changes
Aug 11, 2020
Contributor
yaraki
left a comment
There was a problem hiding this comment.
Thank you for fixing this!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The activity was created with String icon ID, but was trying to extract Int causing following exception.
Fix was to pass the Uri that can be used by Glide to show the thumbnail icon.