Lockdown intent: to start an application with arguments

Lockdown intent: to start an application with arguments

Hi, I need to start an app with args. I use intent: to launch it, but it has a negative effect - the app always starts with main activity.

Now I use hoff://ru.hoff.tablet#Intent;action=android.intent.action.VIEW;S.data=custom_data;launchFlags=0x20002000;end

Is there any way to launch an application with arguments that it doesn't switch its screen after pressing the home button and launching it again?

I've tried doing some tests as described here  but failed.

 android-app://ru.hoff.tablet.prodsrv.idx2#Intent;S.data=custom_data;end

 No Activity found to handle Intent { act=android.intent.action.MAIN flg=0x10800000 pkg=ru.hoff.tablet.prodsrv.idx2 }

 android-app://ru.hoff.tablet.prodsrv.idx2#Intent;action=android.intent.action.VIEW;S.data=custom_data;end

No Activity found to handle Intent { act=android.intent.action.VIEW flg=0x10800000 pkg=ru.hoff.tablet.prodsrv.idx2 }

3 Answers

Order By:   Standard | Newest | Votes
Raymond Chan | posted this 22 April 2021

What intent argument(s) an app takes and the behaviour in response to the intent are determined by the app, not by MDM software nor by Google.  So, if the app of interest is  from a 3rd party, you should find related documentation or contact technical support/developer of the app.  If it is an in-house developed app, you (or your developer colleague) have full control on what argument(s) the app takes and how the intent is implemented.

 

  • 1
  • 0
Aleksey Bashkirtsev | posted this 27 April 2021

For now I have a little different question - Is there any way to start application with arguments without intent action? With just normal "Launch:"?

 

  • 0
  • 0
Raymond Chan | posted this 27 April 2021

I don't think so.  In your device home screen, you probably just tap on an app icon for most, if not all, app launchers to launch an app.  I don't think you have any option to pass argument to the app started.

 

Modern and high-quality enteprise-grade app should support the standard AppConfig framework for MDM/EMM software to configure the app in Android-Enterprise platform.   Older apps that do not support AppConfig framework may still support Android intent(s) to have configuration parameter(s) passed.

 

  • 0
  • 0

Give us your feedback
Give us your feedback
Feedback