Questions tagged as 'android'

1
answer

How to use an arithmetic signal to separate one value from the other in a Mathematical String? [closed]

I'm developing a calculator which, at the end of the code, executes a function called mostrarResultado() , this function gets the String of campoTexto of the screen, Ex :( "2 + 3"), and I want any either the operator (which is store...
asked by 01.02.2016 / 22:00
1
answer

How to store images in an Android vector?

I have images inside drawable and to access it, R.drawable.myimage is sufficient. How do I store these images in vetor ?     
asked by 21.02.2016 / 16:54
2
answers

Need for SQLite [closed]

I want to clarify the following question: I have a Android project that uses a webservice , but I did all the data access part in Android and my webservice will be done in Java . After I finished all the class...
asked by 13.12.2016 / 13:58
1
answer

Display values of SQLite table fields in the Console

I'm using the following code snippet to return the values of the fields in a DB in the Android Studio console: db.execSQL("CREATE TABLE IF NOT EXISTS pessoas(id INTEGER PRIMARY KEY AUTOINCREMENT, nome VARCHAR, idade INT(3))"); Cursor curs...
asked by 11.12.2016 / 18:40
2
answers

What is the correct way to call a method from a class that inherits from an activity?

Because if I instantiate the class with "new" and call the same method as Java does not work. I have a class that inherits from an activity and I needed to use its method in several classes. Does anyone know how to do this? Thank you in advance....
asked by 22.10.2015 / 16:33
1
answer

Do not allow onBackPressed to run

In my application, when the user logs in if he presses onBackPressed() on his smartphone the application should not go back to the previous screen. When it logs in and I change activity I set it to Intent the following code: intent....
asked by 21.10.2015 / 20:05
1
answer

Error android.database.sqlite.SQLiteException

This method of my activity: private void loginEmailSenha() { editTextEmailLogin.setError(null); editTextSenhaLogin.setError(null); controllerUsuario = new ControllerUsuario(this); String email = editTextEmailL...
asked by 23.10.2015 / 01:28
1
answer

Progress bar Not working

People I have two threads, one that accesses the webview with the url and another responsible for progressbar, but the progress bar is not running. What can it be and how to fix it? import android.os.SystemClock; import android.support.v7.app....
asked by 27.10.2015 / 21:15
2
answers

Android - Mobile alarm according to system time

Hello. I've done a lot of research and I've learned to do some cool things with AlarmManager and the like. I wanted to make an alarm clock for my cell phone for tests, the problem is that all the codes and tutorials that I find is to wake up...
asked by 16.10.2015 / 22:35
1
answer

ScrollView only in the desired textView

Good evening everyone. I'm having a simple layout that contains a textView to control the title and another textView to control the content. What happens is that I have tried several times to include a ScrollView o...
asked by 20.10.2015 / 03:06