Tag: android

56 votes
12 answers
2.5K views
Failed to resolve: com.google.firebase:firebase-core:9.0.0

I get the following error while upgrading a firebase project from old domain to new google firebase domain.

avatar
Joseph
0 1 0 9
asked 07 September, 2021
51 votes
27 answers
2.9K views
Firebase onMessageReceived not called when app in background

I'm working with Firebase and testing sending notifications to my app from my server while the app is in

avatar
Fabian
0 1 0 9
asked 07 September, 2021
63 votes
21 answers
542 views
API 'variant.getExternalNativeBuildTasks()' is obsolete and has been replaced with 'variant.getExternalNativeBuildProviders()

Using Android Studio 3.3 Canary 11 with the gradle plugin version 3.3.0-alpha11. It throws the following error

avatar
Santiago
0 1 0 9
asked 07 September, 2021
60 votes
28 answers
2.5K views
How to handle notification when app in background in Firebase

Here is my manifest: <service android:name=".fcm.PshycoFirebaseMessagingServices"> <intent-filter

avatar
Emilia
0 1 0 9
asked 07 September, 2021
62 votes
21 answers
1K views
Android: remove left margin from actionbar&apos;s custom layout

I am using a custom actionbar view, and as you can see in the screenshot below, there is a blank gray space in

avatar
Dwain
0 1 0 9
asked 07 September, 2021
49 votes
16 answers
899 views
frequent issues arising in android view, Error parsing XML: unbound prefix

I have frequent problem in android view, Error parsing XML: unbound prefix on Line 2. <?xml version="1.0"

avatar
Eddie
0 1 0 9
asked 07 September, 2021
59 votes
30 answers
373 views
Manifest Merger failed with multiple errors in Android Studio

So, I am a beginner into Android and Java. I just began learning. While I was experimenting with Intent today,

avatar
Dario
0 1 0 9
asked 07 September, 2021
56 votes
7 answers
599 views
Android Replace "..." with ellipsis character

Since AVD tools 16 I'm getting this warning: Replace "..." with ellipsis character (..., &#8230;) ?

avatar
Thurman
0 1 0 9
asked 07 September, 2021
57 votes
14 answers
707 views
Android XML Percent Symbol

I have an array of strings in which the % symbol is used. Proper format for using the % is &#37;. When I h

avatar
Margo
0 1 0 9
asked 07 September, 2021
53 votes
15 answers
2.8K views
How to view AndroidManifest.xml from APK file?

Is it possible to view Androidmanifest.xml file? I just changed the extension of the apk file to zip. This zi

avatar
Yolando
0 1 0 9
asked 07 September, 2021
53 votes
21 answers
1.3K views
Center a button in a Linear layout

I am using a linear layout to display a pretty light initial screen. It has 1 button that is supposed to cent

avatar
Basil
0 1 0 9
asked 07 September, 2021
58 votes
6 answers
1.6K views
What to use instead of "addPreferencesFromResource" in a PreferenceActivity?

I just noticed the fact that the method addPreferencesFromResource(int preferencesResId) is marked deprecated

avatar
Fabian
0 1 0 9
asked 07 September, 2021
59 votes
12 answers
1.2K views
Web colors in an Android color XML resource file

What do all of the X11/w3c color codes look like in the format of an Android XML resource file? I know thi

avatar
Arline
0 1 0 9
asked 07 September, 2021
62 votes
19 answers
1.2K views
How to handle button clicks using the XML onClick within Fragments

Pre-Honeycomb (Android 3), each Activity was registered to handle button clicks via the onClick tag in a Layo

avatar
Virgil
0 1 0 9
asked 07 September, 2021
62 votes
6 answers
653 views
Declaring a custom android UI element using XML

How do I declare an Android UI element using XML?

avatar
Trudy
0 1 0 9
asked 07 September, 2021
54 votes
20 answers
1.8K views
How to make layout with rounded corners..?

How can I make a layout with rounded corners? I want to apply rounded corners to my LinearLayout.

avatar
Trudy
0 1 0 9
asked 07 September, 2021
54 votes
20 answers
634 views
Can the Android layout folder contain subfolders?

Right now, I'm storing every XML layout file inside the 'res/layout' folder, so it is feasible

avatar
Rudolf
0 1 0 9
asked 07 September, 2021
48 votes
18 answers
1.3K views
How do I align views at the bottom of the screen?

Here's my layout code; <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http

avatar
Rudolf
0 1 0 9
asked 07 September, 2021
58 votes
9 answers
1.8K views
What&apos;s "tools:context" in Android layout files?

Starting with a recent new version of ADT, I've noticed this new attribute on the layout XML files, for e

avatar
Chaya
0 1 0 9
asked 07 September, 2021
63 votes
4 answers
2.7K views
Can I program for android using any JVM language?

Can I use other JVM languages besides Java (e.g. jruby, jython, clojure) to program for android, or is it java

avatar
Bryant
0 1 0 9
asked 07 September, 2021