How execute code in Android main Activity onStart()

I want to execute some native code in Android’s main Activity onStart() method.

What’s the best way to set this up in Fuse?


As an addition to this, I really want to add a member to the Activity. For example, as in the following pseudo code.

class MainActivity extends Activity {
    MyObj myObj;
    public void onStart() {
        myObj = new MyObj();
    public void doSomething() {

Can I do this somehow?

Thanks again!

It might be worth looking at how things are done in Billing.

If that doesn’t help, please describe exactly what you want to do, with particular details. Pseudo-code and generic questions can only get us that far.

Hi Iain, good question. Are you interesting in getting this info from JS or Uno?

Thanks guys. I had a think about this and I think I actually need to do it in a different way (from JS/foreign code).

Thanks for your time anyway.