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
votes1
answer383
viewsSum of Records per group
I need to add the field value from the table I’m working on, but the sum is done by blocks where the user id is the same. Exemplifying: It is a shopping cart, each registration is a product in the…
-
0
votes2
answers42
viewsOnlistitemclick not working on Listfragment
The Toast of the onListItemClick method never appears, someone knows what I did wrong? Code: public class TiposFragment extends ListFragment { private ArrayList<Tipo> tipos; private…
-
0
votes1
answer1316
viewsGet the value of my generated id with push in firebase
How do I go through these ids I generated through the push and that I can get the value of this id I will need to use for the time q the user click on a list I pass this id parameter to another…
-
0
votes1
answer279
viewsHow to place a title in Ragment?
I have the code below, which calls a Fragment, in Activity Schedulesearch: @Override public void openFragment(int home, boolean search, boolean changeClickDirection) { if (home == 0) {…
-
0
votes3
answers4208
viewsRandom Numbers in Android Studio
This code is generating random numbers in 6 TextViews but I can’t make a code to prevent these numbers from repeating themselves. package com.example.kelvin.myapplication; import…
-
0
votes1
answer1265
viewsClick on an Item in recycleView and open Activity
I’m having doubts in my application about recycleView, I would like to click on an item in the list to open an Activity with the other data in detail... Someone could help me understand how to do…
-
0
votes1
answer648
viewsHow to read a JSON Object Array with Xamarin Android Newtonsoft.Json
I am working on an app that gets a response JSON and inserts some fields of it into a textfield android, here is the code: using System; using Android.App; using Android.Widget; using Android.OS;…
-
0
votes1
answer82
viewsProblem with threads on Android
I’m trying to get values from a json and play in a recycleview using OkHttp, he is taking the values and playing in the list, no errors, but I am not able to pass these values to the Adapter, the…
-
0
votes2
answers377
viewsError converting String to int
I need to convert String urlImagem for int, because the image will be loaded in a Adapter and only accepts int, or there is some way to make the conversion of id in String? The code below returns…
androidasked 7 years, 6 months ago Aline Ramos 82 -
0
votes0
answers56
viewsAndroid - Error while renaming package on android
I’m trying to change the name of the package with.app3 to with.gamePedraShow when I try to move up to google play console. I get the message that the name of com.app3 should be changed. Inside Xml.…
-
0
votes1
answer858
viewsKeep login active on android app (firebase)
Good morning, I’m having a difficulty, I made an application using firebase Authentication and every time the application opens asks login, as I keep this login active after done and open the…
-
0
votes1
answer49
viewsChange icon color in API 19 Kitkat
Since API 19(Kitkat) is still very popular, it is a good choice to support this version. However, it does not support several Eatures, such as backgroundTint and Imagetint. This puts me in several…
-
0
votes3
answers312
viewsCheck for file on the web
Next, I have an Android app, this app wants to check the existence of an image on the web to be able to load by Picasso, if the image does not exist in an example address…
-
0
votes0
answers267
viewsHow to set Actionbar height?
I want to put the height of Actionbar as 80dp but the way I did it’s not working: <style name="LargeActionBar" parent="Base.Theme.AppCompat.Light.DarkActionBar"> <!-- Customize your theme…
-
0
votes1
answer623
viewsSend parameters via post json android
I need to send the username string via post after button1 is clicked, my code has no error in the monitor, simply does not send anything to the bank... This is my code : public class PostTeste…
-
0
votes1
answer37
viewsCan’t find file directory
I have a method that is part of a class to capture the client’s signature. But he’s giving trouble when it comes to opening the FileOutputStream, appears "No such file or directory" follow the…
-
0
votes1
answer276
viewsOpening external website in android studio within a list item
Good need to open an external link for example: https:www.google.com However it should stay within a litem of menu list (side menu). To open the Fragments I use the position of the item, there are 7…
-
0
votes1
answer272
viewsFloatingactionbutton does not work
My Floatingactionbutton does not work. In my application I have a Fragment and two tabs. In one of the tabs, floatingActionButton works, in the other not. This is the layout of the main Fragment,…
android android-layout android-fragment floatingactionbuttonasked 7 years, 6 months ago Flavio Luiz 81 -
0
votes1
answer52
viewsPost via Json getstring error
I have a code that should make a "Post" via json ,but edittext is not converting to String,and there is no error in logcat .. Anyone have any idea of the mistake? It must be something stupid I…
-
0
votes1
answer144
viewsHow to send a parcelable of a list object?
I’m trying to send an object to a activity using parcelable, happens that the object is sent but the lists that are inside it arrive empty... Class containing the lists: (I tried to solve the…
androidasked 7 years, 6 months ago felipe.rce 1,969 -
0
votes1
answer625
viewsPassing Data from Fragments to Activity
I own an application with a main Activity and within it there is a viewpager with Fragments generated by a list and a floating button. What I want is that by clicking on this button I can return…
-
0
votes1
answer92
viewsReturn onPostExecute() String
I tried using the @ramaral tip Original post but my code has build errors that I don’t know how to delete. 1-In the interface statement the error appears: Unexpected interface . 2-The…
-
0
votes1
answer703
viewsInsert Scrollview into all Activity
Hello, I need to insert a ScrollView throughout layout. But I’m not getting it. Follow my code. <?xml version="1.0" encoding="utf-8"?> <LinearLayout…
android android-layout android-fragment android-activityasked 7 years, 6 months ago Lucas Charles 127 -
0
votes1
answer173
viewsLogin Authentication / Jsonobject
I have a get code that takes the email and password from the database.. But in getString it only compares with a term,as I do to use equals with all bank users and not filter by ID... This is my…
-
0
votes1
answer29
viewsProblems with multicones in the android menu
I’m trying to create two buttons but it’s only working when I click one of the buttons. My Activity is as follows: <?xml version="1.0" encoding="utf-8"?> <menu…
-
0
votes1
answer944
viewsPass data to a listview in another Canvas Activity
I have a college exercise, I have to fill name field, age and Cpf when you click the "register" button it sends the data to another Activity screen where will be added the registration names in a…
-
0
votes1
answer54
viewsListview does not respond with background effects when clicking on item
listview code <?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"…
-
0
votes2
answers301
viewsSelect with two columns returning empty
In a mobile application (Android), I have two tables. A login table (user and password) and another (simple registration). The APP has a registration screen, if the user does not have an account he…
-
0
votes2
answers2265
viewsInsert data when creating Sqlite table
In my database I have a table State and Cities, I would like to enter this data once the app is installed, ie when creating the database these records are already inserted in the tables at once. I…
-
0
votes1
answer130
viewsCompare two drawables
Every time I click on my Imagebutton I want to compare his image with the drawable I have in Resources. imag.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view)…
-
0
votes1
answer847
viewsGoogle Maps API Map No Renderiza on Mobile, Only in Android Studio
I am learning Android alone, via the internet and am working this time with Google Maps API. I’ve done several things with it in Android Studio, displaying, using Marker, geolocation, among other…
-
0
votes1
answer489
viewsjava.lang.Runtimeexception: Parcel: Unable to marshal value
I have this error when I click on a Recyclerview item and pass an object through Intent, already implemented Serializable and it didn’t work @Override public void onBindViewHolder(final…
-
0
votes0
answers80
viewsUpload JPEG via JSON
I have a code that takes a photo from the gallery or makes you take a photo and would like help to send this image via JSON to my API, but I have no idea how to do this. My code: @Override public…
-
0
votes2
answers731
viewsHow to run the click event on an image that is in Activity’s Fragment?
I want to run the function that is Fragment - remove task() - on an image that is in Fragment being added in Activity at runtime, and I’m not getting, help me !!! Code of the Activity public class…
-
0
votes1
answer96
viewsAndroid Studio Sqlite Import Error delete method
Is not deleting table referring to database Android Studio points no error when clicking the button the program does nothing (NA ACTIVITY Databasehelper) public void delete() { SQLiteDatabase db =…
-
0
votes1
answer75
viewsScreen Registration - Repeat users
I have a post code, which makes the registration of my users, but they can repeat themselves, I would like help to realize a code so that users can not repeat, but I’m new to Android and do not know…
-
0
votes2
answers36
viewsActivity does not return the view
I’m trying to compile but it’s not giving, my layoute is like this: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"…
-
0
votes1
answer59
viewsHow to save the id of a relativeLayout?
Hello, good afternoon. I’m new to Android programming and am unable to save the ID of a relativeLayout to be compared. Example: <RelativeLayout android:id="@+id/idAmc"…
-
0
votes1
answer64
viewsImage for Base64
I would like to turn an image to Base64, but it is not working properly, there is no error in logcat,anyone could help me? Code: private void galleryIntent() { Intent intent = new Intent();…
-
0
votes1
answer209
viewsError picking ID or Position inside a Spinner
Speak people, I’m trying to get the id or position inside an Arrayview of the Spinner component but it’s not getting inside the variable. If I place a Toast to display the id or position, Toast…
-
0
votes1
answer33
viewsProblems setting an Adapter on the list
I need to create a dynamic list, I do not understand well how it does, some people told me that it is made with adapter and so I’m trying to do. According to break point my data is coming in…
-
0
votes0
answers26
viewsList picking entire android page
People of mine listview is coming out, I need her to take only parts, I’m terrible at layout android and the expectation is totally different from the reality kkkk I need you to stay like this: And…
-
0
votes1
answer51
viewsError with Android Style
I am unable to compile my project, I get the following error <type> attribute is required for <item> Here’s my xml style. <?xml version="1.0" encoding="utf-8" ?> <resources>…
-
0
votes0
answers81
viewsListener for monetary mask and call method
I have a class to apply the monetary mask, I apply this class in editText Library. This being a field for discount I need him to do two things 1 - show the value formatted in our currency ex R$…
-
0
votes2
answers53
viewsHow is it possible to condition or check an item in a listview?
How to condition or check an item in a listview? I have an Array with some names, I would like to identify the name clicked so I could make a condition, for example I clicked on "Andrew Murray",…
-
0
votes1
answer207
viewsMissing server connection via Httpurlconnection
I have an application that queries a URL through the following method within a AsyncTask: try { HttpURLConnection http = getHttpUrlConnection("http://www.sitedoservidor.com.br"); if (http != null) {…
-
0
votes1
answer49
viewsHave more options in action_send dialog
I’m using the action_send, but it does not give me the options of Whatsapp, facebook, and other social networks. Only Gmail and Message. Code I’m using is: Intent share = new…
-
0
votes1
answer178
viewsHow to make that when creating multiple imageview , it go to the other side?
How to make that when creating multiple imageview , it go to the other side , and when ending the space in the column it pass to the next? I tried to use linear but when it ends the column , he…
-
0
votes2
answers992
viewsCheck Internet Android
To check the internet connection I made the following method. public class ChecaInternet extends AsyncTask<Void, Void, Boolean> { @Override protected Boolean doInBackground(Void... params) {…
-
0
votes1
answer53
viewsValidation via web service
I need to do a validation in my mysql database if the email you are trying to register already exists in the database, for this I have my following code in the web service: if…