Hi, i'm a total noob.
i'm trying to create a custom app to add an overlay black background with adjusting alpha over all of android, that can receive serial signal over a USB com port that is sending ambient light values to auto adjust brightness by adjusting the alpha overlay.
problem i'm addressing is that if you have a android (minix x5 neo) connected to a tv over hdmi, it can be very bright. so i want to make an app that i can connect to a com port serial device that can recieve the input and adjust the brightness.
i can make the hardware side with ease using a atmel and a photocell doing an averaged a/d conversion and spitting that out of the uart to a serial port.
i'm just not sure how to make the "layer" persistent even when you close the adjustment app.
i can make an app that will work within the app, but when you close it the alpha layer closes as well.
i know there are apps that can do this, but they don't have any way to auto adjust for a large tv over hdmi.
any help would be appreciated!