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
answer235
viewsI’m trying to create a connection using localhost but is giving refused Connection
public static String getJsonSystem(String urlString){ HttpURLConnection urlConnection = null; BufferedReader reader = null; String retorno = ""; try{ URL url = new URL(urlString); urlConnection =…
-
0
votes0
answers87
viewsError String types not alowed Android Studio
I’m following a tutorial login on Facebook with Firebase, I will not put all the files because they are basically the own tutorial. When running the code, the following error appears: String types…
-
0
votes1
answer33
viewsANIMATEDTEXT eliminating all other Activity Components and how to make it run in Textviews?
I can’t get this Animation to run in my Textviews, and the same (animation) runs without any Textview or anything like that in my Activity: See, even if I add Components to my Activity, they…
-
0
votes1
answer37
viewsIs it possible to create a Page View from null?
I am implementing a book style reading method and would like to put just a background image and at the time I give the Scroll side came the value on the other side, exactly like a newly opened book.…
-
0
votes0
answers91
viewsAdmob Banner - Android
I’m trying to put a banner on my app, actually I got it. But when I run the virtual machine, it sits underneath the buttons, the machine is a Nexus 5. My activity_main code is this. <?xml…
-
0
votes0
answers67
viewsSqlite only accesses the bank on a device
I created an application on Android that accesses the Sqlite database, the first application I created works normally! The application that works is version 7.1 of Android, but when I try to run the…
-
0
votes1
answer53
viewsError when placing list on Android
I’m starting now with the development for Android. I tried to put together a list but it’s not working. Preview only appears Item 1, Subitem 1. Follow the . Java public class Lista extends…
-
0
votes1
answer146
viewsHow to show the old android timePicker ? the one that appears only the numbers
I’m using a code from the own documentation of android to create the timepicker as dialog, but it is appearing like this And I want him to show up like this Class that creates timepicker public…
-
0
votes1
answer164
viewsHow to create Components dynamically, being created in relation to other existing Components?
In an android studio project, when clicking on one of the 2 existing Textview on Activity (01 and 101) a Textview displays a corresponding answer to the choice. I would like to know how to make a…
-
0
votes0
answers55
viewsHow to set the timepicker "timePickerMode" attribute to "spinner" via java?
class that creates the timepicker public class TimePickerFragment extends DialogFragment implements TimePickerDialog.OnTimeSetListener { @Override public Dialog onCreateDialog(Bundle…
-
0
votes2
answers257
viewsScroll of the slow, heavy Gridview,
I’m trying to create an app that is a kind of gallery. Search the photos on mobile and shows the user. The app is already working, but it turns out that the gridview scroll is slow. I don’t know…
-
0
votes1
answer64
viewsWhy is it taking so long to complete Data?
I have the following problem, when searching the data in the database and filling my object to manipulate on the screen, it is taking too long and leaking memory, I tried to optimize but I could…
-
0
votes2
answers1577
viewsProblem with special characters
i have an application that downloads a csv file from an ftp server and within that file contains product information and the app must insert it into a database, but the special characters are coming…
-
0
votes1
answer147
viewsError when multiplying java null values
I’m having the following problem: In my project there are two fields (editText) where the user can or cannot enter the value. Edittext that receives the amount etCount. Edittext that receives the…
androidasked 7 years, 7 months ago Giovani Rodrigo 299 -
0
votes1
answer134
viewsGson does not work
I have a WCF service that returns a Json to be consumed in an Android App, as you can see in the link http://wssmartctrgtr.azurewebsites.net/WsSmart.svc/veiculo/201 However, Gson is not working on…
-
0
votes1
answer953
viewsWhy isn’t the menu showing?
I’m taking an online course and the menu part is not working in my Android Studio. First, I deleted the Contents who came, left only what is Activity in the Layout. About the code: The App starts in…
-
0
votes1
answer155
viewsAndroid Webview does not return website content
I try to run the application below without success. The returned error informs that the site does not respond, which may be? Mainactivity.java and logcat. Thank you in advance for your attention.…
-
0
votes0
answers33
viewsDynamic size user adjustable view
I have a LinearLayout where I need the user to adjust its size dynamically. Basically it would only be its height, the width can be a fixed size, being match_parent. The property in which it would…
-
0
votes1
answer921
viewsCalculator problem in android studio
I’m a beginner and I’m developing a simple calculator in android studio, but it only shows the result of two values, ex: 1+1=2. I would like to do several operations at the same time, e.g. 1+2*3/4…
-
0
votes0
answers54
viewsSqlite Leak without having any class using Sqlite
Good evening, everyone, I’m building an Android app and the last thing I need is to build the local bank. I built it but I realized that errors of memory appeared Eak, I thought I had fixed but the…
-
0
votes0
answers200
viewsHow to Recover Extras from a Pendingintent (Android)?
I’m implementing Notifications in an app. I’m using Alarmmanager with a Pendingintent of an Intent with data (in Extras, some model objects) but when I receive them in another Broadcastreceiver…
-
0
votes0
answers185
viewsHow to recover the array of a post sent on Android to a php?
Android code: String caminho = "http://10.0.2.2/system/pages/login"; HttpURLConnection conn = null; BufferedReader reader = null; try{ URL urlConection = new URL(caminho); conn = (HttpURLConnection)…
-
0
votes1
answer325
viewsFirebase Removevalue
I’m tending to keep a list on the id firebase... the intention is when press the follow button if you don’t have the id in the firebase add the id and if you have removed the id. I can only add and…
-
0
votes0
answers77
viewsError while running Android application with Opencv
I am trying to open my application on my Smartphone (Motorola G4 Play), but I am not successful. The following error is shown to me: E/art: No implementation found for void…
-
0
votes0
answers69
viewsAndroid - Variable in Runnable
I’m developing a class for UDP communication with Android + an ESP82666, I just have a problem in it. My Runnable "Sender" can not get the List toSend updated, for it toSend is always empty. What…
-
0
votes1
answer38
viewsWhat code to use to insert the result into an Imageview?
I’m trying to create a timeline where the images of a facebook album appear, I’m not getting the images to appear in my Activity. I would like to get a code to use where it appears Insert your code…
androidasked 7 years, 7 months ago Raphael de souza 87 -
0
votes0
answers217
viewsRepeated items with different amounts in a Listview
I have a Listview (lsvProduct) with some items that comes from a request and an Edittext of amount that the user can change (by default, I bring the value of 0). By adding this item, I send it to…
-
0
votes0
answers23
viewsHow to consume data online in an Adapter
With this Adapter code below I created a gallery that works without problem, but instead of consuming the images of Drawable I want you to consume the images that are on the web. Does anyone know…
-
0
votes1
answer831
viewsProblem with SDK license when running Cordova project
I went to run a project Android with Cordova but it gave a license error and I can’t fix, it was working normal until I add a plugin to qrcode. Error: cmd: Command failed with Exit code 1 Error…
-
0
votes1
answer58
viewsQuery is repeating results - Sqlite
I’m making a query in my bd Sqlite, but is returning me some repeated results can not find the error. cursor = db.Select(DataBaseHandler.TABLE_OS + " LEFT JOIN " + DataBaseHandler.TABLE_SITUACAO + "…
-
0
votes1
answer2083
viewsRemove spaces and special characters from a string
Hello, in my project I have a EditText that receives a value typed by the user. EditText etListName = (EditText) findViewById(R.id.etListName); This value is converted into String String…
androidasked 7 years, 7 months ago Giovani Rodrigo 299 -
0
votes0
answers81
viewsTablayout with reyclerview on android
I have a problem regarding Tablayout and Recyclerview. I have some tabs that are filled in according to the return of a json file. These tabs are the categories of products and according to the…
androidasked 7 years, 7 months ago Guilherme Antonio 1 -
0
votes0
answers404
viewsHow do I create a login and password screen in a Fragment?
I am creating an app for presentation in my school, good as I have only this week to finish the app I need to represent a tracking of a particular bus, so for this I thought of a login screen and…
androidasked 7 years, 7 months ago marcos henrique santos 11 -
0
votes1
answer54
viewsAndroid - Webview click Error Calling method on Npobject
I’m trying to perform an action in the Android app by clicking an html element in the webview. When clicking on the element, the event is activated but the following error occurs in the alert(err)…
-
0
votes1
answer237
viewsAndroid: How to make a request POST to grab an image
I need to get a server Bitmap through a POST method with the body (JSON) and header to put in an Imageview. I tried using Volley’s Imagerequest but I would need to pass the URL directly from my…
-
0
votes1
answer92
viewsImporting the android project gives error in java.lang
Good afternoon, I installed the android IDE studio on linux and I opened the project I’m doing, but this giving error in the Gradle files, Windows was working without error, just came to the linux…
-
0
votes3
answers803
viewsHow to add a Searchview to an Android Fragment?
I created a Fragment and I’m trying to add a SearchView in that Fragment, but unsuccessfully, I haven’t found any consistent examples on the Internet and Google documentation provides only…
-
0
votes3
answers705
viewsHow to click on Listview
Well I created a search screen with Pain text and added a Listview to show the suggestions, but how to set the click of the item that appears in the list? Java code public class Tempo_Real extends…
-
0
votes1
answer924
viewsFacebook and Google Authentication in Firebase - Android Studio
I’m developing an Android app, with Android Studio, using Firebase initially for user authentication. The code is quite extensive, so I won’t copy it here, but it’s available on Github. Already…
-
0
votes1
answer24
viewsupdate list view after audio
im trying to refresh my list of Songs when a record an audio, but is not Working, could you help me? public class MainActivity extends AppCompatActivity { private Button mRecordBtn; private Button…
-
0
votes1
answer280
viewsputExtra in Spinner
Hello, in my project I have a Spinner id @+id/spnList, that is in my activity Main. That one Spinner is populated with tables created dynamically in the database, until then everything works…
androidasked 7 years, 7 months ago Giovani Rodrigo 299 -
0
votes1
answer111
viewsMyviewholder with error
I’m studying about Recyclerview but when I try to execute the code it has a strange error. android.view.InflateException: Binary XML file line #43: Attempt to invoke virtual method 'boolean…
-
0
votes1
answer29
viewsGet id Imageview on a Gridview
Images I want to put on Gridview private Integer[] imagens= { R.drawable.um, R.drawable.dois, R.drawable.tres, R.drawable.quatro, R.drawable.cinco, R.drawable.seis, R.drawable.sete, R.drawable.oito,…
-
0
votes3
answers1312
viewsHow to get the address through Latitude and Longitude, formatted?
From a click on the map, I take latitude and longitude and turn it into a String address, below the code I use: private List<android.location.Address> addresses; @Override public void…
-
0
votes3
answers1707
viewsRadiobuttons, horizontal and vertical layout
I have a layout with 6 Radiobuttons. They are both horizontal and vertical. How can I solve this problem? Since using 3 Radiogroups, I can’t uncheck the radio button outside the group. As such, I…
-
0
votes0
answers202
viewsHow to WRITE android data to Mysql using webservices (Asynctask)?
I have an android application that has several buttons on different screens, I must join the buttons clicked and send to Mysql. I read about webservices (http://www.androidpro.com.br/webservice/)…
-
0
votes1
answer404
viewsBack to Canvas Ragment
Good night, you guys. I have a main and 3 classes Fragment. By accessing the main, I can slide to each Fragment correctly. However, in each Fragment I have functionalities. If I access one of these…
-
0
votes2
answers809
viewsSend data from a Fragment to an Activity
Good Morning Everyone I have a Fragment containing a listview where I list the data coming from a webservice. In the onclick method I have the following code where I pass some values to another…
-
0
votes1
answer130
viewsView Interstitial by clicking the Toolbar home button
I tried to implement the display of an interstitial banner on the home button of my activitys but it didn’t work properly. I used @Override public boolean onOptionsItemSelected(MenuItem item) { int…
-
0
votes1
answer127
viewsConnection Android Studio Database Passing Date
I’m having trouble with the following, I make the connection with the database everything right but in the code I use a parameter Map because I pass username, password, etc., but I need to pass a…