android-4.4-kitkat

Is MediaStore.MediaColumns#DATE_TAKEN only available from API level 29?

好久不见. 提交于 2021-02-10 04:56:16
问题 I am trying to use MediaStore.Images.Media.DATE_TAKEN and getting warning from Android Studio IDE that it requires API 29 (Android Q). The official Google documentation here says this was Added in API level 29. Is this really true? I've checked the Google Sources from past releases all the way back until API 19 (KitKat) and I saw MediaStore.MediaColumns#DATE_TAKEN field being available since then. Why is the official documentation saying something different? Android 4.4 (KitKat) MediaStore

How to disable method inlining in proguard?

ⅰ亾dé卋堺 提交于 2021-01-29 10:08:31
问题 My app is crashing with this error on Android 4.4 only Fatal Exception: nTa: java.lang.IllegalAccessError: tried to access class dUa$a[] from class patient.healofy.vivoiz.com.healofy.userprofile.contactsync.ContactSyncManager at io.reactivex.plugins.RxJavaPlugins.onError + 367(RxJavaPlugins.java:367) at io.reactivex.internal.schedulers.ScheduledRunnable.run + 69(ScheduledRunnable.java:69) at io.reactivex.internal.schedulers.ScheduledRunnable.call + 57(ScheduledRunnable.java:57) at java.util

why notifications are collapsed in kitkat

时光毁灭记忆、已成空白 提交于 2021-01-29 06:05:27
问题 I was building a custom notification using the notification builder provide by android and am trying to use a custom notification. The following is the code used: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); RemoteViews remoteViews = new RemoteViews(getPackageName(),R.layout.resource_file); createNotificationChannel(); NotificationCompat.Builder builder = new NotificationCompat.Builder(this, CHANNEL

Printing PDF directly using PrintManager Android 4.4

放肆的年华 提交于 2020-08-04 15:27:08
问题 http://developer.android.com/training/printing/index.html documentation tells how to print a custom content by rendering it on a PDF canvas and sending thus created PDF document for printing. But has no information about if we already have a PDF document, how to send it for printing? Does similar to bitmap printing, there is some method like printHelper.printPDF? 回答1: Use the following code fragment in your onWrite() method should do it: InputStream input = null; OutputStream output = null;

Sticky immersive mode disabled after soft keyboard shown

淺唱寂寞╮ 提交于 2020-06-24 03:08:30
问题 I have an app that needs to be full screen most of the time. I know that if an alert is shown or other window is displayed, over the top of the activity window, full screen is temporarily removed. Unfortunately, when a soft keyboard is shown for an EditText or something, when the user has finished with the keyboard, full screen immersive mode is not restored. Any idea how this can be achieved? 回答1: Taken from this sample app by Google, you need to append this to the end of your activity,