Questions tagged as 'android'

1
answer

MainActivity with Login

I'd like to know the best way to use a Login application (in relation to activities). I'm using MainActivity with a Navigation Drawer, and when I open the application it checks for credentials on a sqlite3 bank (if logged in) and then, if it...
asked by 28.05.2015 / 14:44
1
answer

Android ListView equal to Instagram

I'm developing a project in Android Studio, the screens of the project are all made in Fragment, I'm using Material Design followed the tutorial
asked by 24.05.2015 / 06:31
1
answer

Android Toolbar hide Search when it's open

I have a toolbar (actiobar) that contains a search and when I change from fragment, I want that search to disappear. If the search has closed, just make a setVisible (false) that it hides, however, if the search has opened I can not hide using s...
asked by 30.03.2015 / 22:30
1
answer

Create an AlertDialog with an EditText of type "number" - Android

Good morning Guys, I have a problem with my Alert: In it I have an EditText, but I can not declare the EditText with type numbers (android: inputType="number"). Any ideas? Here is the alert code: public void exibirMensagemEdt(String titulo, S...
asked by 18.03.2015 / 04:43
1
answer

How to add items dynamically in a ListView that is inside a Fragment?

I'm developing a layout in an Android app that will be used in Tablets, basically the main layout has a Toolbar DrawerLayout , a FrameLayout and a Fragment , as below: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xm...
asked by 15.03.2015 / 23:09
2
answers

StackOverflowError when calling a class

public class MainActivity extends ActionBarActivity{ Conexao c = new Conexao(); public void tela(){ c.CriaBanco(); } } public class Conexao extends MainActivity{ String NomeBanco = "Cadastro"; SQLiteDatabase BancoDados = null; pu...
asked by 03.07.2015 / 16:35
2
answers

How do I delete a word at a time?

I'm using this method to delete the last character entered in a TextView: texto = txtTexto.getText().toString(); int length = texto.length(); txtTexto.setText(texto.substring(0, length - 1));     
asked by 08.03.2015 / 14:15
1
answer

Prevent the service from closing

Hello, I have an android application that tracks gps signal, it works normal but every time it gets in the background it closes itself. I already researched the subject and saw that the android controls the closure of applications in the backgro...
asked by 12.03.2015 / 23:22
1
answer

error while trying to generate android apk

I am trying to generate apk, but is giving error, not to understanding Error:Execution failed for task ':app:packageDebug'. > Failed to read key from keystore Evente log 19:33:33 Gradle build finished with 1 error(s) in 3 min 21 sec 19...
asked by 11.03.2015 / 23:37
1
answer

Player with onGoingNotification

I have the following code: private Notification ongoingNotification() { NotificationManager mNotificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); Intent intent = new Intent(getApplicationContext()...
asked by 04.06.2015 / 17:18