Questions tagged as 'android'

1
answer

How to edit data that has already been saved in SharedPreferences

Hello, I'm making an application and I'm saving some information in SharedPreferences, which are user information, such as name / phone. I'm doing an edit profile and wanted to know how do I change not only in the database (as I already di...
asked by 14.09.2018 / 13:48
1
answer

I want to know how to pass an object to the activity using the following code

public class PessoasDAO extends DataBase { public PessoasDAO(Context context) { super(context); public Pessoas findByPass(String senhaLogin) { String sql = "SELECT * FROM pessoas WHERE SENHA_PESS = ?"; String[] argumentos = new Str...
asked by 17.04.2018 / 20:03
1
answer

Login error while trying to upload Android Studio project to GitHub by IDE [closed]

I tried uploading my Android Studio project to GitHub, but it is giving me a login error. I have confirmed my login and password and they are correct. Does anyone know how to solve it? I searched on Google and did not find the solution. The mess...
asked by 08.04.2018 / 03:08
1
answer

AlarmManager is not repeating

I have an alarm that is triggered every 5 minutes, and it calls an intentService to test a condition that if true, sends notification to the user, otherwise it does nothing. But the intentService is only being called once, and only if I open...
asked by 05.03.2018 / 18:35
1
answer

AlarmManager does not run on configured

In a method that registers a AlarmManager to run every 30 seconds the BroadcastReceiver : public void play(View view) { Log.i("lgg", "Botão: broadPlay"); Calendar calendar = Calendar.getInstance(); calend...
asked by 09.03.2018 / 19:51
1
answer

How to pass a class with BigDecimal and Date attribute via intents (Bundle)?

I have a ArrayList<MinhaClasse> with a BigDecimal attribute and I'm going through an intent from one activity to another. The problem is that the BigDecimal attribute passes with null value. Can not pass a BigDecimal attribute? I...
asked by 11.03.2018 / 00:06
1
answer

Copy HTML from a page display in a textview

I need a direction. What method do you use to "download" the html of a page (texts only) for example: link and displayed it in a textView?     
asked by 14.03.2018 / 04:46
1
answer

How to use shape as drawable in imagespan

I have an imageSpan, but it only works with images, when I try to use a shape the location of the image is as if there is no image, but it does not show any errors. String text = exercicios.get(0).getPergunta(); Log.i(TAG, exercicio...
asked by 16.01.2018 / 12:19
2
answers

I can not use class R. in kotlin

I'm trying to learn kotlin , but I'm not able to import the class "R." no kotlin   Would anyone know to tell me what I'm doing wrong?     
asked by 03.01.2018 / 16:00
1
answer

HttpURLConnection Android + Msyql

The code works perfectly but I need it without using AsyncTask because I call my code several times each time it finishes executing (onPostExecute) I call different methods or functions ... I need something more generic ... Can someone help me...
asked by 12.12.2017 / 12:39