Questions tagged as 'android'

0
answers

Send push notification with FCM direct from an activity on android

Good evening! I am having difficulty adding the functionality of sending notifications to the application users, by the Firebase console these notifications are already sent and received, what I wanted now is from the app itself the user can sen...
asked by 18.07.2018 / 01:14
3
answers

Transform JSONArray into Class Object

I'm getting an API in my application that returns an Array of names, I've created a class to assign each name to 1 instance but I'm having trouble getting this JSONArray and turning it into object, all the methods I've tried do not Did they work...
asked by 18.10.2018 / 14:10
1
answer

How to make proportional screens on different phones on Android? [duplicate]

I'm picking up a lot to get this answer, so who knows, someone around here can give me a hand ... I need to put on a particular screen, a background image, and a series of buttons superimposed on this image, aligned with certain positions o...
asked by 17.05.2018 / 21:31
2
answers

Message when the user is exiting the application

I know I can use AlertDialog for this, but without creating a button, only when the user is pressing the back to exit does an alert appear? Type, when it comes out (this involves the Android system in the part that does it alone) would a...
asked by 24.12.2015 / 00:48
1
answer

Android - Activity Destroyed When Rotating Tablet

I have the following problem in my application: When the user shuts off the screen on the tablet, turns the screen back on, rotates to the vertical position, and logs on the android again, the Activity that the user was is destroyed...
asked by 22.03.2018 / 16:10
0
answers

Run Activity from another app

Is it possible to run an Activity from another app? I do not want to call it through an intent, something like this: public class AnotherActivity extends com.otherapp.app.ActivityName { // Aqui vai conter o código original da Activity }...
asked by 05.07.2018 / 15:48
0
answers

Android application on local network

I'd like to know where to start studying to create an App that works on the local network. I have a version of this App that works using Firebase with my online database. I wanted to now do something similar but locally, with Wifi only Wireless...
asked by 27.03.2018 / 09:43
0
answers

unexpected end of stream

I'm consuming a webservice on android. But I'm having trouble with the following method: public static SoapObject Retornar_Lista_UFs(int pCodigo_Entidade) { Financeiro_NG oFinanceiro = new Financeiro_NG(); SoapObject request = new S...
asked by 25.06.2018 / 15:40
0
answers

Error @DatabaseField + Abstract class ORMLite (java.lang.IllegalArgumentException: No fields have a DatabaseField annotation in class ***. Object)

I have a class that extends from the object class (abstract) from which I need to save the fields in the database, but the ormlite asks the object class to have some field with the @DatabaseField annotation only that I do not need to save anythi...
asked by 21.06.2018 / 20:39
1
answer

Gps or antenna triangulation - How to know the accuracy of the location?

I have an app that uses the api Location and works right on most devices, but it has one that even the GPS does not work with proper accuracy (goes over the house and not on the street). By the test I made it uses triangulation of antennas ev...
asked by 20.04.2016 / 16:37