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
answers243
viewsLow performance in Recyclerview with Constraintlayout, inside a Viewpager on Android
I have a Recyclerview with about 20 items. It takes a long time to render and blocks the UI. I’m using the Constraintlayout to position items on each line. They’re not as complex as you can see in…
-
1
votes1
answer926
viewsHow to check the internet before opening an Ionic app?
I’m developing a app Ionic with a iframe. To date the app is complete and running, but when access the same without internet appears an error message. I would like to place a message or a screen so…
-
1
votes0
answers111
viewsHow do you make a Gridview like that?
Hello, I am learning Android and I learned a lot about Listview... But not much about Gridview, so I would like to know how to develop a Gridview similar to the below: (The title "POPULAR" Never…
-
1
votes0
answers775
viewsGenerate APK only to link a web page
I developed a fully responsive site where has been tested on several mobile phones, but I would like to generate an APK to publish in the Google Store. This application would be nothing more than "a…
androidasked 7 years, 2 months ago Italo Rocha 23 -
1
votes2
answers2397
viewsHow to fix APK error completely hidden?
Whenever I will publish an App in the store this error appears: APK completely hidden Issue: This APK will not be aired to users as it is completely hidden by one or more Apks with version codes…
androidasked 7 years, 2 months ago Tiago Segato 41 -
1
votes2
answers1746
viewsCalling an Activity within a Fragment - Android Studio
I need from the click of a button inside my Fragment, it call an Activity. My code is like this: public class ActFoto2 extends Fragment implements View.OnClickListener,…
-
1
votes0
answers87
viewsOpen youtube video fullscreen
I’m using the code below to open a youtube video, but I would like it to open already in full screen. String id = "Zh-2d_AqiQQ"; Intent it_video_intro = new Intent(Intent.ACTION_VIEW,…
androidasked 7 years, 2 months ago Tiago Segato 41 -
1
votes1
answer695
viewsNavigation Drawer - Change menu color
Hello, I am implementing a navigation Drawer in my android application and for a design question I would like to know how to change the background color of activity_home_drawer, where the menu items…
-
1
votes1
answer221
viewsDirect photo taking method of the application only works on some mobile phones
I have a problem in my apk that allows the user to take a photo straight from the application, however, in some cell phones give error and closes the app. Here is my manifest: <?xml version="1.0"…
-
1
votes1
answer2704
viewsAndroid - How to set a selected item from a Spinner to a string?
I have a question in my code, I’m trying to take the value of Spinner and record it in the bank, but I can’t make the spinner have String value. In case he’s giving me error at the time of setText,…
-
1
votes1
answer477
viewsGoogle Sigin problem when re-logging into Firebase
I have a little problem logging into Firebase using the Google Sigin. The point is that I am able to log in with this method, but when there is a problem after selecting some account (figure below)…
-
1
votes1
answer83
viewsHow to compare data from different activities?
I’m developing a simple app just to increase my knowledge, and I want to know how I can compare data between activities? Example: Activity1: In this Activity I have the variable A which has as value…
-
1
votes0
answers54
viewsProblems with onclick
I have 2 buttons where when clicking I will ask for information from the server and receive in a list. The problem is the order because when I click the button for the first time it does not give me…
androidasked 8 years, 5 months ago Tiago Coelho 739 -
1
votes1
answer90
viewsAndroid Load JSON
I need to get the information from a JSON, I created a php code that transforms the database into mysql in JSON https://portfoliounopar.000webhostapp.com/index.php, Now I need to take this…
-
1
votes0
answers44
viewsProccess Dialog does not open Asynctask
During an API interaction that lasts on average 5 seconds, I need to place a Process Dialog. My code: public class finalizaPedido extends AsyncTask<Object, Void, Integer> { private String…
-
1
votes2
answers100
viewsDo you need to use Appcompat and Support Design libraries when the minimum API is 21?
I recently updated an application I am developing to use minimum API 21 (Lollipop), before it was on 19 (Kitkat). In the case of Kitkat I needed to use Appcompat and Support Design to take advantage…
-
1
votes2
answers3290
viewsCapitalize the first letter of each word
I want to standardize what the user typed in edittext by capitalizing the first letter of each word and the rest lower case. How do I do this? The part that arrow the variables in the model class…
-
1
votes2
answers776
viewsMenu screens are above the app’s home screen
I was implementing the standard Navigation Drawer and when I emulated the apk was the screens of the options above the initial screen of the apk, this way: Mainactivity.java file. @Override public…
-
1
votes2
answers58
viewsDoubt with the firebase
How do I get this information out of the onDataChange in the same activity everything within the onCreate.... mDatabase.addListenerForSingleValueEvent(new ValueEventListener() { @Override public…
-
1
votes1
answer302
viewsPass list to another Activity
I am creating an app, at this point in the app, you choose how many products you will get from a Recyclerview List and this list will be passed to another Activity where it will be loaded in a…
-
1
votes1
answer2048
viewsGenerate sequential key with firebase
Good morning ! I am working on an app that saves some user activities and I have a problem to save these activities generating sequential numbers, here is the environment: I have the user logged in,…
-
1
votes1
answer35
viewsRest API does not receive anything from another App other than my own
You can prevent another application from sending or receiving information from my REST?
-
1
votes0
answers28
viewsAPK updates not applied correctly
I developed an app 2 years ago and we have updated at Google Play always signing with a jks certificate and encrypting with Proguard. This application has been updated in some versions. Even nay…
-
1
votes1
answer404
viewsShow user-installed apps only
Good friends, I’m developing an app for the user to share, back up .. from third-party apps. Be able to create a list where shows all the app’s. It turns out that I do not want to appear system…
-
1
votes0
answers1120
viewsSave a csv file
I am trying to save a csv file with 2 table data, so I did it as follows: Writing method: public void escrever(int PedLinhas, int ProLinhas) { File caminho = new…
-
1
votes1
answer143
viewsConnect server to local network by hostname
I am trying to connect to a local network server using the hostname (can not use IP because the client network does not allow to put fixed ip and the equipment does not have IP reservation for MAC).…
-
1
votes1
answer4008
viewsIntegrating Barcode Reader on Android
I’m trying to add barcode reading functionality to my app through com.google.zxing.client.android.SCAN. I added the calls to the application via Intent according to the code below: static final…
androidasked 8 years, 5 months ago Reginaldo Rigo 3,638 -
1
votes1
answer649
viewsE/Sqlitelog error: (1) in such column
I’m getting a bug in my code and I can’t seem to fix it, I wonder if you could give me a little help? I’m getting the bug "E/Sqlitelog: (1) in such column": 09-27 04:04:14.798…
-
1
votes1
answer41
viewsHow do I set a list of images in the listview -> imageview from the page url?
The problem is that whenever you have a new image on the specific page I have to update the application with the new URL of the image set on the page.
-
1
votes1
answer152
viewsWebview android 6.0 does not load map with image
I have an application that gets js, html, css settings through Webview, to create an offline map. In android 4.4 works correctly. In android 6.0 no content appears. I make the call through the…
-
1
votes1
answer56
viewsDisplay 1, 2, 3 if you receive odd numbers
I need that in the textview displays in order 1, 2, 3, 4 etc. But the value it receives from dados.getdia() is always 3, 5, 7, 9, 11 etc. I have tried several things. In this code below it works up…
-
1
votes0
answers218
viewsListview does not return firebase data
I’m trying to popular a listview, but I didn’t succeed. I even tried to follow what happened by the android monitor, and I realized that it is "populating" the listview with null data, as seen in…
-
1
votes1
answer742
viewsUpload Files to Rest Web Service via Android
I have a Webservice Rest using the Jersey libraries that are working properly. It turns out I need to add the functionality of uploading photos of the items the user photographs in the field. I…
androidasked 8 years, 5 months ago Reginaldo Rigo 3,638 -
1
votes1
answer960
viewsBrowsing between Pages
I’m making a sales order app with Xamarin, but I am with a problem, in flame ruma page search, and return the selected value to the page I was. I will explain further below. Screen 1: Order…
-
1
votes0
answers124
views -
1
votes1
answer77
viewsWhy doesn’t the alarm open Activity?
I have in my code an alarm that is supposed to ring when the hours arrive at 22:48 but nothing happens now I wonder if the hours that Calendar uses are the system hours ? if yes what I am doing…
-
1
votes2
answers131
viewsError closing Progressidialog
public UserRest login(Usuario usuario, final Context context){ try { showProgress(context, "Aguarde", "Validando usuário..."); UserService service =…
-
1
votes1
answer387
viewsTablerow line division - Layout
I was looking over Tablerow and developing a test app with this layout template and a question arose. I have a Table with 1 Row and two columns, whose situation is shown in the figure below. However…
-
1
votes2
answers352
viewsDisplay given in textView
I have a database in an application of android, would like the name field in the table, fill the text of TextView. I saw some examples but I couldn’t implement, the…
-
1
votes1
answer339
viewsError validating date in firebase database
I’m trying to validate whether or not there’s a date in the bank. The situation that occurs is the following, I have a screen with a calendarview, when selecting a date it is displayed in a…
-
1
votes1
answer507
viewsCOUNT AT FIREBASE
Hello, Is it possible to do COUNT (record count) in the firebae database? Because I would like to return in my app the total of occurrences created (ALL of all users) and total per user, but, I do…
-
1
votes1
answer32
viewsImageviewpageadapter cannot be Applied error
Can anyone help me with this error? It occurs when executing a setarView method. Follow the code: package ufc.es.com.br.doesempre.modelo; import android.app.Fragment; import android.os.Bundle;…
-
1
votes0
answers275
viewsHow to get notification data with onNewIntent
I have an application where when I click on the notification I would like to get the values set in the notification putExtra within onNewIntent, follow my code to see if anyone can help me. Intent i…
-
1
votes1
answer442
viewsError in calculator created in android studio
I started doing some things with android studio. The error you are giving is in a simple calculator that does not do the correct operations, example: 1+2=1,1+8=1, and others that keep giving 0. I…
-
1
votes0
answers66
viewsHow to compile a project with Android.Mk through a script.sh?
I have a simple project with native code and am using manual command to compile /workspace/android-ndk-r11c/ndk-build TARGET_PLATFORM=android-14 TARGET_ARCH_ABI=armeabi NDK_PROJECT_PATH=.. In my…
-
1
votes2
answers1458
viewsHow to hide the keyboard when the user presses a button?
I would like my application to force the closure of the mobile keyboard whenever the user presses a button (which is above and next to Edit).
-
1
votes0
answers459
viewsHow to turn off Android virtual keyboard suggestions
Needed to disable the suggestions that the Android virtual keyboard searches. Does anyone have any idea how to do? Usage Delphi XE7
-
1
votes0
answers62
viewsLeave Activity "darkened" when I click and open a listview on top of Activity
I have an Activity with items (recyclerView), when I click on an item, I "show" a listview on top using setVisible(VISIBLE). I want when the listview comes up, the Activity at the bottom will be…
-
1
votes2
answers54
viewsPassing values between screens
I would like a help, I’m new in android development and I’m trying to develop an app. Basically I will need 4 "screens" where the 1 is typed a value, goes to the next, in this "screen" chooses an…
-
1
votes2
answers387
viewsCancel specific alarm
I got this alarm : This in my acticity Horariosactivity PendingIntent alarmIntent; Intent intent = new Intent(HorariosActivity.this, AlarmReceiver.class); intent.putExtra("agoa", "teste");…
androidasked 8 years, 5 months ago Tiago Coelho 739