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
2
votes
2 answers

Android API to Connect to Wifi Network

I'm totaly lost in the versions of WiFi APIs. I want to connect to a configured WiFi Network programmaticaly. As decribed in this question: Connect to wifi network Android programmatically I develop on Android 10 and want to write a code that is…
Hacki
  • 41
  • 2
  • 5
2
votes
1 answer

Is there a function in flutter that returns true when the status bar is visible?

I know you can hide status bar using this code:SystemChrome.setEnabledSystemUIOverlays([]) But when a notification pops up the status bar is visible again how to know if it's visible and hide it again?
2
votes
1 answer

Large icon never shows in MessagingStyle notification

For some reason the large icon does not show up in a MessagingStyle notification. The Android developer documentation does not make any exclusion regarding this behavior, the only requirement is for the MessageStyle to have the setGroupConversation…
Shadow
  • 4,168
  • 5
  • 41
  • 72
2
votes
1 answer

AbsSavedState$1 cannot be cast to android.widget.ScrollView$SavedState

I am using navigation components in my Android Project.I am using One Activity model and following this model I have 1 Base Activity and the rest are all Fragments. My problem comes on pressing the back button when i have to move to back to a…
2
votes
3 answers

How to truncate a TextView leaving certain number of characters at the end of the text view in Android Studio?

I have a TextView where I set a text ( for eg: Aaron Taylor Johnson [Participant] ). The TextView should truncate, where [Participants] should be present even after truncation.Something like this: Aaron Taylor Jo...[Participant] Aaron…
Ganesh S S
  • 571
  • 5
  • 10
2
votes
1 answer

tools:showIn="navigation_view" not working

When i append tools:showIn="navigation_view" to my code it's not showing. But in video which i watched from Youtube this is working fine. What is the problem? Also I can't add library called
maksnurgazy
  • 21
  • 1
  • 4
2
votes
2 answers

Text size in dropdown list of suggestions differs from its AutoCompleteTextView

I set a smaller text size than the default in my AutoCompleteTextView, expecting the dropdown list of suggestions to have identical text size and font. However, clearly it is different. The suggestions list text size stayed the same while the…
driftwood
  • 2,051
  • 4
  • 21
  • 28
2
votes
1 answer

Android Auto custom apps - Official

I want to create a Custom Android auto app without doing driver distraction. I went through a lot of blogs and sites and I saw that there used to be custom apps that were blocked since the version 3.0. The developers of those custom apps were using…
2
votes
2 answers

Alternative solution to handle com.android.vending.INSTALL_REFERRER for Android 8.0 (API level 26)

As part of the Android 8.0 (API level 26) Background Execution Limits, apps that target the API level 26 or higher can no longer register broadcast receivers for implicit broadcasts in their manifest. So what could be the alternative solutions for…
Krishna Sharma
  • 2,828
  • 1
  • 12
  • 23
2
votes
1 answer

AndroidPublisher library on asp.net gives error No application was found for the given package name

I am using Google.Apis.AndroidPublisher.v2 to get Inappproducts: list and inapp purchases details. I have created a new service account in my app console and using .p12 key as required. Here is my code: String serviceAccountEmail =…
2
votes
1 answer

Data-binding went stuck after Android Studio 3.1 Canary 6+ (updated 12.21.2018)

I have updated all in Canary 6 of AS 3.1, see here, including data-binding to v2. Now, something will stuck in wrong, that a lot standard "android:xxxx" cannot be bound, also some customized bind-adapters either. See here Cannot find the setter…
2
votes
2 answers

How to find an android instant app in google play store or on web?

I am searching for an instant app. Please suggest me an app which i can review to study regarding instant app also if possible please suggest a good tutorial as well. Thanks
2
votes
1 answer

Controlling "Usage & Diagnostics" in Android

Is there a way to control the automatic sending of diagnostics and usage data to Google in Android device. I could see the switch with "Usage & Diagnostics" in device settings, but need to control it via an application. Any API key exposed by…
2
votes
1 answer

Android Set Lock Screen Wallpaper

According to Android Developers I must have API > 24 to set the locked screen wallpaper and I only have 23. However, both the Photos and Pandora apps set my lock screen wallpaper Can anyone help me do one of the following? Set the lockscreen like…
SeaRoth
  • 177
  • 5
  • 17
2
votes
1 answer

How to use getCurrencyInstance and format in low api?

I am getting an error in the following code: private void displayPrice (int number) { TextView price = (TextView)findViewById(R.id.txt_price); price.setText(NumberFormat.getCurrencyInstance().format(number)); } The error I am getting is as…