|
|
**This is a mandatory step**
|
|
|
|
|
|
**I repeat, this is a mandatory step**
|
|
|
|
|
|
You must start the SaaS service from the Launcher activity of your app.
|
|
|
|
|
|
From `onCreate()` of your Launcher activity you must call : `ReveSaaS.start(this); `
|
|
|
|
|
|
**Sample Code:**
|
|
|
|
|
|
```
|
|
|
public class MainActivity extends AppCompatActivity {
|
|
|
|
|
|
@Override
|
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
|
super.onCreate(savedInstanceState);
|
|
|
setContentView(R.layout.activity_main);
|
|
|
ReveSaaS.start(this);
|
|
|
}
|
|
|
|
|
|
public void openDialer(View view) {
|
|
|
ReveSaaS.launchDashboard(view.getContext());
|
|
|
}
|
|
|
}
|
|
|
``` |
|
|
\ No newline at end of file |