android - google play sevice mainactivity -
i've implemented google play services demo code found @ url:
and works. if function getaccountnames() called within oncreate, application momentarialy flashes before loading set content view. it's there 2 activity views being initiatied.
@override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_main); txtaccount = (textview) findviewbyid(r.id.txtaccount); txttoken = (textview) findviewbyid(r.id.txttoken); getaccountnames(); }
why placing getaccountnames()
in oncreate
create visual effect when application launches.
Comments
Post a Comment