SpinBower Member Licensed User Longtime User Feb 19, 2014 #1 Hi, my app has a service that listens for SMS messages with commands in them. The user has to be able to push the app from the online Google play store to their phone and the app has to start the service automatically. Is there any way I can do this. I know I can't use "android.intent.action.PACKAGE_ADDED" Or "android.intent.action.TIME_TICK" Is there any way I can do this?
Hi, my app has a service that listens for SMS messages with commands in them. The user has to be able to push the app from the online Google play store to their phone and the app has to start the service automatically. Is there any way I can do this. I know I can't use "android.intent.action.PACKAGE_ADDED" Or "android.intent.action.TIME_TICK" Is there any way I can do this?
Erel B4X founder Staff member Licensed User Longtime User Feb 19, 2014 #2 See this post: http://www.b4x.com/android/forum/threads/update-app-autostart.24720/#post-143131 Upvote 0
SpinBower Member Licensed User Longtime User Feb 19, 2014 #3 Erel said: See this post: http://www.b4x.com/android/forum/threads/update-app-autostart.24720/#post-143131 Click to expand... Hi Erel, I've seen that post before but that doesn't solve my problem. That post is for if the app is updated, how can I autostart the app when it is first installed? Upvote 0
Erel said: See this post: http://www.b4x.com/android/forum/threads/update-app-autostart.24720/#post-143131 Click to expand... Hi Erel, I've seen that post before but that doesn't solve my problem. That post is for if the app is updated, how can I autostart the app when it is first installed?
Erel B4X founder Staff member Licensed User Longtime User Feb 19, 2014 #4 It is not possible. Android doesn't allow you to automatically start your app when it is installed. Also note that StartAtBoot will not work on new devices if the app was not ran at least once. Upvote 0
It is not possible. Android doesn't allow you to automatically start your app when it is installed. Also note that StartAtBoot will not work on new devices if the app was not ran at least once.
SpinBower Member Licensed User Longtime User Feb 19, 2014 #5 Erel said: It is not possible. Android doesn't allow you to automatically start your app when it is installed. Also note that StartAtBoot will not work on new devices if the app was not ran at least once. Click to expand... I guess I could use the package added intent and tell the user to download the second app that will start the SMS service. Would that work? Upvote 0
Erel said: It is not possible. Android doesn't allow you to automatically start your app when it is installed. Also note that StartAtBoot will not work on new devices if the app was not ran at least once. Click to expand... I guess I could use the package added intent and tell the user to download the second app that will start the SMS service. Would that work?
SpinBower Member Licensed User Longtime User Feb 19, 2014 #6 Mason said: I guess I could use the package added intent and tell the user to download the second app that will start the SMS service. Would that work? Click to expand... Or I just somehow use the Time_Tick intent. Upvote 0
Mason said: I guess I could use the package added intent and tell the user to download the second app that will start the SMS service. Would that work? Click to expand... Or I just somehow use the Time_Tick intent.
Erel B4X founder Staff member Licensed User Longtime User Feb 20, 2014 #7 You can intercept the package added intent with an already installed app. Not with a new installed app. Upvote 0
You can intercept the package added intent with an already installed app. Not with a new installed app.
SpinBower Member Licensed User Longtime User Feb 20, 2014 #8 I know, thats why I would make another app and have the first one detect the second when it is installed. Upvote 0
I know, thats why I would make another app and have the first one detect the second when it is installed.