Questions tagged as 'android'

1
answer

How to make tabs similar to WhatsApp?

Someone has some examples of how I can create this style of tabs on Android. In the image the example is from Whats App. I mean: 1 - as abas CALL, Chats, Contacts 2 - The Search bar, which always stays, regardless of the tab I cl...
asked by 12.07.2016 / 12:14
3
answers

How to increase the memory of Android Studio IDE?

Lately I have developed for Android, and I have noticed that the IDE Android Studio takes a long time to load and start. I would like to know how to increase the memory of the Android Studio IDE? To start the IDE faster and consequently to...
asked by 31.05.2016 / 20:57
1
answer

How to redeem an Actor variable in Libgdx?

I have the following Actor: public class Carta extends Actor { Sprite sprite; public static int val, pos, peso; Texture texture; public Carta(int valor, int posicao) { val = valor; pos = posicao; switch (val) { case 1:...
asked by 20.06.2016 / 16:37
1
answer

Pass value to TextView

I'm passing a value to a textview, however I have to do this after my number is given this value. public class ariesFragment extends Fragment { public String[]textoSeparado2; public ariesFragment() { } @Override publ...
asked by 30.05.2016 / 02:39
1
answer

Generate random 10-character alphanumeric code

I currently have an application that is displaying data divergence because of the return time of a webservice. To get around this we have created a code to prevent this information from ever being repeated until everything is working. I ne...
asked by 28.10.2014 / 14:39
2
answers

How to retrieve the return result of a routine from within a Thread?

I need to run a routine inside a Thread, and get the return of this method. My code is this way. class Main { public static void main(String[] args) { String resultado = ""; Thread t = new Thread() { @Override...
asked by 03.07.2015 / 12:39
1
answer

First element in listView does not appear

I have a listView that lists through an adapter. The list is updated after a search in SQLite. The problem is that it only appears from the second element of my table .... could anyone help me? Adapter: public class ItemListHistoryAdapter e...
asked by 02.07.2015 / 15:01
2
answers

How to open an activity from a java notification in android?

How to open an activity by clicking on the notification. The detail is that I want it to reopen even if it is open in order to update the data of it. I'm using: int icon = R.drawable.ic_launcher; long when = System.currentTimeMillis();...
asked by 22.02.2015 / 22:08
1
answer

What does popBackStack () do?

I can not understand or find somewhere that will make me understand what the getActivity().getSupportFragmentManager().popBackStack(); method does Not even reading the documentation I could understand, someone could explain me well exp...
asked by 26.05.2014 / 18:57
1
answer

Compare prices taking into consideration units (kg, g)

Hello, I need to compare 2 products, taking into account their weight and values, to know which product is most advantageous to buy. Ex: Rice 5kg - $ 10.00 Rice 2kg - $ 6.00 Thinking you can compare grams with kg by doing the right convers...
asked by 10.06.2014 / 02:22