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 auto scroll up the chat messages (using recyclerview instead of listview) above the softkeypad whenever keypad pop ups?

Like in chat applications whenever we want to send messages soft keypad pop ups which also auto scroll the last seen messages to top of the soft keypad provided that nothing is hidden behind the soft keypad. But in my case the keypad hides the…
3
votes
1 answer

Android MediaPlayer is paused, volume buttons do not control multimedia

I played a sample music (.mp3) using a sample code I found on the Internet. The code is something like MediaPlayer mp = new ... mp.setDataSource(... mp.setAudioStreamType(... mp.prepare(); mp.start(); The problem is that when the music is paused,…
Damn Vegetables
  • 11,484
  • 13
  • 80
  • 135
2
votes
1 answer

Unresolved reference: hiltViewModel

this is my code where i passed it as a parameter Unresolved reference: hiltViewModel this is flagging my file with red and therefore I can't compile my solution into my device also i have visited…
2
votes
0 answers

Google pay library to scan debit/credit card details like card number, expiry date and CVV, facing an issue on Production its working on QA

I have implemented the google pay library to scan debit/credit card details, its working fine in the QA environment but when I try to test it on production I am facing a…
2
votes
0 answers

How to check which offer a user is currently subscribed to in Play billing library v5.0 - Android

Currently, billingClient.queryPurchasesAsync returns a list of purchases which only has data like productId, purchaseToken, purchaseTime, etc. But I have a scenario where my app has 1 monthly base plan and 2 offers underneath it- offer1 and offer2.…
2
votes
1 answer

What's difference between Stackless and stackfull coroutines in Kotlin(Android)?

After reading some articles I figure out Stackless means that the coroutines don’t have their own stack, so they don’t map on the native thread *. so the first point is how it differs from stackfull and in kotlin, if the coroutine helps us to…
Shirsh Shukla
  • 5,491
  • 3
  • 31
  • 44
2
votes
1 answer

Play Store: App has been removed for violating Location permission policy

Our app has been removed from the play store due to the violation of the location permission policy. According to their rejection mail, we have been using the user's background location but actually, in our app, we only use the user's location only…
2
votes
2 answers

Display an image using Glide in Android. Can't see anything

I'm trying to display an image using Glide in my ImageView to no avail. I don't get any errors, but I don't see any image either build.gradle dependencies: implementation 'com.github.bumptech.glide:glide:4.12.0' annotationProcessor…
Captai-N
  • 1,124
  • 3
  • 15
  • 26
2
votes
2 answers

Displaying "Happy birthday null" in the second activity of my app

Main Activity `public class MainActivity extends AppCompatActivity { private Object Context; public static final String MSG="com.mp.exampleapp.ORDER"; @Override protected void onCreate(Bundle savedInstanceState) { …
2
votes
1 answer

Android turn On/Off Mobile HotSpot programmatically

I've seen many people ask the question already. But unfortunately, my knowledge of programming is limited only to writing PowerShell scripts :) and I cannot figure out the code. Perhaps someone will throw java and xml code, applications. Which can…
Den
  • 21
  • 2
2
votes
0 answers

How to Make A Simple Compass qiblah App In Flutter

this is my code to qibla deriction i add cordination qibla but the donst work and i add deriction to the compass but its move a lot and dont give the right direction.its been a month and i didnt found the solution for this…
2
votes
0 answers

how to determine the user if he re subscribed to expired subscription from google play store subscriptions

I have an android app that has subscriptions, the problem is user can directly re subscribe to expired subscription from the play store instead of the app. so i can't have the user details in the backend when this happens. also tried disabling the…
2
votes
2 answers

How to Check other apps are using accessibility (BIND_ACCESSIBILITY_SERVICE) permission or not in Android

how to check is there any app using accessibility permission(BIND_ACCESSIBILITY_SERVICE), or the name of applications which requested for the same along with its granted or not to them ? To detect that below apps are using accessibility…
2
votes
1 answer

Code for sending ArrayAdapter to another activity?

As we can send String type to another activity like this public static final String EXTRA_MESSAGE = "com.example.android.twoactivities.extra.MESSAGE"; what should be the code for this private static final ArrayAdapter…
2
votes
1 answer

Google Sign In throws an exception com.google.android.gms.common.api.ApiException: 12500

I have a simple application written in Android, where I want to do Google Sign and then Firebase Authentication. I copy paste the code from official page. val gso = GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN) …