Questions tagged as 'android'

1
answer

How to change the message "The application stopped working" on Android?

I needed to change this text from my application, does anyone know how? depending on the model of the smartphone / tablet the message comes different. Thank you in advance.     
asked by 06.06.2016 / 17:38
2
answers

Close all background apps except my app

I'm thinking of an application that aims to close all other applications that are running in the background, but leave only my application running. Anyone have any idea how to do this?     
asked by 12.06.2016 / 17:44
1
answer

Retrieve firebase ID in a ListView

I'm trying to retrieve the id from firebase in my android project. I'm starting to work with firebase now and I do not know much. It's kind of different from Parde where he already shows me the ID. Does anyone know how I get the firebase id? In...
asked by 04.11.2016 / 11:29
1
answer

Translate date format from English to Portuguese

I'm converting a String to Data SimpleDateFormat dateFormat = new SimpleDateFormat("EE MMM dd HH:mm:ss z yyyy", Locale.ENGLISH); Date convertDate = new Date(); String dd = c.getString(c.g...
asked by 25.10.2016 / 20:03
2
answers

How to transform a system out to string?

I want to display a message on the device screen. The message is in System.out.println("Mensagem ") ; How do I make a string and print on the screen using a textView ?     
asked by 26.10.2016 / 03:05
1
answer

Lock and unlock editing of an EditText

In the code snippet below I disable the freight value edition when the freight type is SIF, but the% code_code that should release the editText edition does not work in the following situation: Select SIF and then select FOB. Question How can I...
asked by 13.09.2016 / 14:06
2
answers

Choose which fragment will be shown in the activity

I have Activity that the email is requested and if the email exists it shows a Activity with a Fragment to enter the password. If this email does not exist, I want to display a Fragment , in the same Activity , f...
asked by 13.09.2016 / 21:34
1
answer

Custom RecyclerView white space

I'm having trouble with my custom list and it has too much item space for the other Following code <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="16dp">...
asked by 21.11.2017 / 18:13
1
answer

Error making a phone call

The error appears when I click the TELEPHONE CALL button. MainActivity class package com.edu.chamada; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import android.widget.Button; import...
asked by 31.05.2017 / 20:50
2
answers

Activity does not return view

I'm trying to compile but it's not giving, my layoute looks like this: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:l...
asked by 22.05.2017 / 21:19