Questions tagged as 'android'

2
answers

How to do a table search with SQLite?

Well, how do I make a select in a table using SQLite on Android? So far I have the table created and the insert. For example: search for the user's login and password, to be able to compare. Follow the code: BankData: public class Ban...
asked by 05.11.2017 / 00:21
2
answers

Uploading android images to folder on Server

How can I upload an android image to a folder on the server? I have the address of the folder that I can use to save image, I am already using this address to be able to take the images, but now I need to save images to that folder of the server...
asked by 07.10.2014 / 14:55
1
answer

When I have in Fragment a reference through getActivity () should I use interface?

My question is how best to work for the organization of the methods, I will present 2 implementation options that I am in doubt, whenever I have in Fragment a reference through getActivity () should I use interface? : 1st choice: I'm dec...
asked by 19.10.2014 / 12:14
1
answer

What's the difference between a button and an imageButton?

The image I used to make the tests is a simple 100x100 size gear with the transparent background. FirstofallInoticedthatunlikeButton,whencreatinganImageButtonyouareobligedtoaddanimagetoit: Notethatifnoimageisselected,itscreationisdisabled(...
asked by 30.03.2017 / 00:47
1
answer

How to execute requisitions in order?

I make 3 requests in a row, but they are triggered in order of processing, not synchronously, how can I solve this? ... //botão pressionado // primeira requisição ivUpload.setOnClickListener(new View.OnClickListener() { @Override...
asked by 30.03.2017 / 03:45
1
answer

How to reverse the animation of an animated-vector?

I'm using the following animated-vector: <animated-vector xmlns:android="http://schemas.android.com/apk/res/android" xmlns:aapt="http://schemas.android.com/aapt"> <aapt:attr name="android:drawable"> <vector...
asked by 04.04.2017 / 17:25
2
answers

Create a string resource or a class of constants?

I have an application where I use data persistence with SharedPreference . From the beginning when I started creating applications, I have always created a class, for example, with name Consts to store variables of type static fi...
asked by 30.03.2017 / 03:51
1
answer

Is it possible to create a different App version for each android version?

It has components that are not supported in previous versions of android, but have alternatives to them. Is there any way to keep components ideal for the ideal versions and the alternatives for those versions that do not support it?     
asked by 12.10.2017 / 22:51
1
answer

What is the difference between a toolbar and another view?

I'm learning how to use toolbar in Android development and I've seen that using it is very similar to other views , I saw that you can put it without being at the top, that you can put items inside it. example), type a layout, then...
asked by 20.10.2017 / 06:28
1
answer

How to add the eye to display the password in Android Studio?

I created a login form in my application and would like to put the eye button so that it can display the characters of the login field, as shown: Ihavealreadydonesomeresearchandtriedtoaddfunctionalityinmyapplication,butwithoutsuccess.Myloginlay...
asked by 07.01.2018 / 18:26