Questions tagged as 'android'

1
answer

Error: can not cast

I am implementing the Navigation Drawer in my application. Only I get an error when I click on any of my items. Here the code: public class MainActivityMenu extends AppCompatActivity { private String[] mNavigationDrawerItemTitles; private D...
asked by 25.07.2017 / 18:14
1
answer

How to open the file browser in an Android app?

Greetings I have an android application to download files, the problem is that I need to download the file there will be the system's default file browser in the folder where my file is downloaded so that the user can view your file. Th...
asked by 20.07.2017 / 15:14
1
answer

Put a switch in a viewHolder - Custom List in Android Studio

I have created an APP, a personalized list that is inflated with data from a WebService, as you see one of its fields is state, but it returns it in number (0,1,2) what I want to do is put it in "VACANTE", "EMPLOYED", "RESERVED" and that I achie...
asked by 18.07.2017 / 21:38
1
answer

Xamarin, The component 'System.ObjectModel' could not be found

When executing this code in xamarin, I get this warning and it does not let me compile the program, someone explain to me why this problem, thank you in advance. He does not let me compile that warning     
asked by 19.07.2017 / 23:07
3
answers

Video Html5 Does not work in Android Chrome

I want to show a video and it works well on a computer, but not on Android. Seek help but it did not work. //// Code <video poster="img/videoframe.jpg" class="fullscreen-bg__video" controls> <source src="ejemplo.mp4" type="vide...
asked by 10.07.2017 / 21:06
1
answer

ButtonView does not display correctly

In android studio I just inserted a ButtonView in a Relative layout. Although in the preview it looks good, when giving the play comes compressed: code: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:andro...
asked by 16.07.2017 / 11:04
2
answers

How to delete in android studio something drawn on the canvas

I would like to know if you can delete something drawn on the canvas. In this example I have 2 circles, circle 1 can move while circle2 is static. I would like that when the circles collide the circle2 disappears. Is it possible to do that? T...
asked by 16.07.2017 / 00:51
1
answer

How to open an instagram profile in a webView, for Android with Android Studio?

I am developing an exercise that implements a Navigation Drawer from the template that Android Studio has and I have been modifying it and placing functionalities to the menu buttons. One of my buttons directs to an Instagram profile, what I...
asked by 31.07.2017 / 15:09
1
answer

Close an application on android

I'm doing an application on android, and when I've reached an activity, I want the user to press the backward key and not go back to the previous screen but go back to the phone's initial menu. The application would be like this: when enterin...
asked by 14.07.2017 / 16:04
1
answer

Firebase. Prevent multiple connections from the same user

I am developing my first Android application using Android Studio as IDE and I use Firebase as a database. I need that if a user connects from one device, he can not connect to the same account from another. If someone could help me, I thank...
asked by 09.07.2017 / 04:22