android - Does cwac camera capture the user's gps location? -
i creating app needs coppa (children's online privacy protection) compliant. wondering if cwac camera captures gps information user @ all. geotagging default? if so, how can turn off? reference, getting following version of cwac camera (gradle).
compile 'com.commonsware.cwac:camera:0.6.+'
i attach snippet of code. extending simplecamerahost
class mycamerahost extends simplecamerahost { private camera.size previewsize; private boolean musefrontcamera; public mycamerahost(context ctxt, boolean b) { super(ctxt); musefrontcamera = b; } @override public boolean usefullbleedpreview() { return true; } @override public camera.size getpicturesize(picturetransaction xact, camera.parameters parameters) { return previewsize; } @override public camera.parameters adjustpreviewparameters(camera.parameters parameters) { camera.parameters parameters1 = super.adjustpreviewparameters(parameters); if (parameters1.getsupportedfocusmodes().contains(camera.parameters.focus_mode_continuous_picture)) { parameters1.setfocusmode(camera.parameters.focus_mode_continuous_picture); } previewsize = parameters1.getpreviewsize(); return parameters1; } @override public void saveimage(picturetransaction xact, final bitmap bitmap) { runonuithread(new runnable() { @override public void run() { showtakenpicture(bitmap); } }); } @override public void saveimage(picturetransaction xact, byte[] image) { super.saveimage(xact, image); photopath = getphotopath(); } @override protected boolean usefrontfacingcamera() { return musefrontcamera; } }
there nothing in code geo-tagging. it's configuring camera mode, saving file, should use front camera.
in android obtaining user's location different implementation altogether has nothing camera.
Comments
Post a Comment