Questions tagged as 'android'

1
answer

java.lang.StackOverflowError: stack size 1038KB

I'm doing an algorithm that converts a bitmap leaving it in shades of gray. I was able to do it using for but I would like to do it recursively. Using for (This is working fine) //BUTTON - ON CLICK . . . public void go(View v){ //...
asked by 14.09.2017 / 00:53
1
answer

Is it possible to simplify the Runnable command in an Android function?

I've created a class to make it easier to use Dialogs, and I'd like to know if you can simplify it even further. My Class looks like this: public class FVRDialog { private Activity act; private Context context; private AlertDial...
asked by 18.04.2018 / 08:42
1
answer

Increase / Decrease SeekBar progress with Button action?

Someone can help: How to increase and decrease seekBarHomem's progress through Button action? @OverrideprotectedvoidonCreate(BundlesavedInstanceState){super.onCreate(savedInstanceState);setContentView(R.layout.activity_main);tv_QtdHomem=(Tex...
asked by 22.09.2017 / 07:32
1
answer

Set cursor focus position in EditText

Is there any way when I call the virtual keyboard ( SoftKeyboard ) set the cursor position? I have a EditText that already is filled by default the number 10 , when the keyboard starts I want the cursor to be just after...
asked by 25.09.2017 / 19:03
1
answer

Android MVP Framework

I'm studying MVP and I was unsure how I should structure my packages on android. On the internet I found this template, but I do not know if it's the best github project .     
asked by 02.06.2017 / 21:53
2
answers

I did something wrong in my code in android studio and I can not go back to what it was before [closed]

How can I get my code back to what it was before I did something wrong in android studio? Apparently I deleted my code and there is only the gradle script. How can I recover it?     
asked by 30.05.2017 / 18:59
3
answers

Toast with specific duration

How to put this Toast to last only a few seconds? For example, 10 seconds. if (mEmail.equals(email) && mPassword.equals(password)) { Intent intent = new Intent(LoginActivity.this, MainActivity2.class);...
asked by 31.05.2017 / 20:13
1
answer

How to animate a view through an XML file? [closed]

How do I do animation in an imageview with the animation file in XML?     
asked by 25.05.2017 / 23:50
1
answer

Insert ScrollView throughout Activity

Hello, I need to insert a ScrollView into the entire layout . But I can not. Here's my code. <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http:/...
asked by 16.05.2017 / 18:53
1
answer

Dialog can not be applied

I'm trying to use a Dialog but the following message appears Follow my code package com.example.gustavo.vigilantescomunitarios; import android.app.Dialog; import android.os.Bundle; import android.support.annotation.Nullable; import andr...
asked by 07.10.2017 / 00:02