Y yhyzhj Member Apr 15, 2020 #1 i want to write code to launcher other app. the app no launcher, no display on desktop. i use StartActivity(pm.GetApplicationIntent("packageName")) not work. p.Shell("am start packageName/packageName.MainActivity", Null, sb, Null) not work still. no way?
i want to write code to launcher other app. the app no launcher, no display on desktop. i use StartActivity(pm.GetApplicationIntent("packageName")) not work. p.Shell("am start packageName/packageName.MainActivity", Null, sb, Null) not work still. no way?
Erel B4X founder Staff member Licensed User Longtime User Apr 15, 2020 #2 Using p.Shell is of course a mistake. PackagerManager.GetApplicationIntent will only work with apps that show an icon. Which app are you trying to start? Upvote 0
Using p.Shell is of course a mistake. PackagerManager.GetApplicationIntent will only work with apps that show an icon. Which app are you trying to start?
Y yhyzhj Member Apr 15, 2020 #3 i write a app by myself. i deleted launcher from androidmanifest.xml,i hope it not show an icon. now i need to lancher it by other app. Upvote 0
i write a app by myself. i deleted launcher from androidmanifest.xml,i hope it not show an icon. now i need to lancher it by other app.
Erel B4X founder Staff member Licensed User Longtime User Apr 15, 2020 #4 We cannot guess what you are doing. This is important information that should be included together with the question. Upvote 0
We cannot guess what you are doing. This is important information that should be included together with the question.
Y yhyzhj Member Apr 16, 2020 #5 i just want to start the app, and dont let other people see it on desktop. so i need to write a app for start the app. Upvote 0
i just want to start the app, and dont let other people see it on desktop. so i need to write a app for start the app.
peacemaker Expert Licensed User Longtime User Apr 16, 2020 #6 I just guess, that the app without "launcher" category (and without visible icon) - has no starting activity just "by rule", and can be started ... only after reboot by the auto-starting service. And by other broadcast receivers in this service. Last edited: Apr 16, 2020 Upvote 0
I just guess, that the app without "launcher" category (and without visible icon) - has no starting activity just "by rule", and can be started ... only after reboot by the auto-starting service. And by other broadcast receivers in this service.
Y yhyzhj Member Apr 16, 2020 #7 nearly. i have two apps. (e.g name: A and B) A auto-start after reboot, then A launch B. B have no icon, no shortcut, no launcher. i dont know how to use code to launch B. Upvote 0
nearly. i have two apps. (e.g name: A and B) A auto-start after reboot, then A launch B. B have no icon, no shortcut, no launcher. i dont know how to use code to launch B.
Erel B4X founder Staff member Licensed User Longtime User Apr 16, 2020 #8 You will not be able to start the second app at all. An app cannot be started implicitly until the user explicitly starts it once. Upvote 0
You will not be able to start the second app at all. An app cannot be started implicitly until the user explicitly starts it once.