Questions tagged as 'android'

2
answers

android.permission.MODIFY_PHONE_STATE - How to assign system permission?

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...
asked by 29.08.2014 / 14:05
2
answers

Calling the same condition in code

//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...
asked by 28.08.2014 / 05:05
1
answer

How to cancel the enter of EditText?

I would like the keyboard not to happen when the user touched the enter was not for the next EditText. How can I do this?     
asked by 17.08.2017 / 20:37
1
answer

Performance Kotlin vs java and is it worth exchanging java for Kotlin?

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...
asked by 09.01.2018 / 18:54
1
answer

Error in Gradle - Startup failed

   What's wrong with my Gradle? apply plugin: 'com.android.application' android { compileSdkVersion 25 buildToolsVersion '25.0.1' defaultConfig { applicationId "com.example.thiago.myapplication" minSdkVersion 20 targetSdkVersion...
asked by 24.07.2017 / 16:58
2
answers

Scroolview bypassing the toolbar

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...
asked by 05.08.2017 / 21:11
1
answer

How to include multiple RadioButtons?

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...
asked by 19.07.2017 / 16:28
2
answers

NullPointerException error using Boolean type

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...
asked by 23.10.2016 / 17:58
1
answer

How to do translation in java code?

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();     
asked by 03.11.2016 / 14:56
2
answers

How do I know if I got past midnight or a new day started? [closed]

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){...
asked by 26.10.2017 / 14:20