Questions tagged as 'android'

2
answers

problem of objects on top of each other in Android Studio

I'm learning to create android apps, but face-to-face I get an error when I test the app on my phone, and text gets on top of the other, or any object I add. inAndroidstudiolookslikethis: xml:<?xmlversion="1.0" encoding="utf-8"?> <a...
asked by 04.09.2017 / 23:33
1
answer

How do I get the ID of a user in a ListView and use it as a variable in another Activity?

I'm doing my TCC and I'm having a hard time getting the ID of some ListView user and using it in another Activity (The intention is that when the user holds the click on someone else on the list, popup ) asking if he wants to send a friend reque...
asked by 01.09.2017 / 03:51
1
answer

Error inflating class android.support.design.widget.NavigationView Android NavigationView

Good evening everyone!    I'm trying to create an application with navigationView pwla the first time and I'm encountering problems at the time of the setContentView call (R.layout.activity_main); the application consists of the activity main ca...
asked by 31.08.2017 / 03:25
1
answer

RecyclerView ScrollListener - Animate view visibility

I want a view containing a few buttons to disappear and appear when I slide recycleview as in the coordinator layout: butthisiscurrentlyso,andithasnoanimation,justdisappearandappears: Currentcode:rv_noticas.addOnScrollListener(newRecyclerVie...
asked by 10.01.2018 / 15:49
1
answer

How to share the contents of a listiview?

Hello, I have a question. I am making an APP, in which it has a listview that has texts and an image. I'd like to know how I can share the content that the person clicked on. Here is my code: // DECLARANDO COMPONENTES private ListView...
asked by 14.09.2017 / 16:58
1
answer

Using database coordinates in google maps API

I'm trying to use in Google Maps the data that is in a sqlite database, but I'm not able to access the loader's return. I used the same logic to connect using the database number and it worked, but for the map, it only returns 0,0 coordin...
asked by 09.08.2017 / 15:47
2
answers

Because I'm getting the error: android.content.res.Resources $ NotFoundException: Resource ID # 0x0

Can anyone explain what the error in this code is? I honestly do not understand why I'm getting this error! Java: public class Chose_curso extends AppCompatActivity { private TextView pickLetraText; private ListView cursoList;...
asked by 16.08.2017 / 17:33
1
answer

Fragments work as an activity? [duplicate]

I have seen that to continue using a Navigation Drawer, do I have to use Fragments, or can I use activity? or is there no difference between the two?     
asked by 12.10.2017 / 20:37
2
answers

How to calculate two sums with just one button?

I would like to know how I can do to calculate with just one button two different sums, as I did in the example in the image. I have the code this way, but only with 2 numbers. How do I make another calculation at the same time with the same...
asked by 11.10.2017 / 02:39
1
answer

Android: Use component id as key in Array

I have an Android app that has 7 imageButtons , I need to store the captured images in a List Bitmap , I'm trying to set the array indexes as the id > imageButtons , however the application crashes when the procedure is performed. public vo...
asked by 10.10.2017 / 15:31