android - how to show a custom dialog box when an activity start -


i want show custom dialog box when start first activity without using button. try search i'm not finding proper solution want do. many of them using onclick listener achieve scenario. below image showing activity dialog box, that's i'm looking without using onclick listener.

enter image description here

how can implement without using onclick listener?

any code contained in click listener works elsewhere in class (unless use view that's clicked)

create dialog in oncreate. open when activity started


Comments

Popular posts from this blog

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -