Search in sources :

Example 1 with MyAppRequestListener

use of io.virtualapp.delegate.MyAppRequestListener in project VirtualApp by asLody.

the class VApp method onCreate.

@Override
public void onCreate() {
    gApp = this;
    super.onCreate();
    VirtualCore virtualCore = VirtualCore.get();
    virtualCore.initialize(new VirtualCore.VirtualInitializer() {

        @Override
        public void onMainProcess() {
            Once.initialise(VApp.this);
        }

        @Override
        public void onVirtualProcess() {
            //listener components
            virtualCore.setComponentDelegate(new MyComponentDelegate());
            //fake phone imei,macAddress,BluetoothAddress
            virtualCore.setPhoneInfoDelegate(new MyPhoneInfoDelegate());
            //fake task description's icon and title
            virtualCore.setTaskDescriptionDelegate(new MyTaskDescriptionDelegate());
        }

        @Override
        public void onServerProcess() {
            VirtualCore.get().setAppRequestListener(new MyAppRequestListener(VApp.this));
        }
    });
}
Also used : MyTaskDescriptionDelegate(io.virtualapp.delegate.MyTaskDescriptionDelegate) MyComponentDelegate(io.virtualapp.delegate.MyComponentDelegate) VirtualCore(com.lody.virtual.client.core.VirtualCore) MyPhoneInfoDelegate(io.virtualapp.delegate.MyPhoneInfoDelegate) MyAppRequestListener(io.virtualapp.delegate.MyAppRequestListener)

Aggregations

VirtualCore (com.lody.virtual.client.core.VirtualCore)1 MyAppRequestListener (io.virtualapp.delegate.MyAppRequestListener)1 MyComponentDelegate (io.virtualapp.delegate.MyComponentDelegate)1 MyPhoneInfoDelegate (io.virtualapp.delegate.MyPhoneInfoDelegate)1 MyTaskDescriptionDelegate (io.virtualapp.delegate.MyTaskDescriptionDelegate)1