MCPcopy Create free account
hub / github.com/Odoo-mobile/framework / onCreate

Method onCreate

src/com/odoo/MainActivity.java:113–128  ·  view source on GitHub ↗
(Bundle savedInstanceState)

Source from the content-addressed store, hash-verified

111 App mApp = null;
112
113 @Override
114 protected void onCreate(Bundle savedInstanceState) {
115 super.onCreate(savedInstanceState);
116 setContentView(R.layout.activity_main);
117 getActionBar().setIcon(R.drawable.ic_odoo_o);
118 mContext = this;
119 mFragment = getSupportFragmentManager();
120 mApp = (App) getApplication();
121 if (mApp.getOEInstance() == null && savedInstanceState == null) {
122 CreateOdooInstance odooInstance = new CreateOdooInstance(
123 savedInstanceState);
124 odooInstance.execute();
125 } else {
126 onTaskDone(savedInstanceState);
127 }
128 }
129
130 @Override
131 public void onTaskDone(Bundle savedInstanceState) {

Callers

nothing calls this directly

Calls 3

onTaskDoneMethod · 0.95
setIconMethod · 0.45
getOEInstanceMethod · 0.45

Tested by

no test coverage detected