Share My Creation Camera2 - widen your horizons, reduce your footprint

remember Camera2? looks like it will soon go the way of the original Camera api in android's
Hall of Deprecation once people figure out how to use CameraX.

anyway, i had occasion to revisit the Camera2 example app, more out of curiosity than anything
else. there seemed to be no way to invoke Camera2's so-called "wide" angle setting. also, what
i really missed was a way to set the "capture" size. so i added them. a (possibly) interesting capture
setting is a square image. in looking at the various supported settings, i thought there was a typo:
1080x1080. a square image! once again google has given us a solution to which there was no problem.
regarding the wide angle setting, if your camera doesn't support it, you don't get it.
 

Attachments

  • normal.png
    normal.png
    166.4 KB · Views: 188
  • wide.png
    wide.png
    181.2 KB · Views: 30
  • 2x.png
    2x.png
    192.4 KB · Views: 31
  • size-1.png
    size-1.png
    49.5 KB · Views: 33
  • size-2.png
    size-2.png
    49 KB · Views: 33
  • square.png
    square.png
    97.9 KB · Views: 33
Last edited:
Top