Questions tagged as 'android'

1
answer

How to read a local json file using retrofit 2.0?

For API testing purposes, I need to read json files that would be my responses in API requests. Well, with Retrofit 1.9 it was possible to implement a "Client" and override the "execute ()" method to read the json file locally. With Retrof...
asked by 01.12.2015 / 13:44
1
answer

Access your mobile camera in a WebView in Android Studio

I'm creating a QR code reader on a website and now I need to use this site in a Mobile version, so I'm creating a WebView that is opening the site. In any browser, the QR code reader works, either on the desktop or on the mobile phone. But wh...
asked by 07.03.2018 / 21:06
1
answer

Difficulty in using DatePicker

I'm studying things for a project here and I'm trying to use DatePicker, I could implement it normally, but I want to use two in the same activity, putting a start date and an end date, I put two buttons that use the same DatePickerFragment.java...
asked by 01.06.2018 / 23:01
2
answers

Video stream mms or rtsp: // on android

I'm looking for some lib for video stream playback in mms: // format, already tried with VideoView but says it does not support this format (Windows media player), looking for apps (in google play) that has this functionality what worked was the...
asked by 21.02.2015 / 03:02
0
answers

How to make a mock in an android class at runtime?

I'm having a hard time testing, I was wondering if there is a possibility to simulate a custom return in a runtime method example: @RunWith(JUnit4.class) public class TesteSmile { UserAndPass userAndPass = new UserAndPass(); @Rule...
asked by 07.08.2018 / 19:14
1
answer

Do not send Push to users who no longer have the app?

I have a GSM PUSH panel and it happens that when the user installs the app I record his id to send future notifications. But after it uninstalls I continue with the ID of it saved in the database and whenever I run my routine, it sends the pu...
asked by 09.12.2016 / 01:56
0
answers

Error: Trust anchor for certification path not found

I have an application Android , using the Retrofit library to handle requests , when trying to make any request on a android 5.0 or lower, I get the following log :    I / call: java.security.cert.CertPa...
asked by 15.03.2017 / 13:41
1
answer

How does Android automatically update the calendar?

I'm developing an app that stays connected on a local network, but without internet. I am using an APC 8750 link without battery, ie when I hang up it loses the calendar. How does Android automatically update the calendar? If in the case Andro...
asked by 10.03.2014 / 03:00
1
answer

Error Querying Web Wervice

I am doing a client query in a web service, I pass the key to see what it returns me saying that I did not pass the key, what can I be doing wrong in the method? This is .xml of the query <soapenv:Envelope xmlns:xsi="http://www.w3....
asked by 28.09.2016 / 15:05
2
answers

My layout does not render [closed]

I was watching and copying a code from the first Material Design class of Thiengo Calopsita from youtube , it turns out that the xml activity_main and toolbar_bottom is not rendering in Android Studio , according to the erro...
asked by 20.06.2015 / 16:18