Questions tagged as 'android'

1
answer

Modify a file using android studio

I need to modify the file that I show you below: I have tried several ways but I always get an error. I leave the following code to know what I'm failing. Thank you very much. try{ FileOutputStream archivo= new FileOutputStream("a...
asked by 19.11.2018 / 14:02
1
answer

Problem of Positioning Buttons in Android Studio dynamically created

I have a database and based on this I create buttons with a name, but I can not find a method that puts one button under another.  I know it can be done in the .xml with the layout_below="" but dynamically I do not see a method to position them...
asked by 12.11.2018 / 01:37
2
answers

Remove items from a Linear Layout Android Studio

I have a Linear Layout in Andorid Studio and I want that by pressing a button all the elements it contains are deleted. This is the code that I have, it deletes the elements correctly but when in the same app I reinsert other elements dynamicall...
asked by 03.11.2018 / 21:01
1
answer

Detect if a point on a map is inside a circle [closed]

Someone knows if it is possible to detect if a point with latitude and longitude is inside a circle. All this developed on Android.     
asked by 17.03.2016 / 23:55
1
answer

Attempt to read from field 'android.view.View android.support.v7.widget.RecyclerView $ ViewHolder.itemView' on a null object reference

Someone can help me with this error I do not know what it is about !!! The complete project is on github: link    E / AndroidRuntime: FATAL EXCEPTION: main       Process: com.example.austin.app_doc, PID: 14766       java.lang.NullPointer...
asked by 16.11.2018 / 20:21
2
answers

Call a callback to a fragment from an adapter

I hope you can help me, I have been looking for a solution for weeks and I only need this to finish a project. I want to call a method (UpdateItemcount) but I can not do it from my adapter. I have tried in several ways but it involves changing t...
asked by 30.10.2018 / 04:58
1
answer

Display Firebase data to a TextView Android Studio

I have a question I hope and help me I want to show a data of firebase in a textview on Android but I really have no idea how to do it, the specific data is like "Value "     
asked by 19.10.2018 / 16:10
1
answer

How to use TextWatcher with EditText

I am trying to implement an app that only accepts hexadecimal numbers and every 4 hexadecimal numbers must insert a space, I have managed to do this separately using TextWatcher separately, but I can not do both functions in a single TextWatcher...
asked by 09.11.2018 / 16:13
2
answers

Disable Android studio buttons

Good I need to disable the buttons of my application of a radio until this one executes the stream of music, and then that they work with normality since if I touch a button before initiating the stream it closes. Try with an if and boton.set...
asked by 13.10.2018 / 21:14
2
answers

Problem when updating android Studio

I have a problem with my Android Studio . I have version 1.3 and when I look for updates it tells me that it is already updated, any way to update it to 1.5.1?     
asked by 05.04.2016 / 01:28