Questions tagged as 'android'

1
answer

Fragments do not disappear [duplicate]

Good night, I'm creating an app to train and it contains side menu that each menu item calls a Fragment but I'm in trouble, because when I click on an item it appears the called fragment, but when I click on the other item the second fragmen...
asked by 22.07.2017 / 02:33
1
answer

Static, private and final variables

I have a question that has been disturbing me for a long time: What is the advantage of creating a static and final variable (both private and public)? If I have a primitive or simple class variable (String for example), they have final...
asked by 22.07.2017 / 14:01
1
answer

wrap_content not working [closed]

I have an error with wrap_content on android in my ImageButton I set the image directly from a URL EXAMPLE: ImageButton img = (ImageButton) findViewById(R.id.imageButton); Picasso.with(getContext()).load("https://java.sogeti.nl/JavaBlog/w...
asked by 24.07.2017 / 14:27
1
answer

conio.h and time.h in cppdroid

Can you add libraries to cpp droid? I need to use these two libraries but the program does not identify the functions. If there is no way in cpp do you have any c compiller for android that supports?     
asked by 23.07.2017 / 17:11
1
answer

NullPointerException / Button findViewById

I have a problem with this code: every time I put it: 'Button botao = (Button) findViewById(R.id.botao_id);' It stops working, it does not run on my phone anymore. And if I take that code (and things related to it, it works again). I asked...
asked by 22.07.2017 / 21:55
1
answer

Comparison of dates is wrong

So I have this code that compares a date with today's date, but sometimes the dates are as follows: D/tag: Sat Jul 22 00:00:00 GMT+01:00 2017 <<-Data indicada D/tag: Sat Jul 22 18:57:17 GMT+01:00 2017 <<-Data de hoje And I...
asked by 22.07.2017 / 20:02
1
answer

How do I disable the third and fourth EditText if the first one is not populated?

I have three EditText and I need to check if the first EditText is empty and if the second EditText is also empty. Affirmative case I should disable the third EditText. How can I do this?     
asked by 16.08.2017 / 16:36
1
answer

Passing value from a DialogFragment to the Fragment

I have fragment1 and DatePickerFragment In case DatePickerFragment extends DialogFragment I would like when selecting the date to return to the fragment. But you're giving it here: java.lang.NullPointerException: Attempt to inv...
asked by 08.08.2017 / 20:13
1
answer

Navigation Activity

I would like some help when I open my Navigation Activity after I log in so: ButIwishitwasalreadycalledwithoneofthepagesmarkedlikethis: activity_main_drawer.xml<?xmlversion="1.0" encoding="utf-8"?> <menu xmlns:android="http://schemas.a...
asked by 14.07.2017 / 15:35
1
answer

RelativeLayout "anchored" at bottom of screen

Next I want to make this layout (from outer div id) below anchor at the bottom of the screen. But notice the following he is 0dp of height purposely, I do not want it to appear unless I click the button. So then everything works fine ... &...
asked by 14.07.2017 / 14:50