Questions tagged [android-developer-api]

API for android developers to access various settings

This tag mainly used to separate android developers API related.

Such as user setting and other APIs

List of APIs and classes for android developers :

Related Tags :

439 questions
3
votes
3 answers

How to solve API Lint error in AOSP build?

I'm using AOSP source file.I have created new service in Android 9 & it was running. When I tried to reuse the same in Android 11, getting API Lint Error from auto generated file (out folder) 1. IHelloworldService.java:43: error: Methods calling…
3
votes
1 answer

Usage of requestPinAppWidget under some uncommon cases

Apps had been allowed to request to pin an app widget on the current launcher since API level 26. As developers, this gave us a chance to make such request in our own Apps. However, the document says "When a request is denied by the user, the…
3
votes
2 answers

Cannot Install ARCore on Android Emulator

I understand this question has been asked a few times, however the solutions for the other users have not resolved my issue. I am attempting to install ARCore on my Android Studio emulator. The Play Store says "Your device isn't compatible with…
3
votes
3 answers

Failed to find target with hash string 'android-P'

I'm following this tutorial page and i get the exact same error that they say in that page Failed to find target with hash string 'android-P' in: D:\Development\Android\Sdk Install missing platform(s) and sync project when i click install…
3
votes
1 answer

Setting up Google Pay to send users money

I want to set up my Android app to accept money from users Google Pay accounts and disperse money to Google Pay accounts all from the app. I have seen people mention that Google Pay returns a token, and I need to use a payment processor, however I…
3
votes
2 answers

Phone Selector API fails to get phone numbers

I need help in phone selector API (Eg. Tez/PhonePe/Bhim) . Referred this blog https://android-developers.googleblog.com/2017/10/effective-phone-number-verification.html. When am I trying to get phone numbers, which results empty dialog and disabled…
Sivakumar S
  • 81
  • 2
  • 5
3
votes
0 answers

Spotify Android SDK - Android Auth 1.0. How to build

I am new to Android programming. I am trying to integrate the Spotify SDK into an Android App. Following the Spotify Tutorial it says to download Spotify Android playback library zip and Spotify Android auth library zip from GitHub and unzip…
Gareth
  • 33
  • 7
3
votes
2 answers

Dashed input field in android for confirmation codes

I am trying to create a Dashed input field for numbers in android layout, such as " _ _ _ _ " where I can add 4 numbers and get them in my main activity. I have searched a lot but not getting any better solution.
Muhammad Usman
  • 795
  • 7
  • 19
3
votes
0 answers

Retrofit Android Developer not working with rest_framework in Python-Django

i'm having issues getting Retrofit 2.0 to send POST requests to Python-Django. Here's my Retrofit method. public void sendNetworkRequest(User user) { //Cria instância retrofit final Retrofit retrofit = new Retrofit.Builder() …
3
votes
1 answer

What Happens To A Service When Device Goes Into Sleep

Im Developing a Service for android marshmallow which intend to keep running for a long period of time. My questions are" What will happen to my service when the device goes into deep sleep? Is there any way to control what happens when the system…
3
votes
1 answer

Is there anyway to pick up the incoming call Automatically in Android?

I am developing a project in which I want to pick up the incoming call automatically after the certain interval, play an audio file and record the conversation for minute. As I have been Successful in implementing Callreciever Function in which I…
3
votes
1 answer

Bluetooth Connectivity Crashes when launched

When my app is launched every other feature works fine, but when tapping on the bluetooth button to turn on bluetooth, the app crashes and says that it has stopped. Sorry to be a pain and paste the entire bluetooth code. Its my first time using…
3
votes
1 answer

How to use Exoplayer to play an inputstream?

I use the following FrameWorkSampleSource Constructor to initialize SampleSource instance. File file = new File(path); FileInputStream inputStream = new FileInputStream(file); FileDescriptor fd = inputStream.getFD(); SampleSource sampleSource = new…
Aman Mahajan
  • 153
  • 1
  • 10
3
votes
2 answers

I tried using this Flag in setFlags from tutorial but its deprecated, what do i do

FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET is deprecated; so what should I use? private Intent createShareForecastIntent() { Intent shareIntent = new Intent(Intent.ACTION_SEND); shareIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET); …
3
votes
0 answers

How to view thumbnail of all types(jpg,png,bmp,etc.,) of attachment images in android chat application?

In android chat development while attaching files in chat messages (like attaching file in social chat apps) I can see only the thumbnail of png attached images only in chatting page. I cannot see other image format such as jpg,bitmap (thumbnails)…