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
2 months ago
Alexander Smorkalov
fde99e68c0
Removed Android AIDL from build scrips and tutorials as it's not needed since 4.9.0.
1 year ago
Alexander Smorkalov
e5d1309fcf
Fixed typo in Android build scripts.
1 year ago
Alexander Smorkalov
d36b959dd1
Drop Adnroid.mk and Application.mk in samples as they are not used with Gradle.
1 year ago
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
1 year ago
Alexander Smorkalov
88d3e7a7ba
Fixed regression in Android Tutorial2 initialization.
1 year ago
Alexander Smorkalov
2830551e89
Drop OpenCV Manager from samples initialization.
1 year ago
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
1 year ago
Alexander Alekhin
eae5fd81e5
android: add android:exported="true"
2 years ago
Alexander Alekhin
01c1b341a8
cmake: enable C++11 implicitly
5 years ago
hannesa2
57c9991413
Merge pull request #16481 from hannesa2:DeleteOldAndroidManifest.xml
...
* delete old AndroidManifrst.xml
* fix tutorial generation
5 years ago
Hannes Achleitner
afc8dd5661
remove Eclipse relicts in Android sample
5 years ago
Hannes Achleitner
2da7360b63
Remove Android Eclipse relicts
5 years ago
Giles Payne
2734291b35
Add CameraActivity utility class to automate Camera permission request handling
6 years ago
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.
6 years ago
Alexander Alekhin
2b35c1708b
android: gradle-based package and samples
...
- drop hello-android sample
6 years ago
Alexander Alekhin
8533b45ce9
cmake: Java/Android SDK refactoring
7 years ago
Suleyman TURKMEN
11ca1c95f8
update cpp samples and tutorials
9 years ago
Alexander Alekhin
491a3fdebc
android samples: force setVisibility (see #5812 )
9 years ago
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.
10 years ago
Maksim Shabunin
bfa77ff5a4
Increase android samples versions
10 years ago
Maksim Shabunin
231685133e
OpenCV Manager: support 3.0.0 library
10 years ago
Vadim Pisarevsky
1176d4ef84
fixed some more compile errors and test failures
10 years ago
Vadim Pisarevsky
c422bdc3f8
fixed some more compile errors and test failures
10 years ago
Alexander Alekhin
15b6fd2ec4
android: allow to build & run examples without Android OpenCV Manager
11 years ago
hbristow
2059972bf7
Preparing to rebase
12 years ago
Alexander Smorkalov
f89cc191a4
Waning fixes for Android samples
12 years ago
Alexander Smorkalov
d067dc5a05
Code review notes fixed.
12 years ago
Alexander Smorkalov
507e2dc0ad
Project files for Eclipse updated.
12 years ago
Alexander Smorkalov
902463b6e9
Tutorial4 sample renamed to Tutorial-2-MixedProcessing
12 years ago