You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i start this activity, A black empty screen become appear for 4-5 seconds and then activity starts. Is there any problem in my implementation?
The text was updated successfully, but these errors were encountered:
rajazeeshanahmed
changed the title
RTApi methods in onCreate Method affects the activity performace
RTApi methods in onCreate Method affects the activity performace (Black screen for sometime before activity start)
Nov 13, 2015
I'm fairly certain, it's not the RTApi methods, RTApi is just a proxy and doesn't do much of its own. Inflating the layout with the icons is what takes time on certain devices. The only way to get around that is to use other icons with lower resolution or use less icons.
Here is my code
protected void onCreate(Bundle savedInstanceState) {
setTheme(R.style.ThemeLight);
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_app_form);
RTApi rtApi = new RTApi(this, new RTProxyImpl(this), new RTMediaFactoryImpl(this, true));
rtManager = new RTManager(rtApi, savedInstanceState);
ViewGroup toolbarContainer = (ViewGroup) findViewById(R.id.rte_toolbar_container);
RTToolbar rtToolbar0 = (RTToolbar) findViewById(R.id.rte_toolbar);
if (rtToolbar0 != null) {
rtManager.registerToolbar(toolbarContainer, rtToolbar0);
}
When i start this activity, A black empty screen become appear for 4-5 seconds and then activity starts. Is there any problem in my implementation?
The text was updated successfully, but these errors were encountered: