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
votes2
answers1376
views"checked" from "ion-radio" does not work
<ion-list radio-group style="margin-bottom:10px;" [(ngModel)]="orcamento.tipo" name="tipo" #tipo="ngModel"> <ion-item> <ion-label>Consumidor</ion-label> <ion-radio…
-
1
votes0
answers174
viewsHow to request user data and save to firebase?
I’m starting in the development of android apps, and I’m having a doubt, I’m creating (le-se trying) an app like Tinder, where I have two types of users, the customer and the advertiser, both will…
-
1
votes1
answer57
viewsLimit recording time (Mediarecorder)
Hello, as the title says I want to limit the recording of my code: private void startRecording() { mRecorder = new MediaRecorder(); mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);…
androidasked 7 years, 4 months ago Wallace Roberto 496 -
1
votes1
answer44
viewsPUT or database update
How to update objects in my database via put json? This is my post code as an example, public class onbuttonclickHttpPost extends AsyncTask<String, Void, String> { protected void…
-
1
votes0
answers32
viewsHow to Capture Android Camera Image?
I’m having trouble opening the camera, which will capture images to take pictures and save them, in Android Studio using emulators. Follow the code below: Cameraactivity.java import…
-
1
votes0
answers747
viewsStructure of Android Folders
Hello! I’m starting my studies in Android development, I’m trying to list and link the folders of Android Memory, whether internal or external. I can already list and display in a Listview or…
-
1
votes1
answer355
views"Virtual Keyboard" - Java Android
Good, I could use a little help. I was thinking of creating a kind of keyboard with just a few buttons for my Android application but I’m not getting what I want. I intended to create this keyboard…
-
1
votes1
answer359
viewsHow to increase the space between items in a Drawer navigation?
Developing an application saw that on devices with higher resolution the items stay very close together, desire practicality, this is how mobile apps should be, no buttons too small, this makes life…
-
1
votes3
answers308
viewsData Json on android
When running my app, it crashes when I try to read Json Mainactivity.java public class MainActivity extends AppCompatActivity implements NavigationView.OnNavigationItemSelectedListener { String…
-
1
votes1
answer39
viewsDeformed alertdialog
Good, could someone tell me why my Alertdialog is deformed , with that white piece on top of the text ? Here’s the code I create it in : AlertDialog.Builder builder = new…
-
1
votes1
answer49
viewsSettext returning to null
When I open my activity the first time, all settexts are null, the second time it works normally, what’s wrong? Activity of the settext .. autor = (TextView) findViewById(R.id.tv1); editora =…
-
1
votes1
answer349
viewsRetrofit always returning null in Response
The answer comes with code 200, IE, correct, but the body is null. Follows the model: public class MovieModel { @SerializedName("imdbID") @Expose public String idMovie; @SerializedName("Title")…
-
1
votes2
answers648
viewsError Including Image in App
I created a default project, includes some images . png in the project in the main folder: Project - image.png - index.android.js - ..... When running run-android an error is displayed indicating…
-
1
votes1
answer559
viewsNotification on Android does not disappear from the notification bar
I’m working with notifications in android. The notification appears when it is supposed and asks a certain question to the user, who in turn only has to answer "yes" or "no", through the two buttons…
-
1
votes1
answer65
viewsXamarin.Android error "Presentationframework"
I have this error in my project Xamarin.android Severity Code Description Project File Line Suppression State Error Exception while loading assemblies: System.IO.Filenotfoundexception: Could not…
-
1
votes1
answer1267
viewsProblem in making Textview display updated value
I’m making a simple application, it’s just a counter, with two buttons, "+"e"-", which consists of displaying an initial value of 0, and if I click any of the buttons, the value displayed on the…
-
1
votes1
answer173
viewsWhy does Progressbar hide behind the button?
I created a RelativeLayout with a button and a circular Progressbar. This way below: <RelativeLayout android:layout_width="wrap_content" android:layout_height="wrap_content"…
-
1
votes1
answer1909
viewsHow to use an Intent to open a PDF file by default android app
I have an android app, and wanted to know how to open a PDF file that will be on Firebase in my application. I do not need him to download the file, simply an Intent where I pass the file path (in…
-
1
votes1
answer166
viewsBound Service using Intentservice
I am creating an Intentservice with Binder, so I can communicate with that service from an Activity public class MyService extends IntentService { private ChatManager chatManager; private final…
-
1
votes1
answer915
viewsGoogle Maps Location button (Android Studio) not displayed
I’m developing a native Android app, with the Android Studio IDE, which integrates with the Google Maps API. I noticed in several videos that when activating the setMyLocation(True) property you…
-
1
votes1
answer75
viewsAndroid calendar for weeks and months
I’m working with calendars on Android. The goal is to show the calendar by weeks and for months. But the calendar I’m using only allows me to view by month. Xml code…
-
1
votes1
answer370
viewsImagebutton does not display properly image background
I have a school system with schedule of each course and I have an Activity where the user must select his course to have access to his schedule. This Activity has 5 imageButtons but these…
-
1
votes0
answers244
viewsDoes not access the Onresponse() retrofit android method
I’m making a call to a post method that returns an id generated through retrofit 2, however, in return, never access the method onResponse, I’ve tried to use other objects and formats, but none…
-
1
votes0
answers180
viewsRecover Dynamic Childs on Firebase Android
I have a structure on firebase as follows. In the client app when the person saves the information, creates a Child stored by the number entered in the cell field (creates Child with the person’s…
-
1
votes2
answers467
viewsHow to store and use a vector in Firebase on Android?
I have a problem developing my app that I can’t fix and I can’t find anything that would help me. Such an app was running smoothly with data stored in variables, but when including Firebase I had…
-
1
votes1
answer132
viewsError with Onitemclicklisten/Adapterview.Onitemclicklisten
I can’t fix the following code: import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.AdapterView; import…
androidasked 7 years, 3 months ago Hennan Lewis 45 -
1
votes1
answer62
viewsHow to access another application with Sqlcipher database by passing the password in Content Provider?
In the code below, I grant access to the database in app1, using Content Provider, which makes use of Sqlcipher: App1 public class StudentsProvider extends ContentProvider { private SQLiteDatabase…
-
1
votes1
answer466
viewsHow to search within a Recycleview?
I have a Recycleview that receives data from Firebase, each data creates a box in the layout with the information contained within each key there in Firebase. I want you to search for a certain data…
-
1
votes0
answers66
viewsJson Retrofit Badly Formed
I’m with my return in json like this: { "success": 1, "email": "[email protected]" } But the retrofit is saying it’s poorly formed: Gives the following message: use Jsonreader.setLenien(true) to…
-
1
votes1
answer169
viewsHow to keep a Textview text after the App closes
Good, I’m new to Android, but I would like to know how I can keep/save the information that is in a Textview, so that this is not deleted when close application. public class Activity extends…
-
1
votes2
answers471
viewsPlace text under the image
I’m developing an application and I put an image with a text underneath but when I run the application it looks like, the text next to the image: <?xml version="1.0" encoding="utf-8"?>…
-
1
votes1
answer523
viewsText does not appear in the land/Activity.main app in Android Studio 2.2.2
I’m developing an application in the land version of android land/Activity.main and put an image, and two texts one with the name Donald Knuth and another a text but when running the mobile…
-
1
votes0
answers263
viewsError with icon, vibration and sound in notification
I’m developing an app that receives notifications coming from firebase, I’m able to receive notifications quietly when the application is open, everything I’ve instated in Notificationcompat works,…
-
1
votes1
answer269
viewsHow to pass a class as a parameter in another class and return a variable that is within a Thread
I work with Delphi and I decided to learn how to make java applications, and I came across a problem. I have this class public class Dados { public void getJson(final String url) { new Thread(new…
-
1
votes1
answer133
viewsLinearlayout over a listview
I have a Linearlayout that I want that when it gets VISIBLE it overlaps a listview, how to do this? I want my optional Linearlayout to override listview when it is set to VISIBLE. <RelativeLayout…
-
1
votes1
answer65
viewsWebview changing url according to day
I did a blog , to use only in this app , it’s about liturgy , and every day has a liturgy , so are 365 liturgies , if I put 365 Activity the app will get very heavy , so I thought to put only one…
-
1
votes1
answer795
viewsWebview Android Studio with HTML5
How do I make a layout 100% responsive in Webview? I have to set it up in Webview or and my HTML is not Responsive? Code: protected void onCreate(Bundle savedInstanceState) {…
-
1
votes1
answer38
viewsJsoup doesn’t seem to be working
Hello I have this piece of code that gives a link and that goes online with jsoup takes some information and then puts that information in an Arraylist used in a Listview. But the problem is that I…
-
1
votes1
answer203
viewsKnow the size of an image on Android
I am developing an application on Android. I need to get the RGB of a certain image in 5 specific points of the image. as shown below: I am using the following code to capture the image RGB: int…
-
1
votes2
answers7146
viewsround edge on Edittext Android
I am developing a mobile application using Android studio 2.2.2, and I wanted to leave my application with this look. But I’m not able to put the edge and line on top of editText <?xml…
-
1
votes0
answers18
viewsExpandable Listview is not being made
Well I am here to make a program that takes data from a website and meta in an Xpandable Listview , I am able to take this data and I have everything organized , the Arraylist "courses" is the Array…
-
1
votes1
answer133
viewsI have the following error in Volley " jsonexception : end of input at char 0 "
Sending the request the server behaves like it should not from the error, but from the Response side it generates the following error "com.android.Volley.volleyerror java.lang.runtimeException: bad…
-
1
votes0
answers46
viewsSearch appears duplicated in Autocompletetextview
I have a certain problem using the AutoCompleteTextView android. The AutoComplete is presenting me duplicated data by searching both in the name and in the email. I would like it to present only one…
androidasked 7 years, 3 months ago Marcio Motta 11 -
1
votes3
answers278
viewsHow to find Uri from Gallery on Android 7 nougat
I’m making an application where I search an image in the Android Nougat gallery and send it to a server. However I am not able to recover Uri with the image address to send.…
androidasked 7 years, 3 months ago André Silva 21 -
1
votes1
answer768
viewsString JSON - Two decimal places
I’m reading a JSON object, and I can get the data from TextView. However, in the value of String Preco when the price has a zero in the second decimal place, it does not print in the TextView. For…
-
1
votes2
answers444
viewsHow to make FAB overwrite items in a Listview
I have an Activity where I inflate custom items into a Listview. In setContentView() of this Activity I put a file that has only one Listview declared. <ListView…
androidasked 7 years, 3 months ago Léo Santos 114 -
1
votes2
answers1048
viewsBringing a sum in Sqlite Android
I have a problem in the development of an App, following, I have a list that all the data of donations in the bank, and in this Activity I created a Textview to receive the total value of those…
-
1
votes2
answers92
viewsKeep the item focus Bottomnavigationview clicked after rotate screen
I have a problem when I rotate the screen. I have the following structure: A Homeactivity that handles clicks on Bottomnavigationview (there are 4 items) Each Bottomnavigationview item loads a…
-
1
votes1
answer126
viewsHow to send Android json object to API?
I need to mount a json object to send some data to my api. Here’s how I’m doing. public void btnCadastrar(View view) { final EditText edtNome = ((EditText) findViewById(R.id.edtNome)); final…
androidasked 7 years, 3 months ago GustavoSevero 2,567 -
1
votes1
answer273
viewsHow do I send a JSON object from my android to php?
I need to send a JSON object from my android app to my php api. How can I do this? public void btnCadastrar(View view) throws JSONException, IOException { final EditText edtNome = ((EditText)…