Questions tagged as 'android-studio'

1
answer

Android Studio- save object in sharedPreferences [duplicated]

I want to save an object in sharedPreferences but I do not know how it is done. Could someone guide me with an example?     
asked by 10.03.2017 / 05:58
2
answers

How to grant permits in a fragment?

I am working on an app that needs to make calls, my problem is that I do not make the calls because I do not have the permission, how do I grant the permissions within a fragment?     
asked by 23.03.2017 / 23:22
1
answer

Update activity from a thread

I wanted to launch a question in theory mode and know your opinion, on whether it is feasible or not and if so if you consider it good practice or not.    Is it possible to update an activity from a thread? I'm talking about native Androi...
asked by 23.03.2017 / 21:04
2
answers

Missing Styles error

I need someone to help me: I'm starting to learn how to program in Android Studio and I just installed version 2.2.3. I used to have version 1.3 and everything was super good until I changed the version. When I open a new project I get this:...
asked by 02.03.2017 / 17:39
2
answers

How to load an imageView with the property of a bean object in android?

Hi, I hope I can explain myself and that you can help me, I have this class where you have a news bean property with news property. newsIconUrl that contains a URL and I need to show an image in an imageview with that url my problem is to pass t...
asked by 24.02.2017 / 20:51
1
answer

List in object within object list is not updated

static public void agregarComida(String comida){ listaComida.add(comida); hacerCuentasComida(); } private static void hacerCuentasComida(){ Map<String, Integer> contador = new HashMap<>(); Map<String, Double>...
asked by 23.04.2017 / 00:38
2
answers

Control over ImageView, Android Studio

Good afternoon guys, this time I would like to collaborate with a process that I do and it is to take (n) number of photos and put them dynamically in a LinearLayout, the problem is that, when I add them, there is a wide space between each item...
asked by 10.02.2017 / 21:07
1
answer

Problem when capturing a time in the timepicker

I have a fragment which should save an hour, after doing all the code it simply generates an error when executing it Alerter.java ( fragment that will capture the alarms) package company.viral.organizadorjec.FragmentMenu.Per...
asked by 28.01.2017 / 20:04
1
answer

Image is not shown in the corresponding item

I am using a RecyclerView to show a list in which each item contains text and images (I will search for the image from a url with the ImageLoader in the method private void setImageNews(final ImageView view, String url) ). Wh...
asked by 09.03.2017 / 00:26
1
answer

How do I select a Tab from a TabLayout? [closed]

I'm using a ViewPager, but I tried trying to select it and I could not do it correctly. By default I select the first tab but I need the tab selected by default to be the second one. Also, when I enter another activity and then press back, it...
asked by 08.01.2017 / 02:57