Questions tagged as 'android'

1
answer

Best dimension to put in Android background app? [duplicate]

I developed a splash for an android app and included a background image with the command: android:background="@drawable/bg16" The image appeared, but due to its dimensions, it turned out to be a bit flat. Is there any standard dimension f...
asked by 29.01.2018 / 13:13
1
answer

Error Array to String Conversion

I have an Android application that sends a Json in the form of a string to the server in PHP. I tested with var_dump to verify that the data was being passed correctly and everything is ok. The problem is that when I try to access json and assig...
asked by 29.01.2018 / 18:30
2
answers

Thread execution in android

I'm new to working with threads on Android and I'm having a hard time implementing them. The thread will be used to make a calculation and finally send an email depending on the result of the calculation, however I am not able t...
asked by 20.01.2018 / 12:05
1
answer

Capturing the last 5 characters of a URI

Hello everyone, I would like to know how I can capture the last 5 characters of a link, for example in this link I would like to capture the characters ".m3u8" link     
asked by 19.01.2018 / 19:03
1
answer

Problems with 2 different versions of the v7 library

My app is displaying the following error: AsifIhadbeenusingtwoversionsofthecompatibilitylibrary,at25and27,butI'vealreadyrolledtheentireprojectandIdonotthinkwherethelibrarywouldbedeclared25tochange,detail:I'musing:compileSdkVersion27buildTool...
asked by 21.01.2018 / 16:16
1
answer

Web service for web / android

I have the following web service $app->get('/alunos', function(){ require_once('db/config.php'); foreach ($db->alunos() ->order("nome") as $row){ $data[]=$row; } echo json_encode($data, JSON_UNESCAPED_UNICO...
asked by 07.01.2018 / 13:43
1
answer

React Native build of the app

When creating a react native project and try to execute it with the * react-native run-android * command this error appears, it does not matter if it is direct on the physical device or the AVD. I have already created several projects and the...
asked by 02.01.2018 / 15:18
1
answer

INSTALL_FAILED_UPDATE_INCOMPATIBLE when trying to install apk

I'm having this problem when installing on my phone a new version of an Android application that I'm building and, from what I've already researched, can be easily solved by uninstalling the old application and installing the new one. However, i...
asked by 02.01.2018 / 14:47
2
answers

How to put in the center 02 TextView of VideoView

I have 02 TextView and I want to put them in the center of a VideoView with one text being one on top of the other. <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" an...
asked by 29.01.2018 / 02:00
1
answer

View Toast in non-activity class

I'd like to display Toast when the user makes logout . I have this structure: WithinConexaoFirebase,IhaveamethodcalledlogOut:publicstaticvoidlogOut(){firebaseAuth.signOut();}andwithintheclassPerfilActivity,Ihaveamethodthatcal...
asked by 23.12.2017 / 02:53