CL [1] instroduced min_sdk_version due to createDisplayContext
needed sdk version 19+.
If we are using pre-release SDK version but the device didn't match
this platform and won't set target_sdk_version, it will result in
INSTALL_FAILED_OLDER_SDK error during install apk.
To make apk installable in older sdk devices & without hitting
pre-release SDK version case, specify target_sdk_version value to keep
its comparability.
[1]: Ic592a1d2fb2da149220c8b503b522b3e864bcc77
Fix: 137200759
Bug: 126930163
Test: manual as below test steps:
1. Check out the latest master.
2. source build/envsetup.sh
3. lunch aosp_walleye-userdebug
4. make -j SoftKeyboard (or tapas SoftKeyboard)
5. Using "adb install -r $OUT/system/app/SoftKeyboard/SoftKeyboard.apk"
to install app in older platform rom build (i.e. android P or N)
6. Make sure .apk file can installed without INSTALL_FAILED_OLDER_SDK error.
Change-Id: I5da196b5a1b257ec6d5b9e6f447a4734928f4580
To address IME service context's Resources / DisplayMetrics update
when switching IME window to another display after onConfigurationChange.
We use Context#createDisplayContext to create display specific context when
display changed, to ensure soft keyboard can re-layout with correct resources.
Bug: 126930163
Test: manual with SoftKeyboard as below steps:
1) Settings > Developer options > enable "Simulated Display" & "Force desktop mode".
2) Reboot device
3) Launch app (i.e. Contacts) with bluetooth or usb mouse in Simulated display.
4) Tap EditText on app to see see if IME window layout correctly on simulated display.
5) Launch app (i.e Files) on primary display.
6) Tap EditText on app to see if IME window layout correctly on primary display.
Change-Id: Ic592a1d2fb2da149220c8b503b522b3e864bcc77
Some sample apps on emulator are placed on /data
partition and are not pre-dexopted.
Enable them to make the emulator system image a
little faster, especially for arm.
bug: 28312444
This should only impact SDK system images, not
real devices.
Change-Id: Icdb34512a3a6d95b4d6ffd2415835c6ba8c77fcc
Add LOCAL_DEX_PREOPT := false to force the samples to build actual apks.
In addition, fix a couple of other small issues:
- TtsEngine didn't have the api level set properly.
- SimpleJNI used a non-ndk library and was using libc++.
Change-Id: I1fd7c187956eed4620049bb746f4d62babcd648a
This CL demonstrates how the new language switching functionality
should work by using the SoftKeyboard sample.
BUG: 15267645
Change-Id: I18ab25a0784979fe6028b97a22ff02bfd502d506
Add new web pages for sample apps included in the SDK.
Revise the existing sample app web pages.
Delete screenshots for notepad and lunar lander (these have
moved into frameworks/base/docs/html/guide/samples/image/.