Alexander Smorkalov
c803aa2ddd
Merge pull request #26057 from asmorkalov:as/android_16k_pages
...
Android builds update #26057
Fixes https://github.com/opencv/opencv/issues/26027
Should also address https://github.com/opencv/opencv/issues/26542
Changes:
- Switched to Android build tools 34, NDK 26d, target API level 34 (required by Google Play).
- Use flexible page size on Android by default to support Android 15+.
- Dummy stub for R and BuildConfig classes for javadoc.
- Java 17 everywhere.
- Strict ndkVersion and ABI list in release package.
Related:
- Docker: https://github.com/opencv-infrastructure/opencv-gha-dockerfile/pull/41
- Pipeline: https://github.com/opencv/ci-gha-workflow/pull/183
Related IPP issue with NDK 27+: https://github.com/opencv/opencv/issues/26072
Google documentation for 16kb pages support : https://developer.android.com/guide/practices/page-sizes?hl=en
### Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
- [x] I agree to contribute to the project under Apache 2 License.
- [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
- [x] The PR is proposed to the proper branch
- [x] There is a reference to the original bug report and related work
- [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
Patch to opencv_extra has the same branch name.
- [ ] The feature is well documented and sample code can be built with the project CMake
2024-12-31 11:53:04 +03:00
Alexander Smorkalov
fde99e68c0
Removed Android AIDL from build scrips and tutorials as it's not needed since 4.9.0.
2024-01-10 16:27:52 +03:00
Alexander Smorkalov
e5d1309fcf
Fixed typo in Android build scripts.
2023-12-28 16:42:01 +03:00
Alexander Smorkalov
d36b959dd1
Drop Adnroid.mk and Application.mk in samples as they are not used with Gradle.
2023-12-04 16:06:33 +03:00
Alexander Smorkalov
1ef8175c49
Merge pull request #24600 from asmorkalov:as/tutorial2_fix
...
Fixed regression in Android Tutorial2 initialization.
2023-11-28 15:50:39 +03:00
Alexander Smorkalov
1c4f441507
Merge pull request #24554 from asmorkalov:as/android_sdk_local_props
...
Android AAR package build and test with CI
2023-11-28 15:17:06 +03:00
Alexander Smorkalov
aa6b399b5a
AAR package build and test with CI
...
- Use the same tools and plugins for SDK build and AAR build
- Added script to test Gradle-based samples against local maven repo
- Various local fixes and debug prints
2023-11-28 10:00:56 +03:00
Alexander Smorkalov
88d3e7a7ba
Fixed regression in Android Tutorial2 initialization.
2023-11-27 16:13:46 +03:00
Alexander Smorkalov
2830551e89
Drop OpenCV Manager from samples initialization.
2023-11-23 18:27:18 +03:00
alexlyulkov
6c57ce9e09
Merge pull request #24473 from alexlyulkov:al/samples_with_maven
...
Updated Android samples for modern Android studio. Added OpenCV from Maven support. #24473
Updated samples for recent Android studio:
- added namespace field that is required in build.gradle files
- replaced _switch_ by _if-else_ because it doesn't work with constants from resources
- added missed log library dependency in face-detection/jni/CMakeLists.txt
- use local.properties to define NDK location
Added support for OpenCV from Maven. Now you can choose 3 possible sources of OpenCV lib in settings.gradle: SDK path, local Maven repository, public Maven repository. (Creating Maven repository from SDK is added here #24456 )
There are differences in project configs for SDK and Maven versions:
- different dependencies in build.gradle
- different OpenCV library names in CMakeLists.txt
- SDK version requires OpenCV_DIR definition
Requires:
- https://github.com/opencv/ci-gha-workflow/pull/124
- https://github.com/opencv-infrastructure/opencv-gha-dockerfile/pull/26
2023-11-17 14:17:17 +03:00
Alexander Alekhin
eae5fd81e5
android: add android:exported="true"
2022-10-23 12:11:10 +00:00
Alexander Alekhin
f791cf825f
Merge pull request #16486 from alalek:cmake_use_target_compile_features
2020-02-08 20:01:12 +00:00
Alexander Alekhin
01c1b341a8
cmake: enable C++11 implicitly
2020-02-03 17:45:37 +03:00
hannesa2
57c9991413
Merge pull request #16481 from hannesa2:DeleteOldAndroidManifest.xml
...
* delete old AndroidManifrst.xml
* fix tutorial generation
2020-02-03 16:34:03 +03:00
Hannes Achleitner
afc8dd5661
remove Eclipse relicts in Android sample
2020-01-15 07:19:58 +01:00
Hannes Achleitner
2da7360b63
Remove Android Eclipse relicts
2019-12-24 07:38:12 +01:00
Giles Payne
2734291b35
Add CameraActivity utility class to automate Camera permission request handling
2019-07-20 13:40:10 +09:00
Otto Seiskari
3a1ccd5f43
Remove fullscreen android:theme where it hides the menu
...
Many of the Android samples rely on an options menu to work properly
but, at least on newer devices, the menu is permanently hidden by the
Android theme "Theme.NoTitleBar.Fullscreen", which means that most
of the examples were dysfunctional.
2019-03-18 21:23:47 +02:00
Alexander Alekhin
2b35c1708b
android: gradle-based package and samples
...
- drop hello-android sample
2018-12-19 14:59:48 +03:00
Alexander Alekhin
8533b45ce9
cmake: Java/Android SDK refactoring
2018-01-13 02:12:39 +00:00
Suleyman TURKMEN
11ca1c95f8
update cpp samples and tutorials
2016-06-26 20:55:00 +03:00
Alexander Alekhin
491a3fdebc
android samples: force setVisibility (see #5812 )
2015-12-16 14:31:49 +03:00
Alexander Alekhin
e1ad86c1fa
android samples: update way to attach native part of OpenCV
...
OPENCV_ANDROID_SDK - OpenCV Android SDK location (or OpenCV build dir)
Can be passed via ndk-build parameter or environment variable.
2015-08-12 18:37:29 +03:00
Maksim Shabunin
bfa77ff5a4
Increase android samples versions
2015-06-17 18:10:28 +03:00
Maksim Shabunin
231685133e
OpenCV Manager: support 3.0.0 library
2015-03-19 15:27:14 +03:00
Vadim Pisarevsky
1176d4ef84
fixed some more compile errors and test failures
2014-10-17 15:02:56 +04:00
Alexander Alekhin
15b6fd2ec4
android: allow to build & run examples without Android OpenCV Manager
2014-06-06 18:01:04 +04:00
Alexander Smorkalov
f89cc191a4
Waning fixes for Android samples
2013-04-05 12:17:45 +04:00
Alexander Smorkalov
d067dc5a05
Code review notes fixed.
2013-02-11 11:36:12 +04:00
Alexander Smorkalov
507e2dc0ad
Project files for Eclipse updated.
2013-02-08 12:50:58 +04:00
Alexander Smorkalov
902463b6e9
Tutorial4 sample renamed to Tutorial-2-MixedProcessing
2013-02-08 12:50:07 +04:00