Tesseract tools for Android build

I ran into a problem trying to build this library

After a while I was able and decided to help others who might have run into the same

Here is my answer on Stackoverflow

MService

A sample app on Android Services demonstrating use of both background service and foreground service

Check out services for more.

Credits: The Android  TM Developer’s Cookbook, Second Edition

Check it out at https://github.com/PaulMuriithi/MService

Notification-Light

This is pretty simple

Start off with an instance of NotificationManager, one of the core system services:

NotificationManager notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);

Construct a new Notification object:

Notification notification = new Notification();
notification.ledARGB = color;
notification.flags |= Notification.FLAG_SHOW_LIGHTS;
notification.ledOnMS = 100;
notnotificationif.ledOffMS = 100;

ledARGB is used to specify an alpha, red, green and blue color value combined into one single integer.

flags has the FLAG_SHOW_LIGHTS flag added to it via a bitwise operation. It simply indicates that you want to make use of a device’s LED in this notification object.

ledOnMS and ledOffMS: The LED will flash with ledOnMS denoting how long the LED will be on and ledOffMS indicating how long it should stay off between flashes.

Lastly call notify

notificationManager.notify(LED_NOTIFICATION_ID,notification);

See https://github.com/PaulMuriithi/Notification-Light for an example

NativeScript-Build truly native apps with JavaScript

The other day I came across the NativeScript framework.

NativeScript enables developers to build native apps for iOS, Android and Windows Universal while sharing the application code across the platforms. When building the application UI, developers use our libraries, which abstract the differences between the native platforms.

I have tried out and it’s quite nice.

Check out this