Questions tagged as 'android'

1
answer

BasicNetwork.performRequest: Unexpected response code 500 for

I'm developing a mobile application that will consume services from my server, developed in the Play Framework. I already created the login service as below: public class Services extends Controller { public static void login(String login, St...
asked by 22.12.2017 / 13:51
1
answer

Android volley post compilation error map

Hello, The code below only compiles if I comment the map section, but I need it to populate the parameters of the post.    Erros: method onresponse onerrorresponse does not override its superclass       There is no applicable Const...
asked by 23.12.2017 / 21:46
1
answer

StackOverflowError Retrofit With Basic Authentication

I have a ServiceGenerator that creates the retrofit for min, it works fine when I login and password for it, but when I try to use it without these options, my code goes into a loop and crash the app like this: 12-22 01:27:55.088 8500-8500/dou...
asked by 22.12.2017 / 02:33
1
answer

Treat response from rest service using volley

I'm developing an application in android studio where it consumes a service I created in the Play Framework. I am now learning how to create and consume services, and I am having difficulty responding when I log in to my application, regardless...
asked by 25.12.2017 / 15:32
1
answer

Error consuming service using volley

I'm developing an app in Android Studio where it consumes a service I created in the Play Framework. This is my route in the service: GET /Services/cadastrarPalheta/{matricula}/{data_instalacao}/{local}/{cod}/{estado}/{bairro}/{rua}/{comple...
asked by 26.12.2017 / 15:24
1
answer

circle with shape edges

How to make this circle in xml? What I have so far: <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item android:top="4dp" android:right=...
asked by 26.12.2017 / 12:06
2
answers

AlertDialog Custom Layout - NullPointerException error

Talk about beauty? So, I tried to create a custom Aler Dialog, but every time I try to save it, it gives a NullPointerException error, but I do not know what the cause is. The code for the method that Alert has is this: Button btnAlertDataCons...
asked by 29.12.2017 / 20:34
1
answer

Validate form

I'm developing a mobile application in android studio and I'm having a hard time implementing validation of the form's input fields. Can anyone explain why I can not validate? Form Class: public class FormPalhetasActivity extends Activit...
asked by 30.12.2017 / 18:22
1
answer

Creating a Splash

I'm creating a splash but this splach is stopping my App, it works for a few seconds then automatically closes my App stops working and does not open anymore. public class Splash extends AppCompatActivity { private final int SPLASH_DISPLA...
asked by 19.01.2018 / 17:26
1
answer

How to call a method in the View using a Class that extends Fragment

I have several buttons in a view that call the method addNumero in OnClick, something like this: <Button android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" android:gravity="center" a...
asked by 19.01.2018 / 13:09