Questions tagged as 'android'

1
answer

How to display a Menu by clicking the BottomNavigationView item

My application looks like this: IneedwhenIselectthefourthitem,amenuappears: The code for my Activity Main: package br.com.friendlychat.navigationbottombar; import android.os.Bundle; import android.support.annotation.NonNull; import a...
asked by 16.08.2018 / 19:04
1
answer

Error displaying message

public void iniciar() { Thread thread = new Thread(new Runnable() { @Override public void run() { Socket socket = null; DataOutputStream dataOutputStream = null; DataInputStream dataInpu...
asked by 13.08.2018 / 21:07
1
answer

Refresh fragment within Pageview with Tab

Galera, See if you can help me, I've had this problem for 2 days and I can not resolve it. My app has PagaView, TabLayou, and 3 Fragment Ok? As the image below: OnmythirdtabIhavethefollowingFragmentcode:android.support.v4.app.Fragmentfrag...
asked by 29.08.2018 / 16:36
1
answer

Convert JSON Java Android - MOIP

I'm using the MOIP API to create a client and I can not extract the following return for JSON in JAVA: {"id":"CUS-K2R4F6N2E9SL","ownId":"77888888888888","fullname":"ASDASDAS FULL","createdAt":"2018-10-09T01:55:42.000-03","birthDate":"1991-10-2...
asked by 09.10.2018 / 06:58
1
answer

Button for screenshot / screenshot on Xamarin

I'm developing an App and I need it to take a screenshot, but not by the default procedure (home + power button), but by a button inserted on the screen. The button has already been created and is in the App screen, does anyone have any idea how...
asked by 18.07.2018 / 21:15
1
answer

Storage firebase in android studio

I'm starting in programming for android and I have a project in android studio that creates photo registration, I added the firebase and I do not know how to create the code to send this data with photo, name ... if anyone can give me an example...
asked by 18.07.2018 / 20:17
1
answer

mkdir on android does not work [duplicate]

I'm trying to create a folder on Android to save the photos of the vouchers, but I'm not having success. I already gave permission in Manifest <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="<meu.packa...
asked by 13.07.2018 / 14:04
1
answer

Optimize actions of Firebase Realtime Database and Firebase Storage

How can I optimize the user experience and application fluency when I am, for example, reading data from Firebase Database or even downloading Files from Storage? Using runnable's to handle processes or are there other more efficient ways to do...
asked by 17.07.2018 / 20:44
1
answer

Return an address

I'm finalizing a project where it will open an alertDialog. As soon as the user presses OK they will make a confirmation and their location will be informed by a toast. I would like to know how I can return the place where the user is.     
asked by 10.07.2018 / 01:24
2
answers

How to display marker on the map according to the selected button?

I researched and tried some alternatives, but I have not been successful so far. * I would like to display the markers according to the button pressed on the main screen. For example: A) button 1 results in displaying the map only with "local...
asked by 10.07.2018 / 15:10