Questions tagged as 'android-studio'

1
answer

Add Views in RelativeLayout

How about? I hope you can help me, I want to create a LinearLayout and a ScrollView within a RelativeLayout, I have an idea but the truth does not fit, I am somewhat confused about the dimensions MATCH_PARENT and WRAP_CONTENT, I attach an image...
asked by 05.06.2018 / 04:45
1
answer

Differences between "Push" and "Commit & push" in Android Studio

I am a student of programming, every time I give push in android studio does not upload anything to the repository, but if I give a commit & push up the changes, I would like to explain the difference between these and the use that should gi...
asked by 17.06.2018 / 03:46
2
answers

Destroy activity and reopen it by running everything again

I have the following code that validates if there is a connection or not, I have different elements that are shown depending on the status, if there is no connection I can see a button that says Try again, I need to click on that button, the app...
asked by 16.10.2018 / 03:21
2
answers

Android Studio - end activity from IntentService

I have an activity that initiates an IntentService which verifies a code that I entered and if it is correct it sends me to a new activity always from the IntentService, then a new activity starts but the previous one I can not finish it because...
asked by 23.05.2018 / 16:09
2
answers

Call MainActivity variable to a service class in Android Studio

I have an application that gets the user's location, now I need to send those values (latitude, longitude) when launching a service .. //Variables donde se guardan las coordenadas Double lati = new Double(0); Double longi = new Double(0); //V...
asked by 17.05.2018 / 06:54
1
answer

Load files while scrolling in a Recycler View with retrofit

I am new to the community and I have a problem, I want to implement the Endless Scroll or Infinite Scroll as some call it in a recycler view to load items, since I currently show the 11500 results in recycler view , this same wi...
asked by 09.05.2018 / 00:42
1
answer

I do not understand very well what Android Studio refers to with this

I have a Frame layout, and I wanted to put an OnTouchListener, it works correctly but I do not understand why I get this notice. Thank you.     
asked by 11.05.2018 / 17:35
1
answer

Android Studio Generate Signed APK - Sign APK

I created an application on Android and I generated a first APK signed through Android Studio and I have a .jks file, once I signed the APK I modified some things in the code and when wanting to re-generate the signed APK I skipped the next erro...
asked by 06.05.2018 / 17:15
1
answer

I receive errors when compiling error: can not find symbol method setBatchPath (String)

Errors are seen in these files Accounts.java 2 errors error: method does not override or implement a method from a supertype @Override public Builder setBatchPath(String batchPath) { return (Builder) super.setBatchPath(batchPath); } erro...
asked by 28.04.2018 / 17:14
1
answer

Run a service every certain amount of time

My query is as follows. I am trying to perform a service that shows a message in the LogCat every 1 minute for example. I was reading a bit about this but I think I need a hand. The services always work when the phone is with the screen off / or...
asked by 29.04.2018 / 19:47