Questions tagged as 'android'

0
answers

onSaveInstanceState Not writing data

I have two activities that I will call activityA and acitivityB. In my activityA I have the following method. @Override protected void onSaveInstanceState(Bundle bundle) { bundle.putString("ACTIVITY", "Dados que precisando se...
asked by 11.09.2017 / 01:12
1
answer

How do I customize these EditText that will be generated (backcground, TextColor, fontSize, etc.)

Someone knows how I customize these EditText to be generated (backcground, TextColor, fontSize, etc.) public class Main2Activity extends AppCompatActivity { private LinearLayout layout; private EditText[] vetorEdits; @Override...
asked by 11.09.2017 / 01:48
1
answer

String JSON - Two decimal places

I'm reading a JSON object, and I get the data in TextView . However, the value of String Preco when the price has a zero in the second decimal place, it does not print in TextView . For example: 9.20 displays 9.2...
asked by 22.08.2017 / 21:24
2
answers

Bringing a sum in SQLite Android

I have a problem in developing an App, following, I have a list of all donation data in the database, and in this activity I created a TextView to receive the full value of those donations, however, I have some problems: 1st the value field in t...
asked by 23.08.2017 / 03:23
1
answer

Set start time of a Chonometer with the text of a textView

Hello, I would like to know if you can set the initial value of a chonometer based on a textView. texView that would like to set the start of the highlighted blue chronometer. This textView receives data from a server, but it is not...
asked by 26.08.2017 / 02:38
0
answers

I can not use the debug in a library

I need to debug a lib I just created, I've already done these steps:    * Here is what worked for me: (After having clicked debug at least once before) Open the debug view in eclipse (use the menu at the top:   Window - > Show View - >...
asked by 27.08.2017 / 15:20
0
answers

Low performance in RecyclerView with ConstraintLayout, within a ViewPager on Android

I have a RecyclerView with about 20 items. It takes quite a while to render and blocks the UI. I'm using ConstraintLayout to position items on each line. They are nothing complex as you can see in the preview. I also have a ViewPager...
asked by 28.08.2017 / 16:11
1
answer

How do I get the intertitial announcement between one activity and another?

I think I did everything correctly, but the application jumps to the next activity without appearing anything. public class... private FirebaseAnalytics mFirebaseAnalytics; private AdView adView01; private AdRequest adRequest01; priva...
asked by 27.08.2017 / 01:08
2
answers

How to make FAB overlap items in a ListView

I have an activity where I infold the custom items into a ListView. In the setContentView () of this activity I put a file that has only one declared ListView. <ListView xmlns:android="http://schemas.android.com/apk/res/android" xmlns...
asked by 22.08.2017 / 03:53
1
answer

SetText returning nullo

   When I open my activity the first time, all settexts are null, the second time it works normally, what's wrong?       Settext activity .. autor = (TextView) findViewById(R.id.tv1); editora = (TextView) findViewById(R.id.tv2);...
asked by 25.07.2017 / 21:35