B4A Question Recents app - Erel (first post)    May 18, 2016 You can use getRecentTasks to find the recent apps: https://www.b4x./?query=getRecentTasks However it will not work on Android 5+ as Google has removed this feature. B4A Library OS metrics: MSOS lib and OSStats and GetForegroundApp - thedesolatesoul (first post)    Mar 21, 2015   (2 reactions) Yes they are deprecated: http://developer.android..html#getRecentTasks(int, int) http://developer.android..html#getRunningTasks(int) I would need to fix the lib. Try the one attached. B4A Tutorial Android 5.0 Information and Resource Thread - thedesolatesoul    Jan 11, 2015   (33 reactions) Android 5.0 Lollipop is a pretty big update hence the major version number upgrade. I wanted to make a thread to combine Android 5 SDK related resources since it is such a big update. At the moment it is a bunch of links, but i will try to sanitize and organize it. Feel free to add more information B4A Question Activity.Finish - Erel (first post)    May 01, 2018   (2 reactions) You are confusing two different things. You are not talking about exiting the app completely but rather about preventing the activity from appearing in the recent apps list.
Add this code to your activity:
Dim ctxt As JavaObject
ctxt.InitializeContext
Dim ActivityManager As JavaObject = ctxt.RunMe B4A Question Kiosk - lemonisdead (first post)    Jan 10, 2015 gears42.common.ui.GetWallpaperActivity" android:excludeFromRecents="true" android:launchMode="singleTask" android:configChanges="keyboardHidden|orientation|screenLayout" /> <activity android:theme="@style/EmptyActivity" android:name="MiniWatchDogActivity" android:excludeFromRecents="true" an Java Question Manage long operations without blocking main thread - max123 (first post)    May 17, 2022 evt, false, new Object {"ExtractZip", Percent, false});
//ba.raiseEvent2(this, true, evt, false, "ExtractZip", Percent);
}
oldPercent = Percent;
// try {
// B4A Question Getting a List of Running Apps - treehousefrog    May 11, 2015 Hey guys,
So I used to use the following method to get a list of running apps with their images:
Dim packman1 As PackageManager
Dim whichapp As String
Dim o As OperatingSystem
Dim tasks As List = o.getRecentTasks(20, 0)
For Each task As Object In tasks
Dim r As Reflector
r.Ta B4J Tutorial [ABMaterial] New ABMPlanner and ABMPercentSlider (2.50) - alwaysbusy    Feb 01, 2017   (9 reactions) PLANNER_STATUS_ constants to check the status Log("Status: " & spl(4)) Log("Task ID: " & spl(5)) Select Case spl(0) Case ABM.PLANNER_MENU_CUT cutTaskID = spl(5) copyTask = plan.GetTask(spl(5)) IsCut = True myToastID = myT B4A Library SD: BindingNavigator (Sqlite GUI Navigator) - Star-Dust    Nov 20, 2021   (13 reactions) WizardMask Events: ValueChanged (Value As Int) Fields: Coefficent As Float FontAW As Typeface Functions: AddAllField As String AddField (FieldName As String, Hint As String) As String Class_Globals As String ClearField As String ConnectDB (Path As String, FileName As String, CreateIfNecessa B4A Question #AdditionalJar: guava-23.0.jar causes the compile to fail - Bryan Joyce (first post)    Oct 14, 2024 google.auth.oauth2.OAuth2Credentials$RefreshTask . 35 more Sub Process_Globals Private fm As FirebaseMessaging Private Const ProjectId As String = "fcmtest2-124ae" 'change Private SendToken As String End Sub Private Sub Receiver_Receive (FirstTime As Boolean, StartingIntent As In Page: 1   2   3   4   5   6   7   Powered by ColBERT |