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
-
0
votes0
answers69
viewsProblem with API authentication in android studio
I’m having trouble authenticating an UBER clone running on Android Studio. The API runs in the main class: package com.uber.sdk.rides.samples.cmdline; import…
-
0
votes1
answer143
viewsAdd navigation-Drawer layout to a project with activitys already created
I created an androod project with all Kotlin, but without the navdrawer layout, now I need to put the navdrawer and include the Activity I have in it If anyone knows how to fit the Acesvity into…
-
0
votes1
answer208
viewsHow to change GPS location icon in Android Studio?
I wanted to know how to change that red icon that marks the location of the GPS to place a picture located on the drawable. I just wanted to know what code I should add to get the suggested result.…
-
0
votes0
answers220
viewsjava.lang.Runtimeexception: Unable to start Activity Componentinfo{}: java.lang.Nullpointerexception by checking my input
I’m new to android development and am passing a swing chat for android. The idea is to use a server socket that makes the connection. This is the third attempt to make it work... I received the…
-
0
votes1
answer144
viewsInsert data into the database by Alertdialog
Good evening, I created a Alertdialog that asks the name of the player and puts in editText... when the user clicks to confirm it saved in the database... I made the code and it seems that I am not…
-
0
votes1
answer730
viewsRecover firebase ID on a Listview
I’m trying to recover the firebase id on my android project. I’m starting firebase now and don’t know much. It’s kind of different from Parde where he already shows me the ID. Does anyone know how…
-
0
votes1
answer148
viewsProblem when showing Alertdialog
I have an error message when trying to show Alertdialog using Android Studio. protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);…
-
0
votes2
answers709
viewsHow do I place the image next to the listview items?
I have the following code for listview: ListView listview = (ListView) findViewById(R.id.listview1); String[] dados = new String[] { "Produção Geral", "Perdas", "Contagem Por Máquina", "OEE",…
-
0
votes1
answer62
viewsList returning null values
I am doing an item listing, in this listing I bring the following information id, idPostagem, description, nounUsuario and photoUsuario. Soon after setting the values, I checked them and I am all…
-
0
votes1
answer37
viewsLayout, Cardview and Recyclerview
Good morning, I am beginner in android development, I’m doubtful, I would like a suggestion. I’m making an application similar to Trello, but I don’t know what to use. I will have several lists that…
androidasked 6 years ago Italo Rocha 23 -
0
votes1
answer126
viewsAccess variable inside Inner class
I’m new in android/java programming and then I came up with this error. public class Activity_2 extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) {…
-
0
votes1
answer194
viewsHow to create a cardview with "slide" (similar to Nubank)?
I’m trying to make a layout similar to cardview of the main screen of the nubank, however, I am not able to find reference to base myself. What I’m having trouble finding, is how to leave the…
-
0
votes1
answer481
viewsHow to keep the App always logged in with Firebase
How to get my App to log in after waxing? Ex: I logged in once and every time I start the application again it already starts logged in.
-
0
votes1
answer108
viewsApp wiping data from main page, while switching to secondary pages (IONIC 3)
I have the page 'Orders' as main, where it has button to select the customer, and select the products. When I click 'select client' method selectClient(), send to page 'select-client', where is a…
-
0
votes3
answers345
viewsGet external IP in Java - Android Studio
I want to get my external IP by clicking a button in my app, but every time I click the button, the app closes itself. How can I do that? My code: public void onClickBtnAtualizar(View view) throws…
-
0
votes2
answers40
viewsHow to avoid layout destroyer in Tabbed Layout when changed tab?
I am making a system with tabbed layout and with Recycler view, in the first tab are the products, I click on a place the quantity and it marks the product. When I go to the third tab, the marking…
-
0
votes3
answers113
viewsproblems in passing data to new Activity
I’m having difficulty when I pass a dice using the put. Extras. My app is crashing and I can’t identify the reason. He is unable to pass the data from one Activity to another. Activity that sends…
-
0
votes2
answers53
viewsHow to Select a Query
I’m having doubts about how to make a SELECT in my database. Here are the classes I use: DBHELPER public class DBHelper extends SQLiteOpenHelper { private static String NAME = "sqlitejuh.db";…
-
0
votes0
answers99
viewsNotifications on Android stop after downtime in the app
We use both notifications from Onesignal as in the Firebase to notify our app service providers of new requests to be met in real time. We noticed that it even happens that the app running with a…
android push-notification onesignal firebase-cloud-messagingasked 6 years ago Mateus Carvalho 1,494 -
0
votes0
answers43
viewsEdit a Spinner recorded in the Bank!
I am trying to edit some information of a product registered in the database, but the problem is the following: all the information in "String" I can manipulate well, I only have one information…
-
0
votes2
answers253
viewsIs it possible to generate an executable in Android Studio?
Hello, I want to run my Android application on PC (Windows) without emulator, so it is possible to install with . exe, this is possible?
-
0
votes1
answer37
viewsSDK problems in Fedora Workstation 24
A few days ago I installed Fededora 24, with all completed I installed Ionic and Cordova, and soon after JDK. Ao gives the following command ionic build android I checked that SDK was missing,…
-
0
votes1
answer79
viewsChange Textview from one tab to another in Tabbedlayout
I am using Tabbed Layout ("activity_carrinho"), and have three separate Ragments for each screen, fragment_product, fragment_client and fragment_payment. As it needed the screens to remain intact…
-
0
votes1
answer57
viewsText breaking in Android notification Using upstream FCM
Upon receiving the notification the text is not displayed completely, at the end of the text an ellipsis is shown, how to resolve this. Below the notification sending code…
java android firebase-cloud-messagingasked 5 years, 12 months ago jallisson jallis oliveira band 100 -
0
votes2
answers39
viewshow to pass an item from a listview to a textview in the same Activity
My question is regarding the capture of information in a ListView on Android and paste the same information into a TextView. Example: I created a ListView fruit and I want to click on a fruit from…
-
0
votes2
answers7370
viewsRegex special characters required
I need to create a regex to validate password. It must contain at least 8 characters, of which it must have at least 1 letter, 1 number and 1 special character.
-
0
votes3
answers2202
viewsTest an App on android. React Native
Hello, my laptop doesn’t have the option to activate virtualization, so I need a way to test an app I’m doing. Does anyone know a way for me to do this on my own smartphone?
-
0
votes0
answers120
viewsImplement interstitial ads in the App
Can anyone explain to me in a brief tutorial on how to implement, interstitial Admob ads in my app which is a simple browser. The problem is that it keeps giving wrong classes, as I have no…
-
0
votes1
answer65
viewsAndroid does not recognize the path of SDK
When I access the directories that are specified in the absolute path, I cannot find them from the Appdata folder. But the absolute path works, when I copy and paste in the search. How do I access…
-
0
votes1
answer95
viewsError while consuming Glassfish + Jersey REST web service with date that returns an xml
I need to consume a web service (WS) REST on my android app. The web service was done with glassfish, jersey and the Hibernate ORM to communicate with the database. Below is the WS code: Vegetarian…
-
0
votes1
answer95
viewsDoubt about the onCreateOptionsMenu method
Could someone explain to me the purpose of this method? onCreateOptionsMenu I’ve researched several sites (in the documentation of Android too), but still not clear what the purpose of this method.…
-
0
votes1
answer139
viewsHow to open a link in a browser that was clicked on a Webview on Android
I want to open a link that will be clicked on Webview, I want this open in the browser. I have here the code: mWebView.setWebViewClient(new WebViewClient() { @Override public boolean…
-
0
votes0
answers17
viewsBigquery client for Android
Does anyone know if there is a Bigquery client for Android? I need to perform table queries in Bigquery. I looked at the Google documentation and it says: Note: Java client libraries for Google…
androidasked 5 years, 11 months ago Lucas Cordeiro 29 -
0
votes2
answers64
viewsWhat kind of database to use and how not to create many activities?
I intend to create an application, which will use barcode recognition, this barcode will lead to a screen on the medicine, the part of the database do not know which to use, because I never used,…
-
0
votes2
answers373
viewsProblems with setOnItemClickListener
I’m trying to run this Activity as main, but the application even runs on mobile. The error points to the following lines of code: FormularioHelper helper = new FormularioHelper(activity);…
-
0
votes1
answer93
viewsAndroid App closes when adding Firebase and cardview
Every time I add : compile 'com.android.support:cardview-v7:27.+' and compile 'com.google.firebase:firebase-core:16.0.6' Together the app just doesn’t work. How to resolve?…
-
0
votes1
answer182
viewsClose ad by clicking close button
I would like to know how to close the layout adview if the user clicks on the ad "X". My ad code is the below and use in the main layout activity_main: MobileAds.initialize(getApplicationContext(),…
-
0
votes2
answers252
viewsHow to control the lighting (brightness) of Android via code for all activities?
I’m using the following code: //brilho try { //sets manual mode and brightnes 255 Settings.System.putInt(act.getContentResolver(), Settings.System.SCREEN_BRIGHTNESS_MODE,…
androidasked 8 years ago daniel12345smith 2,120 -
0
votes0
answers42
viewsCustom Listview Not Appearing
I am trying to create a custom Listview. In another project I created a row_client xml and in Listview I put tools:listitem="@layout/row_cliente", but it doesn’t trim my custom list but rather the…
androidasked 8 years ago Artur Mafezzoli Júnior 441 -
0
votes2
answers155
viewsProblem with Android Arraylist
I’m trying to create a listview with images and I’m getting this error and the app does not run. Error stack E/AndroidRuntime: FATAL EXCEPTION: main Process: com.pedido.meu.telas_meu_pedido, PID:…
-
0
votes1
answer97
viewsHow to compare two Child values in Firebase
I have two types of users: Vendedores and Usuarios. Applicants can display their data if the Ids are the same (already functional). Users should see Sellers' values if their child ("City") has the…
-
0
votes0
answers103
viewsLogin problems with mysql, php, Android
So, guys, I’m trying to perform the login feature on my Adroid app. I am using android native Java, mysql and php, but I can not login to the application, and Android Studio does not return me any…
-
0
votes0
answers65
viewsDetect face in real time without putting the camera video on the screen
Hello, I’m new here, so if you do anything out of the ordinary, I apologize in advance =D I am developing an application for academic purposes whose goal is to improve the user posture during the…
-
0
votes1
answer58
viewsAdjust the size of the popup window
How to adjust the popup window size to the layout content? I tried, unsuccessfully, the following: LayoutInflater inflater = (LayoutInflater)…
androidasked 8 years ago Edson Santos 416 -
0
votes1
answer422
viewsMake the button visible at a given time
Hi, I’m trying to get that button "X" close the ad appear after 15 seconds. I don’t know the correct function for this but I did it on the basis of appearing interstitial ads from admob. See my…
-
0
votes0
answers123
viewsAndroid Attempt to invoke virtual method on a null Object Reference
I have this mistake and I can’t figure out how to fix it. Attempt to invoke virtual method 'android.content.res.Resources android.view.View.getResources()' on a null Object Reference This is the…
androidasked 5 years, 9 months ago FelipeBr193 31 -
0
votes1
answer173
viewsI’m starting to program in React Native. What is the best software to emulate android? and to edit lines of programming
As mentioned above, I’m starting to program apps for Mobile, and I’m having a lot of doubts, one of them and the fact that I watched a tutorial on how to install React and so on... In which the…
-
0
votes2
answers55
viewsFileoutputstream fails in context
I’m trying to reuse a class, which writes the file to the internal storage. In the first line of try, the result is null (from activity) and makes a mistake. When I execute this code on…
-
0
votes1
answer136
viewsProblems running android studio app on mobile
I’m trying to test the android Studio app on celelular and when I open the android Emulator appears this phrase in yellow NO USB DEVICES, then I clicked on troubleshoot and searched the Scan and…
-
0
votes1
answer845
viewsjava.lang.Classnotfoundexception: Didn’t find class "com.google.firebase.provider.Firebaseinitprovider" on path: Dexpathlist
Good evening. Does anyone know how to solve this problem ? 11-14 17:40:57.910 2110-2110/? E/AndroidRuntime: FATAL EXCEPTION: main Process: br.com.appvis.appvis, PID: 2110 java.lang.RuntimeException:…
androidasked 8 years ago Diogo Mendes 11