Questions tagged as 'android'

1
answer

Strange Error On Android [duplicate]

Well I was with a project practically finished in Android with the client testing and already giving OK to only change some images and text of the program nothing more, there I was to take these days again to test the program without changing...
asked by 05.11.2017 / 19:15
1
answer

Shift when closing application

I have an exit button that causes the user to log off from the system, which works like this: SharedPreferences pref = getSharedPreferences("info",MODE_PRIVATE); SharedPreferences.Editor editor = pref.edit(); editor.clear(); editor.commit(); Lo...
asked by 15.01.2018 / 20:29
1
answer

Make the text and the image specify when you click on the button?

I want to do a project where clicking the button will appear a text and when the text appears I want an image to appear together. ex: random text chosen "the dog is silly" appears the photo of the dog. follow my current code public class Ma...
asked by 07.11.2017 / 15:31
1
answer

Problem with fragment

I created a fragment and I'm trying to call it when I click on a button, but it gives an error and it appears in the console    com.example.gustavo.easypasse.RecargaActivity@30d409a0 must implement OnFragmentInteractionListener And point...
asked by 08.11.2017 / 20:08
1
answer

Problems making a call using Retrofit on Android

I am a student and I have difficulty understanding where I am going wrong in a job that the teacher has passed. Describing briefly, the teacher provided an API in GitHub, which after completing the installation we can add products, suppliers and...
asked by 07.11.2017 / 07:48
1
answer

BottomNavigationView is not at the bottom of the screen

I have a problem with a layout that I'm developing, this is my activity for client registration and I only have a BottomNavigationView, and a LinearLayout that I'll replace with a ActivityCadastroCustomer      <LinearLayout and...
asked by 07.12.2017 / 14:44
1
answer

Why inflate a Layout in Fragments instead of setting one already ready? Ex: setContentView (R.layout.activity_example)

I'm learning about Android and would like to better understand how this part of the system works. Instead of inflating a layout, would not it be simpler to do as when creating an Activity, such as overwriting the onCreate method and setting u...
asked by 25.01.2018 / 01:04
2
answers

Access the SQLite database (and other storage types) of the emulator

I'm developing an app that uses SQLite, SharedPreferences, etc . On my device with access root I can access all this information with some specific app's for that (which require root access), mainly the bank to see if the table a...
asked by 30.01.2018 / 19:48
1
answer

How to use AppCompatActivity functions inside a Fragment? [duplicate]

I have a fragment and need within it some of the functions of AppCompatActivity, how to implement the two in the same class? You're like this: public class clientes extends Fragment { I've tried: public class clientes extends Fragmen...
asked by 31.01.2018 / 21:13
1
answer

Call more than one callback at a time

I need a WorkerClass that generates sequential numbers to print through a Callback Interface these numbers in the MainActivity and in a SegundaActivity when opened. My problem is that when SegundaActivity is open the MainActivity no longer recei...
asked by 31.01.2018 / 00:00