Android Question How to Run a external program in Hidden Mode

Devendra

Member
Licensed User
Longtime User
I am invoking another program i have developed in eclipse to do a task
This is how i do it

Dim In As Intent
In=pm.GetApplicationIntent("com.example.printer_demo_58mm")
StartActivity(In)

I want to run the intent in hidden mode can we do this, Or How do we do this
 

sanjibnanda

Active Member
Licensed User
Longtime User


some thing like this using service.
you should look into services if you want to have a running process that is not visible to the user.

B4X:
Dim in As Intent
Dim pm As PackageManager
in = pm.GetApplicationIntent("com.example.printer_demo_58mm")
If in.IsInitialized Then StartActivity(in)
 
Upvote 0

Devendra

Member
Licensed User
Longtime User
N
no i want to run this in the background in hidden mode i am referring a SHELL command with Hidden in VB
 
Upvote 0

Devendra

Member
Licensed User
Longtime User
no i have created a tool which does not have a GUI it opens the cash box in my pos unit, My issue is it display's the app window and i have created the program in eclipse to automatically terminate, is there a way to to hide the OS showing the Program in execution. Pls Advice
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
is there a way to to hide the OS showing the Program in execution

I dont know a way and i think it is not possible.

Maybe you should write a small library-wrapper for this and use that in your own app. So you dont need to call an external app. I think that should be the right way

PS: Can you share the Eclipse-Source of your non-gui app?
 
Upvote 0

Devendra

Member
Licensed User
Longtime User
Sorry i have tried this wrapper story for last three weeks, It is very week and not success in B4A, for a basic library it will work not a complex, I tries the SLC tool and exposed the Library as explain in the Erel's Posts. Does not work, For your information i made the library and used it in the eclipse it self without any hassle. One my friend used it with a different IDE NetBeans works fine. I think things have to be straight forward since, all the explanations take you all around the world makes it complicated, I think i use the B4A as a RAPID application development toll for android in which i don't expect this to happen. I am sorry if i point it wrong. May be my knowledge
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…