Most voted "android" questions
Android is an operating system for mobile devices developed by Google and the Open Handset Alliance. Use this tag to reference questions related to programming for Android and be relevant only to this operating system. Use the [android-subject] tag instead of [subject] alone.
Learn more…8,935 questions
Sort by count of
-
1
votes0
answers112
viewsAudio stream
I am developing an application that has in one of the functions play a streaming from a radio, the problem is that it worked on 1 Moto G2, 1 Moto G3 and on my ASUS Zenfone 2 LASER, it just doesn’t…
-
1
votes1
answer112
viewsReplace in empty line
I have a variable with the following content: 10 20 30 40 50 60 70 80 90 100 There are spaces (can be 2 or more in a row) and line breaks (also several in the sequence), and I want to replace to…
-
1
votes2
answers97
viewsString to int conversion
my xml ` <android.support.design.widget.AppBarLayout android:id="@+id/appBarLayout" android:layout_width="match_parent" android:layout_height="wrap_content"…
-
1
votes1
answer90
viewsListview and Imagebutton selector does not work
Both the button and Listview do not change when clicked, but the settings when the item is not pressed work. Listview: <ListView android:id="@+id/listaListas" android:layout_width="wrap_content"…
-
1
votes1
answer321
viewsAndroid - Is it possible to play videos on a Webview?
I am developing a browser for android with java. It works fully through webviews. But the app is not able to play videos via stream... I wonder if it is possible to do it. Thank you. Webview in xml:…
-
1
votes1
answer292
viewsKeyboard does not override button in Relative Layout
Good morning, everyone. I have a problem in my application: I have a screen to register devices, as image below, however, when enabling a field for typing, the keyboard does not override the button:…
-
1
votes1
answer213
viewsThread calling method to query a web service always returns null
When I call this method to follow in another class it is returning null. However I have already performed the debug in the line "Return listNotes;" and it’s being filled normally. Method code:…
-
1
votes1
answer212
viewsFill in textview android studio/sql server
Good guys, can’t fill a textview using a sql server database. Can anyone help me? Here’s what I have on onCreate: connectionClass = new MainActivity(); text = (TextView)…
-
1
votes1
answer2475
viewsOpen external link inside the webview main page
I have an application loaded in 100% on WebView, i put the link where has the application and the entire application is via web in php. Only it has links that are not part of the page that are…
-
1
votes2
answers123
viewsAndorid - Open Activity only once
How do I have an Activity open only the first time the app starts?
-
1
votes1
answer11
viewsHow to use the AS operator with the Library Room?
I’m not getting the variable total, how do I do? @Query("SELECT SUM(item_valor) AS total FROM Itens WHERE total =>:data") Itens getMes(String data); The IDE warns syntax error in the full…
-
1
votes2
answers313
viewsStatus bar with three-color gradient in Android Studio
How to make a status bar with a 3-color gradient (as in the image).…
-
1
votes0
answers299
viewsHow to add a Menu in a single Fragment?
I have 3 Fragments and all of them in one Activity Mom. I want the following menu: <?xml version="1.0" encoding="utf-8"?> <menu…
-
1
votes2
answers64
viewsAndroid - Open Random Activity
Well, my question is this: is it possible to make a function call a Random Activity?
-
1
votes1
answer44
viewsLinphone build error in . /prepare.py
I downloaded the linphone project from git, installed all the necessary dependencies and set everything up right ( I believe ) but when executing the command ./prepare.py the same closes in the…
-
1
votes1
answer63
viewsAndroid - Share Preferences for another device
My question is the following: it is possible to share information saved by Sharedprefences to another device, either by bluetooth or another connection ? Mainactivity.java: SharedPreferences.EDITOR…
-
1
votes1
answer528
viewsHow to remove the title bar from the Visualstudio C# Xamarin android app
I’m having difficulty removing the title bar of the app I’m developing, I tried for android studio and failed miserably as well as in visual studio, as I’m not good in java opted for the look I have…
-
1
votes1
answer59
viewsNavigation between pages (Android)
using Android.App; using Android.Widget; using Android.OS; using System; namespace ValModas { [Activity(Label = "ValModas", MainLauncher = true)] public class MainActivity : Activity { protected…
-
1
votes1
answer355
viewsProblems starting an Application with React Native
I’m using the Deepin Linux operating system. I use the following commands: react-native init NomeDoProjeto cd NomeDoProjeto When executing the command: react-native run-android I have the following…
-
1
votes2
answers256
viewsWhat tools should I use to create an android app
I’m starting in mobile development that will be done in Java or Kotlin and my question is what tools I can use both in the design part and in the database which are the main technologies ?
-
1
votes0
answers24
viewsIs it possible to collect the amount of data spent in a period of time?
I’m making an Android application and I need to get the amount of data used by the person in a specific period of time, on Androids that use the level 21 (Lollipop) Apis up to the current one…
-
1
votes2
answers839
viewsHow do I get the Wi-Fi network name (SSID)?
I want to make an app that takes the information of the Wi-Fi connection, that the mobile is connected, being more specific I want to make an app that takes the name (SSID) of the Wi-Fi network in…
-
1
votes0
answers30
viewsPick up current cell phone position by Location
Guys I’m trying to make an app to track the phone (get the current position of the same), the problem is that I don’t know how to do. I need the phone to take its current position (longitude and…
-
1
votes1
answer364
viewsCast webview android studio
I’m making an app for my website, which is just a webview, can anyone tell me if it’s possible to put to broadcast on Smart TV? if yes, can you tell me where to take a study about? or even help me…
-
1
votes1
answer74
viewsShared preferences saving whole wrong
I am saving the user code (an integer) in Shared preferences: String a = Integer.toString(pUsuario.getCodigo()); SharedPreferences.Editor editor_Codigo = oCodigo.edit();…
-
1
votes1
answer73
viewsSave a Textview value and add another
I’m Creating a keyboard to add value to a Textview. I was able to add a value only to Textview. But what I wanted to do was keep the current value and add another to the side so that the user can…
-
1
votes1
answer777
viewsConnect Firebase to Postman
There is possibility to connect to firebase the Postman tool ? I need some program to make the connection and then perform "POST" inside the firebase. I need to register several products there that…
-
1
votes3
answers169
viewsHow do I identify the method or command in the code to display a data list in Navigationview?
I found this code on hithub about an embroidery viewer follows the project link, I tried to look in that app where is invoked method or command to display this data list follows screen prints to…
-
1
votes0
answers1251
viewsPost request with retrofit + android
I’m studying android, and I’m trying to use the retrofit library with android. After reading the documentation and seeing several examples in responses here at stackoverflow I was able to send data…
-
1
votes1
answer75
viewsshowing only part of the screen when the android keyboard is active
I have the following screen on android and would like that when the user clicked on one of editText, only the 3 fields (name, date of birth and phone) were shown at the top of the screen (above the…
-
1
votes0
answers44
viewsNotification by clicking the button
builder = new NotificationCompat.Builder(Objects.requireNonNull(getContext()),"M_CH_ID"); builder.setSmallIcon(R.drawable.icon_notificacao) .setContentTitle("RPfm 105.3") .setContentText("Ao Vivo")…
androidasked 6 years, 6 months ago Robson Cabral 33 -
1
votes1
answer209
viewsError Mysql and android connection
I’m developing an app that needs to have an external connection and I’m having a running problem, how could I fix this? Follows the code: import java.sql.DriverManager; import java.sql.SQLException;…
-
1
votes2
answers970
viewsHow to connect Virtual Android with Postgresql on Local Machine?
Good morning, I’m trying to make a connection to Android Virtual servant in the Eclipse ADT with JDBC do PostGreSQL 9.1. To my knowledge in Android it’s little I spent a lot of time trying to…
-
1
votes0
answers18
viewsAndroid - Textview displaying letters gradually
How do I make a Textview display the text gradually, showing letter by letter? I searched the internet and found some tutorials on Typewriter effect, but I could not use. main.xml: <TextView…
-
1
votes1
answer140
viewsHow to call in Fragment a component and its Activity properties?
I needed that when I entered the Fragment he executed this method Verifcar() in main Activity to check the condition and not show the RecyclerView. Mainactivity.Java public void Verificar(){…
-
1
votes0
answers70
viewsaddView(View, Layoutparams) is not supported in Adapterview when accessing "Home" activity
I am developing a shopping cart for Android using Firebase and I am having problems using Recycleview since the activity is crashing after user login, producing the following error. Log 05-24…
-
1
votes1
answer174
viewsFirebase shows data on one Activity and the other not
I am using firebase. To take a test and how to use it I did the whole procedure in a test Activity of my app. I saw that it worked, so I want to put it to the correct Activity. The codes of both are…
androidasked 8 years, 2 months ago Artur Mafezzoli Júnior 441 -
1
votes0
answers55
viewsHow can I fix this? Save category p back
Guys, I’m gonna try to express myself briefly. I’m venturing into a wallpaper app, but since I don’t have much experience, I can’t deal with this problem. On the download Adapter, set background and…
-
1
votes1
answer83
viewsAndroid - Run function with seconds delay
My question is: how do I get one function to run seconds after another? Mainactivity.class public void onClick(View p1){ //quero que essa função seja executada primeiro…
-
1
votes1
answer149
viewsUpdate on sqlite does not update data
Hello, someone could help me ,the update is not updating the data! Follow the button that calls the method: @Override public void onClick(View v) { Receita rec = new Receita(); String dosradio =…
-
1
votes1
answer84
viewsHow to know if it is a Fragment that is on the screen, in interface test?
I would like to know, in automated interface tests, how to know if a Fragment is on the screen or not. If it is a Fragment, example, ratingfragment, I will "perform" a "click". If it’s another one,…
-
1
votes1
answer85
viewsInjecting dependencies beyond Activity and Fragment?
It takes something special to inject a dependency with Dagger into an Android project other than Activity, Fragment, Service etc???? Example, if I have: Activityman -> Fragmentlistcake ->…
-
1
votes1
answer357
viewsDoubt in Send SMS + GPS coordinates
I’m trying to develop a app, where I need to get GPS coordinates from the location of the device to send them by SMS. What happens is that I intend that with a click on a button the logic make the…
-
1
votes3
answers5196
viewsHow to set up a timer in Android Studio to perform tasks at constant intervals?
I am developing a simple application with Android Studio and need to create a timer to run some methods every 1 second. I tried it this way but it didn’t work: int delay = 1000; int interval = 1000;…
-
1
votes1
answer40
viewsShow information on Activity androd studio
I’m making a screen "Notification" in the application android, but will only show the database information without notifying user. However the information is not showing on the screen, is giving…
-
1
votes1
answer77
viewsHow to return to Activity and execute a method?
have the Activity Profile.class and it displays my photos, when clicking on it, opens a fragmentDialog displaying the photo in slideshow... but when deleting the photo, need q back to my profile and…
-
1
votes0
answers49
viewsExample of Navigation Drawer
How do I add a Navigation Drawer to a Activity? I searched several sites but only found the projects to download and not the explanation of how to do it.
-
1
votes1
answer205
viewsAndroid error - Must specify preferenceTheme in Theme
I created a layout (preferences.xml) in the res/xml directory based on Preferencescreen. I implemented a class derived from Preferencesfragmentcompat public class PrefsFragment extends…
-
1
votes1
answer134
viewsError in the Arrayadapter
Does anyone know why you are giving this problem ? After I changed the name of Googleapiclient it gives this error =/ private GoogleApiClient client; @Override protected void onCreate(Bundle…
androidasked 8 years, 1 month ago Artur Mafezzoli Júnior 441 -
1
votes0
answers32
viewsAdaptation in notifications
Based on some answers found on this site I adapted a code to arrive notifications in a certain time if someone can finalize this code and help me activate the notifications Screen where I should…