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
votes0
answers15
viewsAndroid - getTimeZone returning date
My command returns in System only the hours, but when it is posted in the database displays the time and date. I’d like you to return only the hours, which is wrong? Calendar cal =…
-
0
votes0
answers199
viewsHow to access the showCallScreenWithDialpad method?
I’m not getting access to the method showCallScreenWithDialpad class com.android.internal.telephony.ITelephony.AIDL. I’ve tried to reflection and I couldn’t. There’s no way to instantiate the class…
-
0
votes0
answers56
viewsSave background and text to a database
My project is simple, a grid view, with several buttons, and at the click of them opens a popup with 3 options and at the click of them, arrow a text and a background on the button, but when I leave…
-
0
votes1
answer6203
viewsPermissions Androidmanifest.xml file
When performing the installation of the app by Google Play, the app send the msg "App Stopped" so I have to go in settings->Apps->APP and give the permissions manually. Follow the permissions…
-
0
votes1
answer239
viewsChange the Drawableleft property of a Textview
I have a Simpleadapter that I use in a listview to show data coming from the database. Follows the code Map<String, String> map; for(int i = 0;i < buscaCombustivel.getCount();i++) { map =…
-
0
votes1
answer359
viewsHow to implement Rest application in production? (Web or cloud servers)
Guys, I’m new at low platform and I’m learning java doing a small android project that queries database, but I saw that android is not cool to communicate with database directly, so I learned to…
-
0
votes1
answer223
viewsHow to get inverted Recycleview position?
I’m with a recycleview q takes the data from a database ( I’m using Sugar ORM ) and reversed the order because I wanted from the newest to the oldest, but to delete I need the position in the…
androidasked 7 years, 4 months ago Igor Oliveira 1,110 -
0
votes0
answers118
viewsRadiobutton changes checked when scrolling Listview
Good afternoon, I have a problem with Radiogroup on a listview. Next, when I mark a Radiobuttom and use the scroll of my listview, the marking I made appears in another Radiobutto and not in what I…
-
0
votes0
answers468
views404 Not Found Nginx/1.12.0
I’m in big trouble I have no idea what it might be. I send PUSH notifications some APPS, functional normally but a specific APP that has many users is giving the following error. The call in GCM is…
-
0
votes0
answers56
viewsCheck user inside Map Circle and activate a button
I am developing an application and I came across a logic that I am not able to solve, if someone can give a strength I would appreciate it very much. I have a destiny that has a range circle of it I…
-
0
votes1
answer135
viewsfetch all records from a sqlite column
I need to save in a list the names of the user table and save them in an Arraylist. I did as follows: public List<String> buscarUsuarios() { List<String> nomes = new…
-
0
votes1
answer113
viewsCreate an application shortcut in an onLogClickListener?
The code below creates a shortcut on the device’s home screen, but by clicking on this shortcut, it returns me an error "The app is not installed" How to solve? I would like this mainactivity to be…
-
0
votes1
answer50
viewsWhy does my database ( Sugar ) return null when I search by id?
I saved in my database using sugar every time I get a new notification, it works correctly, then in a Ragment I populate a recycleview with all database notifications, it also works correctly, but…
-
0
votes1
answer190
viewsResult Web Service RETROFIT in Other Activity - Android
I have a Web Service method using the Retrofit library that can be accessed from 2 different activities. How can I use the result of the Web Service method that is in a class and display on screen…
-
0
votes1
answer263
viewsContinue running after you accept Android Permission
I’m doing a test using Google Maps. It’s working but it’s like this. As soon as the app starts, it checks the permission by calling the Permissao class. If the user accepts, the app starts and if…
-
0
votes2
answers161
viewsNull Object Reference when opening a Dialog Fragment
Making a mistake opening a Dialog Fragment in a another Activity using a method. ERROR: 07-06 11:21:25.145 18783-18783/com.vuforia.samples.Books E/Androidruntime: FATAL EXCEPTION: main Process:…
-
0
votes1
answer95
viewsShow a string in a Alertdialog
Well, I’m learning android, I don’t know much. In this application, so far I just want to present the value of "name" in . Alertdialog setMessage, and I’m not sure how to do it, thanks in advance!…
-
0
votes1
answer52
viewsI’m trying to create a Fragment that has an image slide any idea?
I am trying to use this example Daimajia / Androidimageslider, did not succeed.. someone can help me ' public class Fragmentteste extends Fragment Implements Basesliderview.Onsliderclicklistener,…
-
0
votes1
answer709
viewsHow to add an image stored in firebase Torage to imageView inside an infowindow of a Marketer?
I need to download a firebase image and display it in a custom infowindow on a map. public class MapaFocosActivity extends AppCompatActivity implements…
-
0
votes1
answer517
viewsAndroidmanifest.xml Error - A pseudo-attribute name is expected.
Good morning, When I run the application, an error message appears on Androidmanifest.xml "Error:Exception while Parsing the supplied manifest file C: Users Weslley Androidstudioprojects Projectname…
-
0
votes1
answer15
viewslistDataHeader for a String
I wonder if it is possible to return my listDataHeader to a string, because in my system.out it returns the value , but I don’t know how to pass to a string... private void prepareListData() { // //…
-
0
votes1
answer1999
viewsArchive . Keystore and . jks Android
I realized that Google has the service Manage your app Signing Keys, it is possible to replace my key with google key. For that I must follow a few steps that is: Download the PEPK tool to export…
androidasked 7 years, 4 months ago adventistaam 3,354 -
0
votes0
answers30
viewsRegistration screen
I have a log screen, which compares the edittext text with the database field, and this comparison is working normally. What I would like to do, is that if there was already the field of email in…
-
0
votes1
answer142
viewsUpdate BD after insert record
I use the following code to enter a record in sqlite: public void InsereSenha(String Nome, String Senha, String Dica, String Anotacao) { String sql = "INSERT INTO Senha (Nome, Senha, Dica, Anotacao)…
-
0
votes0
answers33
viewsWindows does not show newly inserted files in a directory of a real android device /sdcard/Download/
I have an Android application that I import an Sqlite file into the application to perform the queries and changes. When finished manipulating I export that same file to a user-accessible folder so…
-
0
votes1
answer318
views'Resource.String' Does not contain a definition for 'gcm_defaultSenderId' Xamarin
I’m implementing Push Notification in my app, it was working, more now the error in two variables not defined in Resource in google_app_id and gcm_defaultSenderId. When I try to add them manually in…
-
0
votes1
answer101
viewsAttempt to invoke virtual method 'java.lang.String android.widget.Spinner.toString()' on a null Object Reference
I am trying to save the data of a spinner in a variable through findviewbyid, to later be saved in SQLITE. The data is, name, type, third and date. But when I try to set this data, it is generating…
-
0
votes1
answer126
viewsConsultations with Firebase
I have an error when I perform the queries in firebase, my code for consultation is as follows: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);…
-
0
votes0
answers351
viewsAndroid Studio - Print via Windows spooler
I wonder if there is a way to send the prints via windows spooler. I am making a bar site and as I have many apps connected at the same time in the network, if I have printed directly in the…
-
0
votes0
answers586
viewsSocket error only on Android 7
This problem occurs only on Android 7! In other versions the operation is perfect. And performing the tests on an S8 with the intelligent network exchange, by the reports of a friend, is also…
-
0
votes1
answer85
viewsImageview of another Activity
How to use the imageview other’s activity? @Override public boolean onChildClick(ExpandableListView parent, View v, int groupPosition, int childPosition, long id) { if (groupPosition == 0) switch…
-
0
votes1
answer403
viewsRecovering Edittext text in Alertdialog
Good afternoon, I’m having a problem... When clicking on a button appears the alertDialog custom, IE contains an Edittext in it and a button Positive to the conclusion. Only I need to rescue the…
-
0
votes1
answer26
viewsDate formatter not working
I have a code that supposedly goes to format dd-mm-yyyy or for example 02-10-2017 but my problem is that this code instead of passing to 02-10-2017 is passing to 2-10-2017. Code : dt = 2 + "-" + 10…
-
0
votes0
answers46
viewsMultiple Spinners in one
I have a Spinner A ,I would like if I clicked on an option of A,open an option on B,If I clicked on the second item of A ,open a difference in b,multiples inputtext on a single spinner catliv =…
-
0
votes1
answer250
viewsRelativelayout "anchored" at the bottom of the screen
Next I want to make this layout (id div_external) below is anchored at the bottom of the screen. But look at the next one it’s at 0dp height on purpose, I don’t want it to appear unless I click the…
-
0
votes1
answer53
viewsNavigation Activity
I would like some help when I open my Navigation Activity after login I get it like this: But I wish he was already called that with one of the pages marked like this: activity_main_drawer.xml…
-
0
votes1
answer208
viewsOpen a file passed via Intent on Android 7
The program works on previous versions of Android, only on Nougat that does not. I get the file from some program, for example the file manager: Uri arqUri = intent.getData(); And get the path to…
-
0
votes1
answer791
viewsIt is possible to last a variable in Strings.xml
I’m trying to get a string from the.xml string to replace a field on the screen, but I’ve been searching and I’m not being able to use it as a variable xml string. <string…
-
0
votes2
answers1248
viewsHow to catch the return of the method ofInBackground on android?
I’m starting to work with Asynctasks and I don’t know much yet. I created a class that extends Asynctask and implemented the method doInBackground(), but my question now is how do I get the return…
-
0
votes1
answer367
viewsAttempt to invoke virtual method 'void
Good evening, I am not able to solve the problem, it says it has an unregistered object (null Object Reference), but it does not have to initialize the following code: public void deletar(int id) {…
-
0
votes2
answers55
viewsError adding Textview by programming
I’m having an error in creating Textviews by programming the application 'crasha' when arriving on the screen Mainactivity.java package com.example.matheus.login; import android.content.Intent;…
-
0
votes1
answer897
viewsGoogle geolocation works on the pc browser, but not on the android browser
Using Ruby, Sinatra, Slim, Javascript, Google maps v3 API. Geolocation works perfectly in the browser on the PC, the map is generated with the partner marker, when you click on the button you are…
-
0
votes0
answers32
viewsHow to check if the last Asynktask is over
I have an android application that communicates with the site through json that is obtained in the following way: @Override protected String doInBackground(String... params) { String url =…
-
0
votes1
answer80
viewsConverting Inputstream to Image
I need to download an image and record it on the device. I download it and record in one InputSstream InputStream imagem = comunicacao.getWSStream(servico, nome); But when it comes to converting it,…
-
0
votes1
answer32
viewsHow to put a system contact in Edittext?
I’m creating an app where the user will click a EditText which will lead to the system’s contact list, where it will click and the contact name will appear on EditText. However, it is precisely to…
-
0
votes1
answer76
viewsFragments does not disappear
Good evening, I am creating an app to train and in it contains side menu that each menu item calls a Fragment only that I’m in trouble, because when I click on an item it appears the called…
-
0
votes0
answers23
viewsHow do I receive data (int.) from another Activity?
I researched several posts here on stackoverflow and I found none talking about migrating whole numbers, I tried a lot of things but it didn’t work out. I’m a beginner and I probably missed…
-
0
votes1
answer874
viewsPass Database values to Spinner
I am searching client values in the database through PHP/MYSQL and I am returning via JSON, and I would like to pass to SPINNER more than 1 argument (idclient + client name)... In this case, I…
-
0
votes1
answer513
viewsStatic, private and final variables
I have a doubt that has been troubling me for a long time: What is the advantage of creating a static and final variable (both private and public)? If I have a primitive variable or simple classes…
-
0
votes1
answer46
viewsDate comparison goes wrong
So I have this code that compares a date to today’s date, but sometimes the dates are as follows: : D/tag: Sat Jul 22 00:00:00 GMT+01:00 2017 <<-Data indicada D/tag: Sat Jul 22 18:57:17…