Questions tagged as 'android'

1
answer

Add 'swipe to refresh' to WebView

I'm relatively new to programming for Android and would like to know how to add the Swipe to refresh [pull up to update] functionality in my app. I want it to pull up, WebView is updated. <?xml version="1.0" encoding="u...
asked by 09.09.2017 / 00:30
1
answer

Object list for another activity

I'm trying to save a list of objects with sharedpreference and gson. And the idea is that I can load this list into a ListView, I did the tests and when it goes to listVIew it loads only the packages, photos: Choose Products - FINAL SCREEN...
asked by 22.09.2017 / 18:23
1
answer

How to keep the countdown running in background

I'm trying to do a 24-hour countdown but keep running in the background, because I want to send a notification when 5 hours is missing, so far I've been trying to implement a service with a broacast receiver (I do not quite understand that) , ho...
asked by 20.08.2017 / 02:21
1
answer

Add content to a listview (Android)

Live community .. I was trying to develop an android application that receives JSON data, and wanted to re-take advantage of some of that specific JSON data to add to an Android listView. I started by creating a layout called activity_list_se...
asked by 18.08.2017 / 23:50
2
answers

RecyclerView does not show data

I have a problem that, I try to show the data of a RecyclerView that I get the data on the web (Until then ok), I get the data and when I set the adapter in RecyclerView nothing happens, it follows the code: / p> App.java public class App {...
asked by 19.08.2017 / 03:05
1
answer

Space between image and content Android studio

I'm developing a mobile application using android studio 2.2.2 and wanted to leave my application with that look. ButIcannot,byputtingtheimageitgetsaspacebetweentheimageandtheTextViewfromaboveandbelow. <?xmlversion="1.0" encoding="utf-8"?...
asked by 20.08.2017 / 01:42
1
answer

How to check if file exists in the application directory in internal storage?

I'm trying to check if a file exists in the application directory in internal storage with the code below String path = Environment.getExternalStorageDirectory().getPath()+"/meu_diretorio/arquivo"; boolean exists = (new File(path)).exists(...
asked by 20.08.2017 / 00:41
1
answer

Retrofit JSON - Error Expected BEGIN_ARRAY but was BEGIN_OBJECT [duplicate]

I've done some Retrofit projects and it always worked but I'm doing one that consumes end-point from api.github.com and is giving an error and I can not find a solution, I've done everything I could, if anyone knows what to do . The error...
asked by 13.09.2017 / 19:59
1
answer

Setting up xamarin

I'm learning xamarin and development for mobile. I have seen several examples of how to set up a small application and I see that practically everyone starts like this: Blank App (Xamarin.Forms Portable) or in Portuguese. It turns out that when...
asked by 25.07.2017 / 22:54
2
answers

Duplicate random numbers

I created a class that contains a method that generates a random number from 0 to 61 ... in my Fragment I instantiated within my button event ... My question is, how do I do to put the amount of times it will generate for me. For e...
asked by 28.07.2017 / 15:50