I need to use the following permission in my App:
android.permission.MODIFY_PHONE_STATE
But it shows an error in Manifest saying that the permission is only granted to system apps.
I need to intercept the connection in order to disconnec...
//Função para verificar existência de conexão com a internet
public boolean verificaConexao() {
boolean conectado;
ConnectivityManager conectivtyManager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
if...
The running performance in android (I mean the speed of the application and not the speed of compilation, since benchmarks in powerful machines showed kotlin slower than java in terms of compilation) of kotlin is faster and efficient? / p>
I'v...
I'm trying to create a signup screen with a Scroll, with a toolbar. However the Scroll overlaps the Toolbar.
I have tried to put the app:layout_behavior="@string/appbar_scrolling_view_behavior" attribute but it did not work.
Has anyone ev...
I was interested in doing an APP with 30 personality profile questions, where each question will have two alternatives of choice. I thought about using RadioButton , but since there are 30 questions I would not like to include them all on...
I'm having problems again with this project, the application runs normally opens the screen for registration and everything else, but when you click the button to save it simply closes the app, but in the console of the firebase is registered th...
In the Android application you have to translate the xml string. How do I do this in the java code?
In this code, for example:
Toast.makeText(getApplicationContext(), "Carregando o aplicativo", Toast.LENGTH_SHORT).show();
I need to make a if for when it is past midnight, but how can I get this information even with my cell phone turned off?
I'm currently trying this:
date_current = simpleDateFormat.parse(strDate);
if (date_current.getTime() == 0){...