Free Android Studio JAVA Project - Photo Web Camera with FTP client
This is a fully-ready application (source codes) of commercial level, which you can use for your developments absolutely freely.
Upload the project to Android Studio, compile and install on your smartphone. You will have a camera that takes photos on schedule and uploads them to your free or paid hosting via FTP. This is convenient for monitoring your home, office, store or warehouse. Photos on the website can be viewed from anywhere in any browser.
Project Link http://shmeleff.com/PhotoWebCamSHMELEFF.zip
Guide - http://oflameron.com
The application is interesting, has many functions and settings, can upload photos to web hosting or to a Telegram channel. It is very convenient.
The application can use different cameras, take photos only during daylight hours, you can set the number of photos in rotation, set the photo interval. The application uses the standard camera settings. This simplifies the code and makes it independent of the type of smartphone.
The application was tested with a Samsung M21 smartphone.
This allows you to save money - you can use an old smartphone, bought at a big discount, for surveillance. Even if the smartphone has a very bad battery, you can connect it to the power grid via a standard power supply. This is the cheapest smart surveillance system.
The project uses a standard Apache FTP client to upload photos to a web hosting. The corresponding library has been added to the project. You can check it out.
Another option for sharing photos is to upload them to a regular Telegram channel. To do this, you must register your Telegram channel and get a token to work with it. It's free.
Details
This project has many functions. You can choose a camera for shooting, the number of photos in rotation, record photos to a web hosting, to a Telegram channel or to the local memory of a smartphone.
To save battery power, increase stealth, or save screen resources, you can make a "black screen".
In the application Photo Web Camera, you can specify the time of day when you want to take photos (daylight hours).
Digression. Mounting a Photo Webcam on a Small Dish Using a Car Suction Cup Mount.
Another solution is to attach it to the car window and connect it to the cigarette lighter. The car battery will be able to provide long-term operation of the system.
Screen brightness control
This is necessary to make the screen dark and then restore the brightness. The application should use the dark screen for the longest time - to save battery and screen resources and attract less attention.
f.brightness2 = android.provider.Settings.System.getInt(getContentResolver(),android.provider.Settings.System.SCREEN_BRIGHTNESS);
f.brightness3 = android.provider.Settings.System.getInt(getContentResolver(),android.provider.Settings.System.SCREEN_BRIGHTNESS);
Save the current brightness value.
Set a new screen brightness value
context = getApplicationContext();
Intent brightnessIntent = this.getIntent();
float brightness = brightnessIntent.getFloatExtra("brightness value", f.brightness2); //<-- 1-225
WindowManager.LayoutParams lp = getWindow().getAttributes();
lp.screenBrightness = brightness;
getWindow().setAttributes(lp);