Questions tagged as 'android'

1
answer

Error trying to add an image as the background of a button

A few days ago, Android Studio indicated that it had updates that were available ... I had already finished an application for some time and it was ready to be published and talz, I just needed the license of Google Play that I needed to buy....
asked by 02.07.2017 / 02:02
1
answer

Login Authentication

I would like my code to make the comparison of the email also if it does not exist, but it only does the comparison of the password, how to make the comparison of the two together? if (mEmail.equals(email)) { if (mPassword.e...
asked by 30.07.2017 / 15:46
1
answer

Loop of random numbers

Good afternoon, I'm trying to loop my random numbers .... I have two spinner, 1 with a choice of how many random numbers and the other how many times have to appear in a ListView ... My problem is that it generates the amount of random number...
asked by 29.07.2017 / 21:44
1
answer

Create an application shortcut in an onLogClickListener?

The code below creates a shortcut on the device's home screen, but by clicking this shortcut, it returns me an error "The app is not installed" How to solve? I would like this mainactivity to be opened with a specific parameter, to trigger an ev...
asked by 05.07.2017 / 22:51
1
answer

RecyclerAdapter with different layouts

I would like to know how to use a different layout with the layout below, if I'm in Activity A show Layout 1, if I'm in Activity B show Layout 2, I saw it done with viewType, but I could not understand how the viewType works, if you can explain...
asked by 26.06.2017 / 00:12
1
answer

Validation Password Android Studio

On one screen I register the password (button register) and on the other screen I need it to be validated for the application to shut down (button off). I have tried in many ways, but I can not get the database password to do this validation,...
asked by 26.06.2017 / 22:13
2
answers

Framelayout does not show my TextViews

My Framelayout has not bugged and is no longer showing data I received from Json on my TexView in the Header section. Even though I adding a text it does not show anything. XML: <FrameLayout android:layout_width="match_p...
asked by 26.06.2017 / 21:01
1
answer

How to display a list of results in an activity? [closed]

I have a fairly limited knowledge on programming and I'm starting Android now. I started developing an Android project for physiotherapy. In this project, physiotherapists will be able to register and log in to edit, display, and record patie...
asked by 21.06.2017 / 17:58
1
answer

listview adapter repeats the values saved in id

I'm trying to bring up the values from the database and load into a listview, I already swipe from the database an object with the data (a list of "modules"), and tried to pass the id of the corresponding row in the bank via Intent for the other...
asked by 25.07.2017 / 02:57
1
answer

Error in gradle - design

This is my gradle: apply plugin: 'com.android.application' android { compileSdkVersion 26 buildToolsVersion '26.0.0' defaultConfig { applicationId "com.example.thiago.myapplication" minSdkVersion 20 targetSdkVersion 26 versionC...
asked by 24.07.2017 / 20:00