A
A
Alexey So2016-05-12 15:17:51
Java
Alexey So, 2016-05-12 15:17:51

Are there any manuals for migrating to andoid6?

There is an application - it worked on anroid up to 5 of that version.
Installed not through Google Play (just APK)
It constantly crashes on volume 6 - we correct the functions according to the logs, but God knows how many more errors there will be.
for example:
E/sPhone: camera.autoFocus hidden: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.hardware.Camera.autoFocus(android.hardware.Camera$AutoFocusCallback)' on a null object reference
of course.
Maybe there is some magic line for porting to andoid 6?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem Gapchenko, 2016-05-12
@mayhembr

You need to migrate to the new permissions model .
Starting from the sixth Android, all permissions (or rather, not all, but only those that Google classified as "dangerous" ) can be canceled / added by the user after installing the application, so you will need to write code that will check for these permissions, and if it is necessary to request them from the user.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question