Start application hidden

fanfalveto

Active Member
Licensed User
Longtime User
I've hidden the application:
B4X:
AddReplacement(<category android:name="android.intent.category.LAUNCHER" />, <!--<category android:name="android.intent.category.LAUNCHER" /> -->)
SetActivityAttribute(Main, "android:excludeFromRecents", "true")
but after the installation does not start, how I can make it open?
I need to put some data then close and run as a service whit this data.
thank you very much
 

fanfalveto

Active Member
Licensed User
Longtime User
The service starts at boot, but this service needs to read data that must be entered by the program at first.
But I have already solved, the program is installed and restarted, the service tries to read the data, if can not read then the activity starts, then introduced data, the activity is closed and the service continues.
If you re-restarted mobile service and has data to start.
thank you very much
 
Upvote 0
Top