WM28: Call WLanguage proc from native java class SOLVED August 23, 2023 01:14PM |
Registered: 3 years ago Posts: 25 |
Re: WM28: Call WLanguage proc from native java class August 23, 2023 01:56PM |
Registered: 3 years ago Posts: 107 |
Re: WM28: Call WLanguage proc from native java class August 23, 2023 02:24PM |
Registered: 3 years ago Posts: 25 |
public class CallReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { int duration = Toast.LENGTH_LONG; Toast toast = Toast.makeText(context, "onRecive...", duration); toast.show(); String action = intent.getAction(); if (action.equals("android.intent.action.PHONE_STATE")) { String phoneState = intent.getStringExtra(TelephonyManager.EXTRA_STATE); if (phoneState.equals(TelephonyManager.EXTRA_STATE_RINGING)) { callWLProcedure(); } } } }
WM28: Call WLanguage proc from native java class SOLVED August 25, 2023 02:28PM |
Registered: 3 years ago Posts: 25 |
protected abstract void MyFutureWDFunction(...);
class WDSomeImportedJavaClass extends SomeImportedJavaClass { @Override protected void MyFutureWDFunction(...) { // Here is your desired JAVA code written through Windev editor... // you can also use callWLProcedure* } } WDSomeImportedJavaClass NameOfObject = new WDSomeImportedJavaClass();