Questions tagged as 'android-studio'

1
answer

Error in terminal in Android Studio

When wanting to get the SHA-1. of maps the terminal seems to embase itself without typing any code and I do not know if it's because I have windows 7 and the android studio is version 2.2.1     
asked by 17.10.2016 / 22:29
3
answers

Change from one fragment to another by means of a button

What I try to do is move from one fragment to another when a button is pressed, the code I am using is: public class DimensionFragment extends Fragment { Button Bmeters, Bfeet; @Override public View onCreateView(Layo...
asked by 26.04.2017 / 18:19
2
answers

change radioButton status generated by code?

I am generating a RadioButton series by code and I have not been able to change the state when a RadioButton loses the status of checked. Currently when you checked one and checked another, both are checked. what I'm trying to do is not to...
asked by 28.03.2017 / 01:14
1
answer

Is it possible to add a LinearLayout in a ConstraintLayout or any other Layout?

I added a LinearLayout in a ConstraintLayout and I get the following errors: I would like to know if I added it wrong or if it is not possible.     
asked by 19.03.2017 / 04:04
2
answers

FATAL EXCEPTION: main. Error creating a Recyclerview adapter

I am creating a separate adapter and holder to display three data in a Recyclerview. But when I run the application I get an error. Adapter: public class AdapterProd extends RecyclerView.Adapter<HolderProd> { private ArrayList<Item...
asked by 25.09.2018 / 18:29
0
answers

Upload a new app and sign with the Google Play App Signing service

I want to publish a new app and therefore I have activated the Google Play App Signing the little information that runs and details of the steps I'm not going from point 1 Sign your new APK with the upload key In the Signature sectio...
asked by 28.07.2017 / 10:32
1
answer

How to read fixes within JSON objects with retrofit 2 in android? error: "java.net.ConnectException: Failed to connect to"

I am trying to consume a api of a localhost , once created generate the following JSON {"Users":[ {"id":1, "username":"pepe123", "fname":"pepe", "lname":"jose", "dispositivo"...
asked by 31.10.2018 / 20:53
1
answer

Login with Google (Android Studio)

Good evening, I'm not a programmer but I'm very interested in the subject. I've been guiding myself with tutorials on youtube, mainly Google Login on Android . But trying to test the app with a valid gmail account does not allow me to enter the...
asked by 03.03.2017 / 01:14
1
answer

OnBackPressed in NavigationView

I'm using the Android Studio template and adding this method to the main class: @Override public void onBackPressed() { DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout); if (drawer.isDrawerOpen(GravityC...
asked by 04.06.2016 / 19:54
2
answers

Problem with gradle sync

I just installed Android Studio , and you're giving me this error all the time: Failed to resolve: com.android.support.test.espresso:espresso-core:2.2.2 Failed to resolve: com.android.support: appcompat-v7:26 Any suggestions as to w...
asked by 20.07.2017 / 10:56