Questions tagged as 'android'

1
answer

ListView on Widget

I'm trying to learn how to make Widgets and I want to make one with a listView. In the normal Activity of the app I do the typical of: ListView lv = (ListView) findViewById(R.id.lv); AdapterLV adapter = new AdapterLV(getContext(),R.layout....
asked by 09.06.2017 / 11:21
0
answers

external usb camera android studio

Good I am trying to launch an intent to visualize an external camera through usb, the thing is that I do not hit the key, since everything related that I have found is on the mobile's own camera .. my question is if there is any way of throwing...
asked by 31.05.2017 / 14:02
2
answers

Change the default icon of NotificationCompat.Builder Android

I want to change the notification icon that appears by default. I have my NotificationCompat.Builder as well: Bitmap largeIcon = BitmapFactory.decodeResource(getResources(), R.drawable.largeicon); NotificationCompat.Builder mBuilder =...
asked by 24.05.2017 / 20:07
1
answer

See the camera duplicated by screen in real time

I have an application created and I need to know how to see on the screen of the mobile what is seen by the camera in duplicate form and in real time. At the moment the two screens are shown but one remains "frozen" and the second works correctl...
asked by 30.08.2017 / 13:20
2
answers

To have installed versions in android-studio above those of the project

I have installed in Android Studio the versions of Api Android 24 to 26, the topic that I have a project in hand that goes from 14 as a minimum to 24, the question is.    Should we select a specific API or does Android Studio take the   What...
asked by 31.08.2017 / 19:23
0
answers

Canvas image with on touch event

I ran into a problem. I need to draw an image (Drawable) on canvas and then be able to move it around the screen with an on touch. The image appears but I can not make it move. I have this code to make it move that worked well for me when I u...
asked by 26.05.2017 / 03:24
1
answer

Android Studio collision between circle and rectangle

I have a circle that I move with an onTouch and a static rectangle. I want to identify when the circle hits the rectangle but I can not do it. Can someone tell me what I'm doing wrong? Thank you. Game Class: public class Juego extends Vi...
asked by 02.06.2017 / 04:09
1
answer

The service never calls AsyncTask

I have a service that gets my location and it is updated every few seconds in "onLocationChanged" (that works well), that's when I have to call my AsyncTask repeatedly to send the coordinates and they arrive at my web service , but the problem i...
asked by 01.06.2017 / 19:24
1
answer

When scrolling in a RecyclerView the elements change position

I have a recyclerview in which I have some items, when I click on any of them, an imageview appears on the selected item, this part I already manage to do but my problem is that when I scroll down and go back up element that became visible is du...
asked by 01.06.2017 / 16:27
2
answers

progress dialog in asyntask

I have a class that uses an asyntask to store data in a database, everything works fine, until the moment where I want to add a progressdialog to wait for the insertion in the database, I leave my current code, I hope can you help me? public c...
asked by 29.05.2017 / 02:58