android

how can I use annotationProcessor in android.mk

北城以北 提交于 2021-02-18 22:37:51
问题 I just want to use bufferknife and drag2 in my system app, I have built my app with the command mm . I have tried every possible method I could find, but failed! I've only found the below Android.mk by Googling: # Copyright (C) 2015 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a c opy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # #

fcm push notification not working in one plus 6 mobile

十年热恋 提交于 2021-02-18 22:35:34
问题 FCM push notification is working in following devices properly when the device is in the background, foreground and also when an app is close by swiping from a tray. Brandname (android-Version) Micromax (5.1) Motorola (7.1.1) Nokia (8.1.0) Samsung (8.0.0) Nexus (8.1.0) xiaomi (7.1.2) But in case of oneplus, fcm notification is not working when an app is closed by swiping from a tray, but work properly when an app is in foreground and background. Device Version OnePlus 8.1.0 But when I

Koin Android: org.koin.error.NoBeanDefFoundException

南笙酒味 提交于 2021-02-18 22:35:08
问题 Got that message error java.lang.RuntimeException: Unable to create application com.app.name.application.MainApplication: org.koin.error.BeanInstanceCreationException: Can't create bean Bean[class=com.app.name.general.preferences.Preferences] due to error : org.koin.error.NoBeanDefFoundException: No definition found to resolve type 'android.app.Application'. Check your module definition at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5830) at android.app.ActivityThread

Xamarin.Android JmDNS binding issues

。_饼干妹妹 提交于 2021-02-18 22:31:27
问题 I started work on a JmDNS bindings for Xamarin.Android. I managed to get the binding to build but I can not reference it from within my code. https://github.com/ytn3rd/monodroid-bindings/tree/master/JmDNS First issue I had was there was no IDNSListener class to reference. So I added a partial interface in there for it. I have the function it needs void updateRecord(DNSCache dnsCache, long now, DNSEntry record); commented out as it would complain on not being able to reference DNSCache or

Different corner radius values for a MaterialCardView

£可爱£侵袭症+ 提交于 2021-02-18 22:27:08
问题 Is is possible to have different values for each corner radius of a MaterialCardView? And if so how? I tried something like the code below but it doesn't seem to have any effect float radius = getContext().getResources().getDimension(R.dimen.default_corner_radius); ShapePathModel leftShapePathModel = new ShapePathModel(); leftShapePathModel.setTopLeftCorner(new RoundedCornerTreatment(radius)); leftShapePathModel.setTopRightCorner(new RoundedCornerTreatment(radius)); MaterialShapeDrawable bg =

Android - accessing files in native C/C++ code with Google Scoped Storage API

拟墨画扇 提交于 2021-02-18 22:26:33
问题 I need to open files by file name in Android apps within native C/C++ code. The native code are 3rd party libraries that I would prefer not to modify, but they often require file name as an argument to read/write files. With the Google's "scoped storage" API and disabling native access to files in Android 10 or later, it's a real problem. One well known solution is to get a file descriptor and use "proc/self/fd/FD_NUMER" trick, like: ParcelFileDescriptor mParcelFileDescriptor = null; String

Difference b/w Settings.Global ,Settings.System and Settings.Secure in android

纵然是瞬间 提交于 2021-02-18 22:17:58
问题 There are 3 inner classes in android.provider.Settings : Global System Secure Each class has a different type of Preference. Can someone explain the role/scope of each of these classes? 回答1: From the Android developer docs: Settings.System : System settings, containing miscellaneous system preferences. This table holds simple name/value pairs. There are convenience functions for accessing individual settings entries. Settings.Secure : Secure system settings, containing system preferences that

Difference b/w Settings.Global ,Settings.System and Settings.Secure in android

与世无争的帅哥 提交于 2021-02-18 22:17:29
问题 There are 3 inner classes in android.provider.Settings : Global System Secure Each class has a different type of Preference. Can someone explain the role/scope of each of these classes? 回答1: From the Android developer docs: Settings.System : System settings, containing miscellaneous system preferences. This table holds simple name/value pairs. There are convenience functions for accessing individual settings entries. Settings.Secure : Secure system settings, containing system preferences that

Why do Kotlin files appear as .java is Fabric Crashlytics with Proguard enabled?

淺唱寂寞╮ 提交于 2021-02-18 22:09:17
问题 I have recently turned on Proguard minimisation for an Android app which uses Crashylics reporting on the Fabric console. The project is written mainly in Kotlin. Crash reports are still received. The stack trace no longer lists Kotlin source files as .kt though, but as .java eg, MyFragment.java:20 instead of MyFragment.kt:20 From the information in the traces, such as function and variable names, the line numbers in the stack match up to those in the .kt file I have Proguard exclusions as

Why do Kotlin files appear as .java is Fabric Crashlytics with Proguard enabled?

流过昼夜 提交于 2021-02-18 22:07:44
问题 I have recently turned on Proguard minimisation for an Android app which uses Crashylics reporting on the Fabric console. The project is written mainly in Kotlin. Crash reports are still received. The stack trace no longer lists Kotlin source files as .kt though, but as .java eg, MyFragment.java:20 instead of MyFragment.kt:20 From the information in the traces, such as function and variable names, the line numbers in the stack match up to those in the .kt file I have Proguard exclusions as