Questions tagged as 'android'

2
answers

Hierarchize layouts

I want to organize the screen of an activity in this way: So far I have this but I overlap all the layouts starting from above one on top of another: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http:...
asked by 21.04.2017 / 13:24
3
answers

How can I show only two decimals in the operation?

I'm working with android studio and I want the answer to only show it to me with only two decimals, I do not know where that is done, only I can be with format () public class MainActivity extends AppCompatActivity implements View....
asked by 05.09.2017 / 22:20
2
answers

Show the photo of a contact on Android

I get the photos of the contacts with: c.getString(c.getColumnIndex(ContactsContract.Contacts.PHOTO_URI) Returns the path of the photo: content://com.android.contacts/display_photo/1449 How can I read it and load it in ImageView...
asked by 15.09.2017 / 22:30
1
answer

How to create a personalized anchored shortcut?

My question or current problem is that I want to be able to create a direct access on the screen (currently as I could see in the documentation is called anchored access) that allows the user to activate a voice recorder by simply stepping on...
asked by 31.10.2018 / 00:14
2
answers

Create a LIFO stack system with discard when full in Java

I want to design a system, establishing a data warehouse method, stack style, but with the peculiarity that when the maximum is reached (3) the first element of the stack is eliminated, thus only keeping the last values. General design:...
asked by 03.07.2016 / 23:02
3
answers

Android How to implement a navigation drawer menu in all the activities?

Good morning. I have a Navigation Drawer ready, but what I want to do is to be able to use it in any of my activities. How could I implement this? Thank you in advance.     
asked by 13.09.2016 / 18:21
3
answers

Pass Fragments Data to Fragments in another activity

I have a problem that my application has stopped me. I have an activity with several fragments of which I need to shoot the event of one of the menu buttons, collect their data and send them to another activity to show them in the fragments for...
asked by 13.03.2016 / 05:34
2
answers

Change the background color of the drawer elements when pressed

In the % activity_main_drawer.xml I define the elements of Navigation Drawer and separate them into 3 blocks as shown in the image shown at the end of the post. When selecting a elemento of the first block (Start, Notices...
asked by 06.07.2016 / 11:01
1
answer

Error with Fragments: "java.lang.IllegalStateException: FragmentManager is already executing transactions"

I'm having a small problem when creating fragments, it's that I get an Exception as if getSupportFragmentManager was already running. The error:    E / AndroidRuntime: FATAL EXCEPTION: main                     Process: jhon.casique.baccus,...
asked by 22.10.2016 / 18:15
2
answers

Progress bar or wait message, webview Android Studio

I have an activity with a webview where I show an external web page, this occasionally delays loading so I would like to put a progress bar or a message, this to avoid the user thinking that more than delay is that the application does not It's...
asked by 12.05.2017 / 23:53