in my app I use 3 broadcast receivers for the following broadcasts:
android.net.wifi.STATE_CHANGE
android.intent.action.ACTION_POWER_CONNECTED
android.intent.action.USER_PRESENT
Now, before Android ...

My application is a web app that can be added to the home screen (by using Google Chrome, for instance).
However, I would like to use Adaptive Icons, which Android Oreo introduced. Currently, my icon ...

I want to create a broadcast receiver which has an intent filter with action PHONE_STATE, i.e, whenever a call is received, I want it to be executed. But I'm not able to receive intents for devices ...

I am planning to target my Android App to Oreo but the documentation mentions that implicit broadcasts are no longer allowed to be declared in Android Manifest. Few exception have been stated here.
I ...

I am developing an application for a business entity. That application should run in the background in every employees' mobile phone. Employees are mostly salesman. The application basically detects ...

I have used the following code to get the network location .
With this code I'm getting the location in android 7.0 and below .
but above android 8.0 and above its telling to turn on the GPS
Is there ...

My code is working fine till Marshmallow. I give it's all Run Time permission but in Oreo Version App Crash, when I select a .pdf file from Download folder. I try to solve this issue but not getting a ...

I currently see a very strange nullpointer-exception that I can not explain myself.
I have an Activity which hosts two fragments.
The context-menu is evaluated in the host-activity and then calls a ...

Want to run a service in back ground when SMS or call received then background service call the flash on and off. Application works on marshmallow and low version. But not work on Oreo 8.0 and Pie 9....

I am trying to set a color for my notification in android Pie, but having followed the info on Android Developers, I can't seem to get it to work, i.e. the notification stays white. Here is my code:
...

I have an app that needs to run always in the background and listen for server changes. When I target API below Oreo, I am able to run service in the background. But now I'm targeting the API version ...

After I updated the targetSdkVersion to 26 Widgets in my application stopped responding to clicks events.
I didn't find any solution on the web. it seems that only if we call PendingIntent.getActivity(...

As seen in the image below, the second shortcuts the one with the letter T red.
How can I generate such an icon to be able to put it in the shortcuts in the icon attribute?
By setting up:
the color ...

I have an application (call it A) that runs a service that mocks the location obtained from a bluetooth GPS in order to use it in another application (call it B):
A (with service that gets bluetooth ...

Since Android 8 notification channels required for notifications. Sounds can be set for each notification channel . But let's say I want set different sounds for notifications?( 3 sounds for 3 alarms) ...

I want to start a Notification Service with an AlarmManager. However, it doesn't alyways work, when swiped the app in the recent tasks layer. I have also tried out JobIntentService and JobService with ...

I am using DownloadManager to download pdf file in my application. In devices with OS version of Oreo and above, the file is queued for download and keeps on downloading. But after some time nothing ...

I want to build an Android App with the support of Android Pie OS with respect to previous OS versions. I have googled about it but I could not find any proper post which describes the changes to be ...

I am trying to play livestreaming .ogg audio through media player in my app on receiving a notification. My device has Oreo.The problem is, when ever I am recieving the notification, while trying to ...