Android Question Take package name and module in B4XPages. me vs what?

netsistemas

Active Member
Licensed User
Longtime User
In normal applicacion this code return the class pagagename and modele:

B4X:
    Dim cls As String = me
cls have: "class miemprea.miproducto.main"

how return this in b4xpages?
Dim cls As String = ?
 

netsistemas

Active Member
Licensed User
Longtime User
Yes, but this is not correct for me:

i need this for take photo with 'intent' metoth

SOLUTION: Application.PackageName

Finally i go to use this:
B4X:
Sub GetBA As Object
    Dim jo As JavaObject
    Dim cls As String =  Application.PackageName & ".main" '     B4XPages.GetPageId(B4XPages.MainPage )' "class empresa.producto.main" 'me   'b4a.example3.
    'class b4a.example3.main
    'cls = cls.SubString("class ".Length)
    jo.InitializeStatic(cls)
    Return jo.GetField("processBA")
End Sub
 
Last edited:
Upvote 0
Top