Questions tagged as 'android'

1
answer

Layout does not occupy full screen

I'm putting together a layout and the layout is not occupying the entire screen. I have tried it in many ways, but it is never possible for it to occupy, so everything I need is not fit. Problem happens when placing the scrollview, is it poss...
asked by 13.01.2017 / 23:09
1
answer

How to list files and folders on ftp server?

I'm not able to make the FTP server listing in the app using the Android emulator, I realize that in older versions of Android the listing usually happens. But from Android 4 I have problems for this, I also tested running the project on my m...
asked by 22.10.2016 / 02:05
3
answers

Programmatically change the background color of the Overflow Menu in the Toolbar

My application has an option that allows the user to switch between a layout of daytime colors and another layout of night colors. My problem is that I do not know how to programmatically change the text color and background color of the Ove...
asked by 24.10.2016 / 16:53
2
answers

ListView does not appear in the emulator

I'm developing an application in Android Studio and trying to use a ListView, but when I run the project, the list does not appear in the emulator! XML CODE <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="ht...
asked by 07.11.2016 / 16:50
2
answers

Delete SharedPreferences created dynamically

In order not to have to redo requests that have already been brought from the server, I persist them using SharedPreferences ... Only they are created dynamically in my app. example: // essa key é unica para cada post // ex: MINHA_KEI_1, depoi...
asked by 05.11.2016 / 18:26
1
answer

Refresh RecyclerView from another Activity

I have the following class public class FavoriteListAdapter extends RecyclerView.Adapter { @Override public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { View view = LayoutInflater.from(parent...
asked by 26.10.2016 / 13:48
1
answer

How to add only some Activity o navigation drawer

I have a question about how I can add the navigation drawer to the left side menu in some activities. I started the project by BlakActivity and now there is a need to add the side menu. I already have MainActivity . Added by the Android St...
asked by 20.12.2016 / 14:30
1
answer

Write data to file in android internal memory

I need to write a set of variables: int var1,var2,var3 var4=new int[10], var5=new int[10], var6=new int[10] var7=new int[5][3],var8=new int[5][3] My goal was to record them all in order and then read them all in the same order. For the othe...
asked by 20.12.2016 / 20:45
1
answer

Firebase Cloud Messaging vs. Google Cloud Messaging

What is the difference between Firebase Cloud Messaging and Google Cloud Messaging? Are they both free? Who Keeps Firebase Cloud Messaging? What would be the best option?     
asked by 22.09.2016 / 04:38
2
answers

Return values using Dialog's

I have the following dialogConfirme method in which it contains a custom dialog declared as public static to return a value of type boolean . The static issue is so I can call any class using a context as shown...
asked by 06.09.2016 / 16:52