what does the applicationInfo flags mean?

Jamsa

Member
Licensed User
Longtime User
Hi

I've tried figuring out what the applicationInfo flags like 48709 means, but I can't find any info on it at all???

If it isn't clear what I'm talking about:sign0144:, i got some code here:
B4X:
For i = 0 To size -1
      Obj3.Target = Obj2.RunMethod2("get", i, "java.lang.int") ' PackageInfo
      name = Obj3.GetField("packageName")
      Obj3.Target = Obj3.GetField("applicationInfo") ' ApplicationInfo      
      flags = Obj3.GetField("flags")   
      
      If Bit.And(flags, 1)  = 0 Then
         'app is not in the system image
            
         args(0) = Obj3.Target
         types(0) = "android.content.pm.ApplicationInfo" 
         name = Obj1.RunMethod4("getApplicationLabel", args, types)
         Usermsg = Usermsg & name & " : " & flags & CRLF
         Usercount = Usercount + 1
      Else
         'app is in the system image
            
         args(0) = Obj3.Target
         types(0) = "android.content.pm.ApplicationInfo" 
         name = Obj1.RunMethod4("getApplicationLabel", args, types)
         Systemmsg = Systemmsg & name & " : " & flags & CRLF
         Systemcount = Systemcount + 1
      End If      
   Next
 

Jamsa

Member
Licensed User
Longtime User
Yes, I've seen that list. :)

But how do I decipher the value 48709?
Do I have to check for each and every bit-value??
 
Upvote 0
Top