B4A Library OS Library

GMan

Well-Known Member
Licensed User
Longtime User
Is there any brief description of the library without browsing the lib itself with an XML-Editor ?
 

cncncn

Member
Licensed User
Longtime User
Hi,

I want to kill adobe reader so i get PID of Adobe then i use this :
B4X:
Dim closeadobe as OperatingSystem
closeadobe.killprocess(144287)

Is there any special permissions beacause it doesn't works
 

cncncn

Member
Licensed User
Longtime User
killprocessus doesn't works on my tablet samsung galaxy tab 3 gt-n8010 for adobe reader
 

GMan

Well-Known Member
Licensed User
Longtime User
Killing other processes doesn't work on most devices.
And thats the reason why most of the "Task Managers" dont work at the Point: Clean or Kill process
 

westingenieria

Active Member
Licensed User
Longtime User


hi, Is it possible to get names, etc out of it?
B4X:
os.RunningAppProcesses()
...
how?
 

Baltazar

Member
Licensed User
Longtime User
Fantastic work XverhelstX ! These were just the ones I was about to ask. . Thank you!
 

boralogy

Member
Licensed User
Longtime User
can't get battery level could you help me? it returns NULL
B4X:
Sub Globals
    'These global variables will be redeclared each time the activity is created.
    'These variables can only be accessed from this module.
Dim ag As OperatingSystem
    Private bat_lvl As Label
    Private Label1 As Label
   
End Sub

Sub Activity_Create(FirstTime As Boolean)
    'Do not forget to load the layout file created with the visual designer. For example:
    Activity.LoadLayout("low_main")
   
bat_lvl.Text=ag.BatteryLevel




End Sub
 

wonder

Expert
Licensed User
Longtime User
Hello!

B4X:
Error serving request: (SecurityException) java.lang.SecurityException: Neither user 10165 nor current process has android.permission.REBOOT.
Adding the permission "android.permission.REBOOT" doesn't solve it.
How can I reboot? The device is rooted, by the way.
 

BarryW

Active Member
Licensed User
Longtime User

Hi!

i try to use

B4X:
Dim OS As OperatingSystem : OS.Initialize("OS")
Dim ProcessName, PIDs, NamePIDs, RunningApps As List
ProcessName.Initialize : PIDs.Initialize : NamePIDs.Initialize : RunningApps.Initialize
RunningApps = OS.RunningAppProcessInfo(ProcessName, PIDs, NamePIDs)

Can we turn off the logs of process list... Tnx
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…