B4A Tutorial Integrating Firebase Services - Erel    Sep 14, 2020   (51 reactions)   tags: Integrating Firebase Serv, Integration Firebase, firebase Google has acquired a company named Firebase and is now offering many backend services under the Firebase umbrella. Most of them are free. Integrating the services is relatively simple. 1. Use... package name. 3. Download google-services.json and put it in the projects folder (folder of the b4a file). 4. Add the manifest snippets to the manifest editor based on the services that you need. 5. Follow the instructions of the specific libraries. Note that a recent version of Google Play Services... B4A Tutorial Service Modules - Erel    Feb 7, 2023   (6 reactions)   tags: Services Basic4android v1.2 adds support for Service modules. Service modules play an important role in the application... visible. Services life cycle is (almost) not affected by the current visible activity. This allows you to run tasks in the background. Services usually use the status bar notifications to interact with the user. Services do not have any other visible elements. Services also cannot show any dialog (except of toast messages). Note that when an error occurs in a service code you will not see... Java Question Example of #Extends in Service - Erel    Mar 13, 2018   (6 reactions) Starting from B4A v6.50 services support the #Extends attribute. This is useful for libraries that need to extend a service. The previous solution was to communicate with a B4A service with a specific name. This was more cumbersome and limited. The #Extends attribute allows the B4A service to directly extend the library service. An example of the NotificationListener library implemented... adds the intent filter and permission to the B4A service.... B4A Tutorial Starter Service - Consistent & Single Entry Point - Erel    Sep 20, 2018   (25 reactions)   tags: Boot for those crashes is that the OS can start the process from a different activity or service. For example if you use StartServiceAt and the OS kills the process while it is in the background. Now... feature named Starter service that provides a single and consistent entry point. If the Starter service exists then the process will always start from this service. The Starter service will be created and started and only then the activity or service that were supposed to be started will start... B4A Tutorial HttpUtils2 - Web services are now even simpler - Erel    Feb 28, 2016   (18 reactions)   tags: b4j, Http, Erel, b4a that helps with communicating with web services (Http servers). HttpUtils2 is an improved version...: HttpUtils2Service and HttpJob (class module). The two code modules are included in HttpUtils2 (attached project... when a job completes. The module can be an Activity, Service or class instance. You can use the Me... B4A v2.70, HttpUtils2 is included as a library in the IDE. Relevant links ImageDownloader - Service... example" is available there. DownloadService - Download files of any size with DownloadService... B4A Library NotificationListener library (NotificationListenerService) - Erel    Apr 5, 2020   (17 reactions)   tags: notification a Service module named NotificationService (must be this exact name). - Add the following code to the manifest editor: AddApplicationText( <service android:name="anywheresoftware.b4a.objects...:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE"> <intent-filter> <action android:name="android.service.notification.NotificationListenerService" /> </intent-filter> </service>) You can change the value of android:label. - The user... B4A Tutorial Creating a sticky service - long running background tasks - Erel    Dec 9, 2018   (14 reactions)   tags: Services Edit: Things have changed with newer versions of Android and new restrictions. Sticky services should not be used any more. Background service example: https://www.b4x.com/android/forum/threads.... There are several ways to handle background tasks. 1. You can use StartServiceAt to schedule a service to run at a specific time. When the service is started you can schedule the next one. This way you can create a service that runs every x minutes or hours. This option is good for all kinds of updates... B4A Tutorial Receivers and Services in 2023+ - Erel    Jan 18, 2023   (28 reactions) In the early days of Android services were simple to use and powerful. They allowed doing all kinds... versions of Android. With a few exceptions (that aren't 100% reliable), the only use case for services... is received. 'Do not assume that anything else, including the starter service, has run before... recognition Run after boot And more... Q. Can receivers do everything that services can? A. No. Receivers run for a short time. There is no similar feature to foreground services where a service can continue... B4A Question Now - Android 6 ServiceStartAtExact not accurate - wes58    Mar 26, 2016 With KitKat, Google changed AlarmManager such that if you wanted the Service to start at exactly..., PendingIntent operation). Erel implemented this in B4A as StartServiceAtExact. Now I have upgraded to android 6...://stackoverflow.com/questions/33432661/alarm-manager-for-background-services I found a Java example... @Override public void onReceive(Context context, Intent intent){ startWakefulService(context,new Intent(context,MyService.class)); long period = intent.getLongExtra(PERIOD,-1... B4A Library Barcode reader based on Google Play Services Vision - Erel    Oct 7, 2018   (19 reactions)   tags: Barcode, B4A Barcode reader GOOD This is not really a library. It is a modification to CameraEx example that adds barcode detection based on Google Play Services Vision. It uses JavaObject to create the detector and detect barcodes in the Preview event. You should call CreateDetector with the formats you want to detect. Fewer codes will yield faster detections. List of formats is available here: https://developers.google.com/android/reference/com/google/android/gms/vision/barcode/Barcode#constant-summary The implementation... Page: 1   2   3   4   5   6   7   |