aaronk Well-Known Member Licensed User Longtime User Oct 9, 2012 #1 Hello, Is there a way to load a app from a widget? Basically I want to have the widget as a view only widget and when you tap on the widget make it open a app if its installed, and if its not installed then make is display a message box saying its not installed. Can this be done?
Hello, Is there a way to load a app from a widget? Basically I want to have the widget as a view only widget and when you tap on the widget make it open a app if its installed, and if its not installed then make is display a message box saying its not installed. Can this be done?
icefairy333 Active Member Licensed User Longtime User Oct 9, 2012 #2 use intent you can search with the bbs Upvote 0
NJDude Expert Licensed User Longtime User Oct 9, 2012 #3 aaronk said: Hello, Is there a way to load a app from a widget? Basically I want to have the widget as a view only widget and when you tap on the widget make it open a app if its installed, and if its not installed then make is display a message box saying its not installed. Can this be done? Click to expand... Yes it can be done, you will need to create an invisible panel which will become visible if the app is not installed, otherwise, using an intent, open the app. Upvote 0
aaronk said: Hello, Is there a way to load a app from a widget? Basically I want to have the widget as a view only widget and when you tap on the widget make it open a app if its installed, and if its not installed then make is display a message box saying its not installed. Can this be done? Click to expand... Yes it can be done, you will need to create an invisible panel which will become visible if the app is not installed, otherwise, using an intent, open the app.
aaronk Well-Known Member Licensed User Longtime User Oct 9, 2012 #4 Thanks. I will give it a shot and see what happens Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Oct 9, 2012 #5 Something like: Code: Try Dim in As Intent in.Initialize(in.ACTION_MAIN, "") in.SetComponent(...) StartActivity(in) Catch ToastMessageShow("Application not found.", True) End Try Upvote 0
Something like: Code: Try Dim in As Intent in.Initialize(in.ACTION_MAIN, "") in.SetComponent(...) StartActivity(in) Catch ToastMessageShow("Application not found.", True) End Try
G GaNdAlF89 Active Member Licensed User Longtime User Oct 15, 2012 #6 What should I write in SetComponent? I want to start another app installed.. Upvote 0
NJDude Expert Licensed User Longtime User Oct 15, 2012 #7 Take a look at the attached sample. Attachments WidgetSample.zip WidgetSample.zip 7.9 KB · Views: 401 Upvote 0
aaronk Well-Known Member Licensed User Longtime User Oct 15, 2012 #9 Thanks, great example to help me out. Upvote 0