Questions tagged as 'android-studio'

0
answers

How can I avoid that when I call a fragment, it is not recreated, but it shows the data I had from the beginning?

I am doing a project in Android Studio, I require that, in a navigation drawer, when selecting a fragment that had already been loaded and emptied information in it (it is the first fragment that appears, in the onCreate event), the task to recr...
asked by 05.03.2018 / 01:13
1
answer

How to fix AndroidManifest.xml errors when putting icon in Toolbar

because changing the MainActivity.java toolbar to put an icon in the toolbat shows me errors in the AndroidManifest.xml that I did not have before. MainActivity.java import android.support.v7.widget.Toolbar; @Override protecte...
asked by 16.02.2018 / 08:17
0
answers

How to generate binary images of a capture of the camera from the phone without the shadows affecting

I try to create an application that is able to take a photo and apply a filter to the image taken in such a way that a binary image is generated. My problem lies in the shadows, the shadows turn black and most of the image is ruined. This is the...
asked by 15.02.2018 / 22:00
0
answers

conxion DB on android with MSSQL auth

I'm trying to connect to a BD from an Android device, but the DB is in MSSQL with windows authentication through a VPN. Download to the device the Sonicwall app which connects me to the VPN but when running the project I have this error: java...
asked by 07.02.2018 / 03:35
1
answer

Problem when calling fragment methods from another

I tell you that I have been doing a project from a tabbed activity, where the tabs are based on fragments. In one of the fragments I have three CheckBox elements, and what I want to do is disable these CheckBox from another fragment. I have trie...
asked by 08.02.2018 / 21:19
0
answers

Close AlertDialog from another Activity

Hello Everyone! I have a very simple AlertDialog, only with a "Processing ..." message. There are no buttons, no title or anything. I show it when going from one Activity to another because the second one makes some queries to the BD and it take...
asked by 09.02.2018 / 21:16
0
answers

Extract elements from a ListView and use them in a Button (Android)

help, I must choose an element of a ListView and after that fill the EditText with the data that is requested and the button that calculates the operation, and display it in a TextView, but when running it does not execute it on the button, but...
asked by 05.02.2018 / 00:55
0
answers

How to change a Bipmap variable to String Base64 with Android Studio

img = (ImageView) findViewById (R.id.image); public void onActivityResult (int requestCode, int resultCode, Intent data) {         super.onActivityResult (requestCode, resultCode, data); if (resultCode == Activity.RESULT_OK) { B...
asked by 19.02.2018 / 23:43
0
answers

Press twice to make an imageButton work, sometimes

As the title says, I have a simple application, with a ImageButton in the center. The fact is that by pressing the button, sometimes it does not work the first time I press it, but it works the second time. The problem occurs randomly, bu...
asked by 08.02.2018 / 12:33
1
answer

Problem with library MPAndroidChart when trying to use a fragment method from my main activity

I tell you that I have been doing a project from a tabbed activity, and that each tab is based on a fragment, on one of the tabs I am showing three different graphs using the MPAndroidChart library. What I do is receive data by bluetooth with my...
asked by 08.02.2018 / 14:05