Skip to content

Commit 63a113a

Browse files
committed
[[ Android API ]] Use API 19
This patch updates android to build against `android-19` to allow for the browser widget `PrintToPDF` function. (cherry picked from commit 7fdc634)
1 parent 10f0c14 commit 63a113a

File tree

5 files changed

+14
-6
lines changed

5 files changed

+14
-6
lines changed

config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ def validate_android_tools(opts):
396396

397397
ndk_ver = opts['ANDROID_NDK_VERSION']
398398
if opts['ANDROID_PLATFORM'] is None:
399-
opts['ANDROID_PLATFORM'] = 'android-17'
399+
opts['ANDROID_PLATFORM'] = 'android-19'
400400

401401
if opts['ANDROID_NDK'] is None:
402402
ndk = guess_android_tooldir('android-ndk')

docs/development/build-android.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Create a standalone toolchain (this simplifies setting up the build environment)
4242

4343
````bash
4444
android-ndk-r14/build/tools/make_standalone_toolchain.py \
45-
--arch arm --api 9 \
45+
--arch arm --api 19 \
4646
--install-dir ${HOME}/android/toolchain/standalone
4747
````
4848

@@ -85,7 +85,7 @@ AR="${BINDIR}/${TRIPLE}-ar"
8585

8686
# Android platform information
8787
ANDROID_NDK_VERSION=r14
88-
ANDROID_PLATFORM=android-17
88+
ANDROID_PLATFORM=android-19
8989
ANDROID_NDK=${TOOLCHAIN}/android-ndk-r14
9090
ANDROID_SDK=${TOOLCHAIN}/android-sdk-linux
9191
ANDROID_BUILD_TOOLS=25.0.2

engine/src/java/com/runrev/android/nativecontrol/ExtVideoView.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -806,4 +806,12 @@ public boolean canSeekBackward() {
806806
public boolean canSeekForward() {
807807
return mCanSeekForward;
808808
}
809+
810+
@Override
811+
public int getAudioSessionId() {
812+
if (mMediaPlayer != null) {
813+
return mMediaPlayer.getAudioSessionId();
814+
}
815+
return 0;
816+
}
809817
}

ide-support/revdeploylibraryandroid.livecodescript

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ function deployIsValidSDK pPath
192192

193193
// We need API 15 in order to be able to give the value 'screenSize' to the manifest variable configChanges
194194
// That was introduced in the API 13, but the SDK manager only have API 15 nowadays
195-
if there is no folder (pPath & slash & "platforms/android-15") then
195+
if there is no folder (pPath & slash & "platforms/android-19") then
196196
--return "could not find install of SDK level 8, make sure it has been installed with the Android SDK Manager"
197197
return false
198198
end if
@@ -326,7 +326,7 @@ function pathToRootClasses pRoot
326326
if pRoot is empty then
327327
put sAndroidRoot into pRoot
328328
end if
329-
return pRoot & slash & "platforms/android-15/android.jar"
329+
return pRoot & slash & "platforms/android-19/android.jar"
330330
end pathToRootClasses
331331

332332
function pathToSDKClasses pRoot

prebuilt/scripts/android.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Android options
22
ANDROID_NDK=${ANDROID_NDK:-"${HOME}/android/toolchain/android-ndk"}
3-
ANDROID_PLATFORM=${ANDROID_PLATFORM:-android-17}
3+
ANDROID_PLATFORM=${ANDROID_PLATFORM:-android-19}
44
55
# Has a full, custom toolchain been specified?
66
# AR, CC, CXX, LINK, OBJCOPY, RANLIB, STRIP

0 commit comments

Comments
 (0)