How to save a intent variable in a sqlite database?

salanmar

Member
Licensed User
Longtime User
Hi all, I'm newbie.

How I can save a intent variable in a sqlite database and then retrieve it in a intent variable?.
It is possible whith the blob field?


Sorry for my English.
 

NJDude

Expert
Licensed User
Longtime User
You don't need to save the intent, just the package name and button number, when you run the app, populate the buttons.

I guess you already know how to run an app, but just in case, look at the code below.

B4X:
Sub Button1_Click

    Dim in As Intent
    Dim pm As PackageManager
                        
    in = pm.GetApplicationIntent("com.my.awesome.app") '<-- This app name will come from your DB.

    If in.IsInitialized Then StartActivity(in)
            
End Sub
 
Upvote 0

salanmar

Member
Licensed User
Longtime User
Thanks NJDude, I had not thought this way.
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…