Questions tagged [android-9.0-pie]

Android 9.0 Pie (API level 28), formerly known as "Android P".

Android 9.0 Pie is the ninth major update and the 16th version of the Android operating system. It was first announced by Google on March 7, 2018. Android "P" was officially released on August 6, 2018 under the name "Pie". Android P harnesses the power of machine learning to make phone smarter, simpler, and tailored.

Summary of new features

You can find more info over here.

Android 9 features and APIs: official documentation

Behavior changes: official documentation

635 questions
0
votes
2 answers

API call in Android 9 configuration devices and emulator shows connection error

I am using Android 9 emulator, it has internet connection from system and I have added internet permission in manifest. When I try to call api it shows error message as : connection error.
Athira
  • 1,177
  • 3
  • 13
  • 35
0
votes
3 answers

How to know programmatically whether MobileData is enabled on Android P?

Is there a way to check programmatically whether MobileData is enabled on Android P? Before P, we can use getMobileDataEnabled() with reflection like this answer. https://stackoverflow.com/a/12864897/3752013 But after P, reflection methods throw…
user3752013
  • 189
  • 1
  • 8
0
votes
2 answers

Android oreo and above, whats the best way to get location when app is not running

Have been trying to use fused location, and location services in order to get a location in the background and when the app is not running. Unfortunately, everything worked fine until android 8 came. I have an app that needs to send the location to…
Udi Levy
  • 611
  • 1
  • 6
  • 7
0
votes
0 answers

NullPointerException when calling ImageView.getDrawable() in onDraw()

I have a custom ImageView and I am trying to use getDrawable() in the onDraw() method of the ImageView. Now this seems to be working fine for most devices and android versions, however I now started getting a NullPointerException on the Google Pixel…
0
votes
2 answers

Android view elements appear black (only on OnePlus 6 with Android Pie)

I'm working on an MVVM Android application. When I run the app on an OnePlus 6 with Android Pie all views appear in a sort of "dark theme". All the CardViews, Spinners and Dialogs through the app have a black background out of nowhere. I made a new…
476rick
  • 2,764
  • 4
  • 29
  • 49
0
votes
0 answers

Copy to clipboard not working in Android 9.0 (Pie)

I am using the following code to copy the text to clipboard in my app. ClipboardManager clipboardManager = (ClipboardManager) getApplicationContext().getSystemService(Context.CLIPBOARD_SERVICE); ClipData clipData = ClipData.newPlainText("ABC",…
Rahul Sharma
  • 2,867
  • 2
  • 27
  • 40
0
votes
0 answers

SupportFragmentManager Transaction with custom animation error

I have encountered an issue with custom animations on SupportFragmentManager Transaction when switching fragments. The code I'm using was working with the deprecated FragmentManager, but given that it is deprecated in Android P, I'm using the…
uan
  • 857
  • 7
  • 17
0
votes
1 answer

Add evernote library got Manifest merger failed com.android.support:support-compat:28.0.0

I use this library https://github.com/evernote/android-state My dependency as below dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" …
Elye
  • 53,639
  • 54
  • 212
  • 474
0
votes
1 answer

Foreground notification not displaying in notification bar

The new code for notification channel is working fine in older and latest device of oreo but when I tested in API 28(android P) device it didn't show the notification in notification bar, this is the line I've used for start the foreground…
Nicky
  • 885
  • 9
  • 21
0
votes
1 answer

Sinch Verification Fails for Android 9.0 OS

I am using Sinch Flash Call Verification SDK for android and it worked fine until I updated my OS to Android 9 on my Google Pixel Device. Now the verification is not happening. The following happens: On invoking verification API, I receive a flash…
CoderP
  • 1,361
  • 1
  • 13
  • 19
0
votes
1 answer

Button styling with 28.0.0-rc01

I have the following button:
0
votes
0 answers

Unable to create Files on enforced device

I have a system service that is creating a folder and some files under /data/vendor/ Since I have a rooted Android device in Enforcing state, the sepolicy is not permitting me to do this so I am using the dac_override capability in an allow rule -…
0
votes
1 answer

App can't find sqlite table for specific user

I'm having an odd issue of a user of my companies internal app not running an sqlite query. It crashes with the following error: android.database.sqlite.SQLiteException: no such column: intCol3 (code 1 SQLITE_ERROR): , while compiling: SELECT…
0
votes
1 answer

Android NotificationCompat.Builder addPerson example

I am looking for an example of the NotificationCompat.Builder's method addPerson. From the documentation I can see that I can either provide the contact's CONTENT_LOOKUP_URI or that the system can also resolve mailto: or tel: schemes. Given this,…
0
votes
0 answers

Does Android P broadcast incoming calls twice, or is it just me?

I have an app that checks the phone number of an incoming call against a blacklist. I have used the below code for several versions of Android to get the phone number of an incoming call, but when I test it against Android P, it behaves…
Bjarte Aune Olsen
  • 3,230
  • 4
  • 24
  • 36