All Projects → saschpe → android-textoverlay

saschpe / android-textoverlay

Licence: Apache-2.0 License
Provides a simple service that allows to display arbitrary text as a system-window overlay.

Programming Languages

java
68154 projects - #9 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to android-textoverlay

TgTwitterStreamer
Continous Integration from Twitter to Telegram.
Stars: ✭ 55 (+175%)
Mutual labels:  service
packit-service
Packit provided as a service
Stars: ✭ 29 (+45%)
Mutual labels:  service
Driver.NET
Lightweight and flexible library to load and communicate with kernel drivers on Windows.
Stars: ✭ 59 (+195%)
Mutual labels:  service
elixir-ms
an elixir microservice base/skeleton 💀
Stars: ✭ 39 (+95%)
Mutual labels:  service
Send-To-Instapaper-OSX-Service
Send to Instapaper is a macOS service used to send URLs to Instapaper from any link in any app.
Stars: ✭ 14 (-30%)
Mutual labels:  service
laravel-conditional-providers
THIS PACKAGE HAS BEEN DEPRECATED — Load Laravel service providers and facades based on the current environment.
Stars: ✭ 26 (+30%)
Mutual labels:  service
ng2-STOMP-Over-WebSocket
STOMP Over WebSocket service for angular2
Stars: ✭ 35 (+75%)
Mutual labels:  service
instl
💻 A crossplatform installer for GitHub projects that just works!
Stars: ✭ 45 (+125%)
Mutual labels:  service
PushMeBaby
iOS Push Notification Debug App. You can use this app during iOS Push Notification (development or production) to push notifications on your device from your Mac.
Stars: ✭ 47 (+135%)
Mutual labels:  service
watchman
Watchman: An open-source social-media event-detection system
Stars: ✭ 18 (-10%)
Mutual labels:  service
go-windows-svc
GO shell for a Windows service
Stars: ✭ 57 (+185%)
Mutual labels:  service
go-wx-api
微信公众号开发API封装
Stars: ✭ 17 (-15%)
Mutual labels:  service
audio-overlay
Gentoo overlay for music production
Stars: ✭ 33 (+65%)
Mutual labels:  overlay
ACT DFAPlugin
FFXIV Duty Finder Assist for ngld/OverlayPlugin
Stars: ✭ 48 (+140%)
Mutual labels:  overlay
SSTMCSPGAAS
Stupidly Simple Tiny Minimal Coming Soon Page Generator As A Service
Stars: ✭ 23 (+15%)
Mutual labels:  service
gologger
A concurrent, fast queue/service worker based filesystem logging system perfect for servers with concurrent connections
Stars: ✭ 16 (-20%)
Mutual labels:  service
HunterPie-v2
HunterPie completely rewritten from scratch
Stars: ✭ 74 (+270%)
Mutual labels:  overlay
hls-live-thumbnails
A service which will generate thumbnails from a live HLS stream.
Stars: ✭ 49 (+145%)
Mutual labels:  service
MultiLamp
Android library to showcase/highlight the multiple views on same overlay
Stars: ✭ 235 (+1075%)
Mutual labels:  overlay
workbox-microsite
Workbox Microsite
Stars: ✭ 24 (+20%)
Mutual labels:  service

Android TextOverlay

Download Android Arsenal License Build Status

This library provides a simple service that allows to display arbitrary text as a system-window overlay.

It can be used to display debugging information in the debug build of your app so that every screenshot that QA or beta testers do will automatically include the product flavor or build type of your APK. You can provide additional information such as the Git commit hash or arbitrary strings easily:

Overlay Updated overlay

Usage

You can start / stop the text overlay service the default way in your activities:

@Override
protected void onStart() {
    super.onStart();
    startService(new Intent(this, TextOverlayService.class));
}

@Override
protected void onDestroy() {
    stopService(new Intent(this, TextOverlayService.class));
    super.onDestroy();
}

A more convenient way is to use the include activity lifecycle callbacks in your app's application sub-class:

public class Application extends android.app.Application {
    @Override
    public void onCreate() {
        super.onCreate();
        registerActivityLifecycleCallbacks(new TextOverlayActivityLifecycleCallbacks());
    }
}

Furthermore, you can declare the service in your AndroidManifest.xml to provide additional parameters. This is entirely optional as the library will provide a default declaration for you:

<service
    android:name=".service.TextOverlayService"
    android:exported="false" />

Either way, you have to declare the SYSTEM_ALERT_WINDOW permission in you manifest. The library does not do that for you since you may only want to use the text overlay service in specific flavors or build types:

<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />

On API level 23 or later, you will have to ask the user to grant this permission. However, the provided TextOverlayActivityLifecycleCallbacks will handle that for you.

Check out the provided example applications for different ways to use this library:

  • textoverlay-activity-example
  • textoverlay-lifecycle-example

Download

compile 'saschpe.android:textoverlay:1.1.1'

Snapshots of the development version are available in Sonatype's snapshots repository.

License

Copyright 2016 Sascha Peilicke

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].