Package Name in B4i
Hi everybody! There is "Application.PackageName" in B4A to get the PackageName. What is its equivalent in B4i?
www.b4x.com
PackageManager
Hi, I asked this question yesterday in the wrong forum, I hope I am now in the correct forum.;) How can I convert this B4a functions in B4i? Thank you. Sub getVersion As String Dim pm As PackageManager Return pm.GetVersionName(GetPackageName) End Sub Sub GetVersionCode As Int Dim...
www.b4x.com
Error in package name
I have an app in App Store I try translate in B4I this App but the name is like: xxxx-xxxxx.app When i try to impost this package name I receive an error: "Package name non valido" I think the problem is the dash, but in the iTunes Connector i'm already this name, You have solution to me.
www.b4x.com
Error in package name
I have an app in App Store I try translate in B4I this App but the name is like: xxxx-xxxxx.app When i try to impost this package name I receive an error: "Package name non valido" I think the problem is the dash, but in the iTunes Connector i'm already this name, You have solution to me.
www.b4x.com
Thank you for Alexander Stolte's code [B4X]
B4X:
Private Sub GetPackageName As String
#If B4A
Return Application.PackageName
#Else If B4I
Dim no As NativeObject
no = no.Initialize("NSBundle").RunMethod("mainBundle", Null)
Dim name As Object = no.RunMethod("objectForInfoDictionaryKey:", Array("CFBundleIdentifier"))
Return name
#Else If B4J
Dim joBA As JavaObject
joBA.InitializeStatic("anywheresoftware.b4a.BA")
Return joBA.GetField("packageName")
#End If
End Sub
Last edited: