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
answer83
viewsHow to let my Webview auto restart every 30 m
I wanted to know how to automatically restart my page every 30 minutes in the background. Who can help, thank you. Public class tela2 extends AppCompatActivity implementa tela2 { private Timer t;…
-
0
votes1
answer288
viewsHow to pass parameters in a request with Volley
Gentlemen I created a Custom class for the Request with Volley knowing that this form is possible to send parameters however I see that this is not what happens what can be wrong then? The code is…
-
0
votes2
answers786
viewsHow to send a photo taken from the camera to an Imageview?
I need to create an Fragment that can upload images from the camera and also from the gallery to Firebase. However, when I take an image with the camera of the device, the image is not sent to the…
-
0
votes1
answer443
viewsAndroid Studio, CRUD in SQL Server 2008
I’m doing an application at the company where I can register for homeowners and visitors. I am making a connection to the SQL Server 2008 database quietly, but I cannot do CRUD in the application. I…
-
0
votes0
answers74
viewsChange Tab Icon color
Hello I’m using the class Slidingtablayout normally. But I would like you to change the color when selecting the item or Fragment The slidingTabLayout settings I’m making are those on onCreate:…
androidasked 7 years, 3 months ago adventistaam 3,354 -
0
votes2
answers769
viewsResize an image before uploading to Firebase
I want to resize the image that is in imageView coming from a camera or gallery before sending to Firebase, as you can see is being sent the "filepath" that is a Ri so I can not use scaleDown code.…
-
0
votes1
answer287
viewsAdd content to a listview (Android)
Viva comunidade. I was trying to develop an android application that receives JSON data, and I wanted to re-leverage some of this specific JSON data to add to an Android listview. I started by…
-
0
votes2
answers925
viewsRecyclerview does not show data
I have a problem that, I try to show the data of a Recyclerview that I take the data on the web (until then ok), I receive the data and when I set the Adapter in Recyclerview nothing happens, follow…
-
0
votes1
answer306
viewsAutomatic synchronization Firebase
Hi, I’m going to ask this question because I’ve read several Firebase documents and I haven’t been able to get anything so far. First of all I know that my question may have several extensive…
-
0
votes1
answer1496
viewsHow to check if file exists in the application directory in the internal storage?
I am trying to check if a file exists in the application directory in the internal storage with the code below String path =…
-
0
votes1
answer408
viewsSpace between image and content Android studio
I am developing a mobile application using android studio 2.2.2 and wanted to leave my application with this look. But I’m not getting , by placing the image it gets a space between the image and…
-
0
votes1
answer178
viewsHow to keep the countdown running in the background
I’m trying to do a countdown of 24 hours but keep running in the background, because I want to send a notification when it’s 5 hours, what I got so far was trying to implement a service with…
-
0
votes0
answers36
viewsWeb service connection problem - Networkonmainthreadexception
I’m running a method on android, where I try to perform a recover some information from a webservice ... I stopped to debug and whenever it will connect it falls in the catch and when it continues…
-
0
votes2
answers963
viewsScrollview with Images and Linearlayout
I am developing a mobile application I would like to leave the application with this visual a horizontal application with an image side by side and with a Scrollview I already tried to take the…
-
0
votes1
answer154
viewsBuild Variant Android studio
Why should my build variants (first image) does not present the options I want for the compilation? In this case I wanted the "mockdebug" as presented in the second image. What do I need to do to…
-
0
votes0
answers328
viewsProblem with Retrofit Return on Android
I’m trying to connect to the local network, using the RetroFit. In the local network I have a Rest that returns a json, but when I run the event to make it happen, an error happens I have an…
-
0
votes1
answer246
viewsPositioning of Gridlayout Android images
UPDATE I am developing a mobile application, using gridLayout and I would like to leave an image on the side of the other, in case the imageView1 on the side of the imageView 2 , underneath…
-
0
votes1
answer55
viewsI cannot pass the URL of a downloadable pdf file without a static variable
I am using the code below to try to download a pdf file through a URL. Activity "Downloadactivity" just download, and the URL link should be passed by parameter through another Activity. The problem…
-
0
votes2
answers1220
views"Expression expected" error
I took it that code which to some extent worked. But the method updateLabel I can’t do it because of the problem: I need to get the selected calendar date. I’m using a way that by clicking on…
-
0
votes2
answers154
viewsChange variable value within anonymous class
I would like to know why whenever within an anonymous class I try to change the value of an "external" variable it does not, change remains the same. There would be something similar that I could do…
-
0
votes1
answer77
viewsDo I need to add all ads to the.xml string?
I already know that I should create a block for every actvity of my application that I want to display ads, but I don’t know how do I modify the string.xml (if any) after the first ad block has been…
-
0
votes1
answer165
viewsProblem when I try to save data in Mysql database on Android
I’m doing an Android project that uses the Ion library to communicate with the Mysql database, but when I try to save the data, this error appears: Log: 08-20 09:23:28.981…
androidasked 7 years, 3 months ago user2203711 1 -
0
votes3
answers421
viewsError passing from String to float and from float to String
I have a code that adds certain values to a list of Strings but it seems that when I convert them to float later to String again they are not added! What’s the matter ? Code in which they are added…
-
0
votes1
answer88
viewsError Search View in Custom Adapter
Hello, I’m having a hell of a doubt how to put a search view on a custom Adapter.. I’ve been trying for days and I can’t. This following code that I am using is giving error when starting, I…
-
0
votes2
answers380
viewsHow to assign data from an object to editText on Android?
I need to assign in Edittext fields, from my form, the data of an object. For example, I’m using an API that searches the user’s address for viaCep. I’m already able to return the data, now I need…
androidasked 7 years, 3 months ago GustavoSevero 2,567 -
0
votes1
answer20
viewsBecause my countdowntimer treats the received time according to the mobile
I have a countdowntimer that gets a long value of 86400000 ( 24 hours ) on my emulator android 5.1 it recognizes 24 hours and starts counting since then, but on other emulators and on my physical…
-
0
votes1
answer62
viewsHow do I get the interfacial ad between an Activity and another?
I think I did everything correctly, but the application jumps to the next Activity without appearing anything. public class... private FirebaseAnalytics mFirebaseAnalytics; private AdView adView01;…
-
0
votes1
answer431
viewsButton with text Android
I am developing a mobile application and wanted to make my application look like this But I’m not able to put the text under the button and put a gray background color on the button because I’m…
-
0
votes1
answer130
viewsHow do I know if a file exists in Storage Firabase?
I’m using Firebase Storage to store a user profile photo, I made a method to search the image and place it in an Imageview. It works very well when the image exists in Firebase, but when it doesn’t…
-
0
votes1
answer248
viewsHow to move to the function which imageView was selected and save to Firebase
I have a User Registration Activity where he must fill in some fields( name, gender, age, etc) and two Imageview where the user can place photos of him by clicking on Imageview and selecting them in…
-
0
votes1
answer48
viewsDeployment only works with Samsung J5 smartphone plugged into the computer
I can only do implantation when my cell is plugged into my note. If I use the pattern(VisualStudio_android-23_arm_phone(Android 6.0 - API23)), does not work. Build successfully, but deployment…
-
0
votes0
answers50
viewsI cannot receive the data in my api
I have the following method to send an object to my api: public void btnCadastrar(View view) throws JSONException, IOException { final EditText edtNome = ((EditText) findViewById(R.id.edtNome));…
-
0
votes0
answers92
viewsHow to upload web images inside a Listview?
I have a json more or less like this (simplified the original): [{ image:"http://site.com/imagem.png", title:"Titulo", desc: "descrição" }] I would like to upload all the content, including the…
-
0
votes1
answer227
viewsPopular Spinner with firebase data
That’s the code for "Activity Sala" public class CadastroCursoActivity extends AppCompatActivity { private EditText nomeCurso; private ListView lv_Curso; private Toolbar toolbarCurso; private…
-
0
votes1
answer57
viewsLayout weigth does not work Android
I’m willing to leave mine <button/> and <ImageButton/> with the same size "same weight" but the command android:layout_weight="1" does not work like this leaving the size of each…
-
0
votes1
answer1783
viewsHow to delete not only tables but a database in Sqlite
I would like to delete not only a table but the database as a whole in Sqlite. Searching, I was told of a method Context.deleteDatabase(), but I can’t use, if I try to call in a method, it says it’s…
-
0
votes1
answer200
viewsError inflating class android.support.design.widget.Navigationview Android Navigationview
Good night, you guys! I am trying to create an application with navigationView pwla first time and am encountering problems at the time of setContentView(R.layout.activity_main) call; the…
android android-studio android-layout navigation-drawerasked 7 years, 2 months ago Eduardo Rafael Moraes 710 -
0
votes1
answer630
viewsReturn string value with firebase
In Android Studio I have the following code in Mainactivity package br.alan.com.firebaseapp; import android.support.annotation.IdRes; import android.support.v7.app.AppCompatActivity; import…
-
0
votes1
answer304
viewsHow to take a user’s ID in a Listview and use as a variable in another Activity?
I’m doing my TCC and I’m having trouble removing the ID of some user from Listview and using it in another Activity (The intention is that when the user holds the click on someone from the list, a…
-
0
votes1
answer42
viewsUnrecognizedpropertyexception when reading firebase
I got the mistake and I don’t know what else to do: Error 01 19:15:53.568 21966 21966 D AndroidRuntime Shutting down VM 09-01 19:15:53.574 21966 21966 E Androidruntime FATAL EXCEPTION: main 09-01…
-
0
votes1
answer261
viewsInsert picture into empty listview background
I have a listview where he gets the data via Firebase. But if it is empty and not to leave a white screen in the Activity where it is, I put a background image like the example below. That’s my code…
-
0
votes1
answer779
viewsUnregistered Registration Token - Firebase
I have a project in firebase and am trying to implement push notifications, I followed the documentation but while doing tests, sending direct to firebase, it fails and error appears, "Unregistered…
-
0
votes1
answer1430
viewsCheck Login in Firebase
Good afternoon ! I’m having a hard time in an app I’m creating with firebase... Next, I have the login workshop and in it I have the login button with the google account, what I want to do is the…
-
0
votes0
answers263
viewsHow to highlight a date in the Calendarview widget?
XML of the project <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:tools="http://schemas.android.com/tools" xmlns:android="http://schemas.android.com/apk/res/android"…
-
0
votes2
answers401
viewsAndroid Studio - Error in Activity Call
I developed an app (game) with buttons that call screens. The idea is like this: Screen 1 - start Screen 2 - choose character Screen 3 - knows object 1 Screen 4 - play with object 1 Screen 5 - knows…
androidasked 7 years, 2 months ago Valter Neto 3 -
0
votes1
answer119
viewsSending data between Activitys with Putextra - Management
I have the following problem: I have three screens: Main Activity 2 Activity 3 In the first Activity (Main) I send a data by putExtra to Activity 2 (id user). Activity 2 is the profile screen, and…
-
0
votes1
answer71
viewsNo Resource Identifier found for attribute 'tabIndicatorColor' in package 'Authorizer.Android' Authorizer.Android
I had several errors, which I was eliminating, with the installation of the packages. However, this three I still could not eliminate. The interesting thing is that everything was working and out of…
-
0
votes2
answers160
viewsSharedpreferences - Firebase android
I am logging in normally but quado close application, back to login screen. I’m trying to run sharedPreferences but I’m not successful. public static final String PREF_NAME =…
-
0
votes1
answer389
viewsAndroid - org.json.Jsonexception No Value for
While running the application I received a Jsonexception No Value for error { "time": "05:07:18 AM", "milliseconds_since_epoch": 1504588038515, "date": "09-05-2017" } I know there are many errors…
-
0
votes1
answer798
viewsDifficulty with listview layout on Xamarin.Forms
See this image My layout is broken. See that the client name is: Sebastiao Loureiro de Almeida and in the listview appears Sebastiao and it is noticed that the rest of the name gets further down,…