I wan't to show an image that is already saved on the device. I want to show the image on the whole screen by accessing all the pixels on the screen of the android device.
Any help will be appreciated!
Thank you for your responses @akash93 and @ghostbust555.
I was looking for a way that I can wrap it with python script.
Here, what I found that helped me to figure out a solution for my problem.
To disable the navigation bar:
adb shell service call activity 42 s16 com.android.systemui
Show an image:
shell am start -a android.intent.action.VIEW -d file://data/test.jpg -t image/jpeg
To enable the navigation bar:
adb shell am start -a android.intent.action.VIEW -d file://%s/test_lcd.jpg -t image/jpeg
Resource: Is there a way to hide the system/navigation bar in Android ICS
you are looking for full screen immersive mode - https://developer.android.com/training/system-ui/immersive.html
In your activity's onCreate
method add
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
before setContentView