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
1 answer

Xamarin Android 9.0 GetImei error Java.Lang.SecurityException: getImeiForSlot android.permission.READ_PHONE_STATE

I try to get my unique ID IMEI for Android 9.0 API LVL 28 When i tried with my code i have this error : Java.Lang.SecurityException: getImeiForSlot: Neither user 10154 nor current process has android.permission.READ_PHONE_STATE. public…
Deos
  • 55
  • 2
  • 9
0
votes
2 answers

Where to set [Application(UsesCleartextTraffic = true)] in xamarin android

I have tried to put it above the MainActivity and(i know that) it doesnt fit there; build error:"The GenerateJavaStub task failed", But I dont know how to do it [Activity(Label = "@string/app_name", Theme = "@style/AppTheme", MainLauncher =…
0
votes
0 answers

Why can't I delete files in Android 9 using FileProvider?

I am trying to delete files in Android 9 programmatically with the following code. This code works well in Android 7 & Android 8 but it doesn't in Android 9. Delete code public void deleteFile(String filePath) { Log.v("File Path", filePath); …
0
votes
0 answers

getDeclaredMethod not working in android 9(PIE)

public RefStaticMethod(Class cls, Field field) { try { if (field.isAnnotationPresent(MethodParams.class)) { Class[] types = field.getAnnotation(MethodParams.class).value(); for (int i = 0;…
0
votes
0 answers

Failed to get type for: content://

In Nougat and Pie, this function is not working. I have used below function to get realpath form content uri for .mp3 files. Please check below link: Get Real File Path From Android Uri Error log: *2019-07-01 14:39:33.965 9971-10277/com.mp3musicapp…
0
votes
1 answer

How to uninstall apps in android programmatically with PackageInstaller

I have created a simple android uninstaller app that helps to remove multiple apps at once. I use this code to accomplish this task: Uri uri = Uri.fromParts("package", app.getPackageName(), null); Intent intent = new…
Toni Joe
  • 7,715
  • 12
  • 50
  • 69
0
votes
1 answer

While Using Picasso To Show Bitmap Image In Notification I Am Getting "Failed to create image decoder with message 'unimplemented' " error

I am Using Picasso To get Bitmap for Show Big Picture Style Notification Using Firebase. Image Link is "https://images.pexels.com/photos/274886/pexels-photo-274886.jpeg" which I'm Using for testing purpose. Picasso is unable to create Image Decoder…
Daksh Semwal
  • 99
  • 2
  • 11
0
votes
0 answers

application extending class's onCreate is not called on android 9

I have an Application class, but the OnCreate method is not called on my Samsung S9 after i updated it to android 9 (Pie). All lower android versions work fine. even on my emulator with api 28 they work fine. here's my onCreate() method…
0
votes
3 answers

PeriodicWorkRequest is not initiating by WorkManager on realtime devices except emulator

I am enqueuing a PeriodicWorkRequest through WorkManager, the code mentioned below is working on device having Android OS Nougat also on emulators of Android OS versions 8.1, 9 & 10 but not on OnePlus (Android 9), Redmi 5 (Android 8.1) & Google…
0
votes
1 answer

How to debug what part of my app is causing it to force close (backward compatibility problem)

This is my first venture into writing any kind of code, let alone an android app. I created the project with the compileSdkVersion of 28, targetSdkVersion of 28 and minSdkVersion of 23. The app will only run on Android Pie and crashes on any…
0
votes
1 answer

first activity's onPause not called when start two activity continuously and the second activity with translucent theme

Just as the title described, when I start two activity continuously, and the second activity has a theme that windowIsTranslucent is true。 I found that the first activity's onPause was not called, it means that all of this activities were under…
0
votes
1 answer

How to get Cell ID and Location Area code in android 9 ( Pie ) devices without using GPS?

I tried getAllCellInfo(), getCellLocation() and getNeighboringCellInfo() to get Cell ID and Location Area Code. I got the values(Cell ID and Location Area Code) when the GPS is turned into ON state and Without GPS these methods return null So what i…
0
votes
1 answer

How to build the AOSP to get jar file?

I am new to the Android platform. I need to develop a system application so I need to access some @SytemApi annotated classed and some internal class in my Android system application. After browsing for some time I found to write such application I…
Prabhakaran
  • 1,264
  • 2
  • 20
  • 47
0
votes
1 answer

not connecting to wifi if Mobile data is switched on OS 9

I am working on an App where I need to connect to IOT Device and this IOT device make a hotspot for communication. I am facing an issue in Android 9(Pie) that if mobile data is on then request send to Mobile data instead of the Wifi and it is…
0
votes
1 answer

Adobe Air application: no popup after requestPermission() on Android 9

On Android 9, the requestPermission() method does not make appear the popup where user can grant or deny access to storage As you probably know, since Android 6 it is necessary to do explicit request for permission to use Storage, Camera and others.…
garda86
  • 11
  • 1