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
answers35
viewsSetar Bearing using Cameraupdate
I have two positions (LatLong) I’d like to center them on the map! For that, I’ll tell you what: final LatLngBounds.Builder builderZoom = new LatLngBounds.Builder(); if(null != mCurrentLocation){…
android google-maps google-maps-android-api-2asked 7 years, 9 months ago Thiago Luiz Domacoski 7,310 -
1
votes0
answers270
viewsFirebase class is not being found for import
I did the whole process below: dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group:…
-
1
votes1
answer227
viewsHow to call Finish() a separate class?
I have an application where when the user clicks "Back" on MainActivity he displays a AlertDialogin the method onBackPressed() asking if you really want to quit the app. But I created a new class…
-
1
votes2
answers250
viewsTwo Layouts.xml for the same Fragment, is it possible?
My question is this:: It is possible to use two layouts in one Fragment? The context of my doubt, is the following: I wanted a form, where the user entered several information, only I can not put…
-
1
votes2
answers496
viewsHow to calculate a value while the user types in an Android application?
Hello folks I am developing an application in which the user must enter a quantity and the unit value and the application calculates the total payable. But if you delete all the value that is in the…
-
1
votes1
answer279
viewsGet Id onesignal Cordova plugin
I’m having trouble picking up the id from onesignal device. I am trying to use the following method: var getId = function(){ window.plugins.OneSignal.getIds(function(ids) { alert('getIds: ' +…
android apache-cordova cordova-plugin onesignalasked 7 years, 9 months ago Jefferson Mello Olynyki 864 -
1
votes1
answer13964
viewsIF condition inside an Oracle SELECT
There are other questions in this context, but I am a layman and do not understand. With this, I need help. I have a SELECT for searching data in a database ORACLE, but I must make a condition IF…
-
1
votes1
answer78
viewsWhy does this FAB disappear, but not reappear?
I’m trying to animate a FAB so that when the scroll occurs up, hides the FAB and when it rolls down, it reappears. I am following the example of these tutorials that are very similar: FAB: Codepath…
-
1
votes1
answer607
viewsHow to create a Listview in a Navigation Drawer?
1 My goal is this: instead of these items that come by default in Navigation Drawer I would like to put a series of Lists that will change as I create, delete and edit these lists. I tried to create…
-
1
votes2
answers124
viewsKnow if user has Waze installed
I have an application that performs routes between the current position and a certain point. For this, I call an Activity: final Intent intent = new Intent(android.content.Intent.ACTION_VIEW,…
-
1
votes0
answers123
viewsRetrieve Child inside getKey
I have a Recycler Adapter with a populateViewHolder that when I click takes the Child key in firebase, in the image box below takes KeGVDMcSt0v5HICwuUm @Override protected void…
-
1
votes1
answer95
viewsIllegalaccessexception when reading values with Reflection
I cannot read the attributes values of the class with Reflection: ContentValues values = new ContentValues(); Field[] fields = this.getClass().getDeclaredFields(); for (Field field: fields ) {…
-
1
votes1
answer1243
viewsFill spinner with Sqlite data
I have an application with Sqlite, I make a select to return the values of a field and save it in a variable. I wanted to use these values in a spinner, but it is not getting in the list but all…
-
1
votes1
answer328
viewsUpdate data in Listview with Arrayadapter
I have a Listview that will be filled with some different data, which may or may not be called (simultaneously or not). Example: The user can add and remove ingredients from a product. However, he…
-
1
votes0
answers87
viewsHow to Create Dynamic Spinner in Java
Hello, I have a question about how to create three interdependent dynamic spinners, ie create a first spinner called "Module", from the selected value the spinner "Sub module" display only the items…
-
1
votes1
answer105
viewsError in the webservice calculator implementation
I’m mounting a calculator equal to Ricardo Lecheta’s book for understanding of webservice, but I’m 2 mistakes caused by a bad conversion of DataInputStream values that should be received, with the…
-
1
votes0
answers198
viewsCounter + Tablayout text
I have a Tablayout with 4 options, the notification option is for notifications received via Firebase. What I need is to add an unread notification counter. The code for counting unread…
-
1
votes0
answers50
viewsHow to play errors in android studio and where to start research
I’m trying to reproduce this error below in apk but impossible to know where to start, check it out: android.view.InflateException: Binary XML file line #17: Error inflating class…
-
1
votes0
answers341
viewsCheck the status of SIM cards 1 and SIM 2 on a Dual SIM device
The answer above answered part of my problem, only now another question has arisen. How to check the status of SIM cards 1 and SIM 2 on a Dual SIM device? Right now I have the solution implemented…
androidasked 7 years, 8 months ago Nuno Santos 81 -
1
votes2
answers108
viewsWeb link in Textview without showing url, type "Click here"
The goal is to create a dialog with some links to websites. The following code already does this, but the URL appear explicitly (www....) and I would like it to be 'hidden' behind words like 'click…
-
1
votes1
answer127
viewsError "phonegap run android"
I’m having trouble running the $phonegap run android command. Gives the following error: C:\Users\maquina05\App_Oliver>phonegap run android [phonegap] executing 'cordova run android ' ...…
-
1
votes0
answers44
viewsError while running new Drawable Animation on Android Stuido
I have a problem. I created a test animation for a Splash Screen of a project of mine. It works well. Now when I made a new animation to subtype this old, out-of-nowhere app. Animation 1 =>…
-
1
votes2
answers604
viewsRecyclerview, problem inserting an item
Talk guys, I’m new on android, I have a problem here, I’m trying to insert items in a Recyclerview, when I use the direct method on the button it is inserting statically good: public void…
-
1
votes0
answers48
viewsHow to cut two images in the same Activity?
I’m using this repository to cut images. But I’m not able to cut two images in the same activity, and one is oval and the other is rectangular. Every time I click on both, the cut is the same. Below…
-
1
votes0
answers54
viewsJson returning wrong data - Android
I have an Activity that displays the data of a json coming from a url. The data is displayed, but I need to change the content of this json from time to time (the url does not change). The problem…
-
1
votes1
answer512
viewsStop playing sound when exiting the app
I’m creating an app, in JAVA, that plays songs by pressing a certain button. But when you press the button again, the music is repeated. And I would like to stop it by touching the same button.…
androidasked 7 years, 8 months ago Murilo Dagustin 45 -
1
votes0
answers248
viewsFill Spinner and Listview - Fragment
I am developing an application with Fragment. I have two Fragments, where in one there is a Listview and in the other a Spinner. Listview and Spinner are populated with data coming from the…
-
1
votes1
answer531
viewsHow to create a textView by code in a specific Activity location?
I wonder how to choose the place where the textView created by code will appear, because by default it is created at the top left of the Activity. Activity: package genesysgeneration.classsound;…
-
1
votes2
answers3825
viewsAdmob No ads appear
I did everything right: I linked the app with firebase, only when running the ad area turns white. Now, if I use Unit id tests it works normally Mainactivity code AdView mAdView = (AdView)…
-
1
votes0
answers63
viewsAdmob With adRequest error
By adding the admob to my project , when running the application , he follows with this error , I did not understand why XML from ad com.google.android.gms.ads.Adview android:id="@+id/adView"…
-
1
votes1
answer270
viewsError while using Adrequest
Could help me find the error in this Oncreate method specifically in the Adrequest class? @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);…
-
1
votes0
answers70
viewsMethod only works when minimizing/maximizing app
I’m developing an app for TCC using Google Places API. A part of the code returns the locations/establishments next to the user. However, when I run the app and enter the responsible class I have no…
-
1
votes1
answer58
viewsRemove auto-Focus from Edit_text when placing windowSoftInputMode="adjustResize"
I’m putting in mine manifest the attribute windowSoftInputMode="adjustResize" so that the edittext is above the keyboard when it is active. The problem is that by doing so, auto-Focus is activated…
androidasked 7 years, 8 months ago Demetrius Fernandes 79 -
1
votes0
answers153
viewsPutextra in various acitivity
So what I want to do is this. I want to create an image through the app. To create this image, the user will choose 3 images. So to choose them, he will have to go through Activity1 and choose the…
-
1
votes1
answer44
viewsWhy does the connection pool close before displaying Sqlite data?
I am trying to display BD data in a Recycleview but get the following error: E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.emerson.drawer, PID: 8316 java.lang.IllegalStateException:…
-
1
votes0
answers84
viewsIntegrate Facebook Login into the application. Error in keytool
Hello, I’m trying to integrate Facebook login in my application, so when the user registers he can do this with Facebook. I’ve seen several tutorials here - on the site- and on the internet how it…
androidasked 7 years, 8 months ago Artur Mafezzoli Júnior 441 -
1
votes2
answers1372
viewsWhen changing Fragment, the previous one is visible below the new one
I’m using Fragments instead of Activity, only when I call the second Fragment with the replace method, it doesn’t completely overlap the previous Fragment, it’s on top, but the drawing of the other…
-
1
votes2
answers304
viewsCreate Intent for the layout buttons of Drawer , Drawer button , when clicking looks just a text
How do I make the Drawer layout buttons take me to another screen? I tried this way , but it didn’t work Another thing, when I click on the Drawer menu, it looks like it’s just a text, don’t give…
-
1
votes1
answer1077
viewsWhen should I use Constraintlayout?
Beyond the RelativeLayout, FrameLayout, LinearLayout, TableLayout, among others already existing, which sufficiently meet the needs related to layout, Google announced on Google I/O 2016 the…
-
1
votes1
answer40
viewsHtttpurlconnection functions missing in Xamarin Forms development (Java System Conversion to C#)
I have a system developed in Android Studio and am passing to Xamarin Forms in C# and this happening some errors that I am not able to solve Summarizing what my system does: It takes the html page…
-
1
votes1
answer285
views -
1
votes1
answer518
viewsWebview does not show the page
I set up my WebView to display the privacy policy of my application, but when opening it appears that the web page is not available. See: @Override protected void onCreate(Bundle savedInstanceState)…
-
1
votes0
answers76
viewsGraph does not appear on the mobile screen
In the development of an application, I am filling a chart as the end result of user data entries. The main point is that, as I will present in the following code, I have a FOR that will fill each…
-
1
votes0
answers52
viewsFind arrayAdapter
public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.menu_search, menu); MenuItem item = menu.findItem(R.id.menuSearch); SearchView…
-
1
votes1
answer223
viewsAndroid Studio does not matter Adrequest or Adview
The part that gets written android both turn red and no matter import com.google.android.gms.ads.AdRequest; import com.google.android.gms.ads.AdView; import android.os.Bundle; import…
-
1
votes0
answers71
viewsWhen my return Json is an array how can I get this array?
try{ URL urlConection = new URL(caminho); conn = (HttpURLConnection) urlConection.openConnection(); conn.setDoOutput(true); conn.setRequestMethod("POST"); /* DataOutputStream pt = new…
-
1
votes1
answer70
viewsHow to play a sound only while an animated Textview is playing?
The sound I’m using is from a keyboard being keyboard and was taken from this video => https://www.youtube.com/watch?v=pcNlc0zTMuU Duration => 2,577 seconds I added it to the RAW folder of the…
-
1
votes1
answer501
viewsAndroid send message to various Whatsapp contacts
I have an application that today displays the contacts in the calendar that have Whatsapp, and there it is possible to excrever a message in this application and send to the users of Whatsapp, but…
-
1
votes2
answers507
viewsError entering data in Sqlite database
Class creating the bank public class CriaBanco extends SQLiteOpenHelper { private static final String NOME_BANCO = "lista.db"; private static final int VERSAO_BANCO = 1; public CriaBanco(Context…
-
1
votes0
answers57
viewsConflict between Listview’s latest Ell and Floatingactionbutton
On the last Cell of mine ListView there is a conflict because the FloatingActionButton screen is covering two buttons as shown in the image: I wish I could enlarge the scroll area of my ListView or…