Questions tagged as 'android-studio'

1
answer

Can you make an app that connects to a postgresql database? [closed]

Hi, I would like to know if I can make a connection to a postgresql database in the app I am doing with android studio. Thanks     
asked by 13.09.2017 / 10:01
2
answers

Button to close Activity in Android studio

I have a button on my second activity (pre-messages) <Button android:layout_width="50dp" android:layout_height="50dp" android:id="@+id/Button40" android:src="@drawable/back" android:layout_alignParentBottom="true" an...
asked by 18.08.2017 / 20:04
1
answer

Problems with "tools: layout_editor_absoluteY / X" Android Studio: This view is not constrained

shows me the message:    This view is not constrained, it has only design time positions, so it   will jump to (0,0) unless you add constraints I have problems with the restrictions of the "tools: layout_editor_absoluteY / X" tags...
asked by 12.03.2017 / 04:30
2
answers

App adapter failed to ask test questions

I am doing an App of test questions and when making the adapter I must have an error because when I run the App it closes automatically. The main activity is the following: public class ActivityTest extends AppCompatActivity { private Butt...
asked by 15.01.2017 / 19:40
1
answer

Android Studio and Bitbucket

It turns out that I did some bad things in my Android Studio code and I have mixed everything without being able to sort it, in my repository I have a copy of the ordered code. How do I take it to Android Studio? Because if I do a pull...
asked by 18.04.2016 / 05:02
2
answers

Unfortunately the app stopped problem with imageview Android kit kat (API 19)

Good morning coders. I tell you what happens to me. I'm making an app for android, native, but when trying to insert an imageview (as indicated by the official documentation link api level 16) ... the app works on devices lollipop 5.0 and u...
asked by 21.12.2018 / 21:39
2
answers

How can I get the user's location every second?

I am developing an Android application where I want to get the location as quickly as possible (every second would be fine). For now I have added the Google Play Location services as I have seen in many tutorials and I get the correct locatio...
asked by 30.11.2018 / 19:52
2
answers

Summation variables in java

I have a double variable declared inside a for loop, this variable returns different values according to the loop through the list array. for(int i = 0; i < ticketAdapter.mTicket.mLines.size(); i++){ double totalNoVATt = tic...
asked by 05.12.2018 / 10:54
2
answers

Change screen (Toolboard button)

I have the following part of my code: @Override public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.barra_superior, menu); // toolboard return sup...
asked by 17.10.2018 / 12:39
1
answer

Alert This Handler class should be static or leaks might occur

I have the following code that works ok but Studio paints it to me as the image shows, I found several answers but I still do not understand what I have to do so that it does not come out painted anymore. public class SplashActivity extends Ap...
asked by 09.10.2018 / 01:13