Questions tagged as 'android'

1
answer

Android MediaPlayer with Service, implement Pause

Goodbye everyone and thanks in advance, I'm creating a simple player in Android Studio that basically has three buttons, pause, play, stop. To be heard on the background I call the class MediaPlayer from a Service . Running and clos...
asked by 27.02.2018 / 12:31
1
answer

Google Places: Error: statuscode = places_api_key_invalid resolution = null

I have a project on Android that works with Google Places. In the app I have a button that should take me to the Google Places page, but it closes alone and gives me this error:    E / Places: Invalid API key. Check that is in the element of...
asked by 28.02.2018 / 15:55
1
answer

OnKey does not work with mobile keys

I have this code: nuevo.setOnKeyListener(new View.OnKeyListener() { @Override public boolean onKey(View v, int keyCode, KeyEvent event) { if((event.getAction()==KeyEvent.ACTION_DOWN)&&(keyCode==KeyEvent.K...
asked by 27.12.2017 / 21:46
1
answer

problem with the bluethooth socket

Hi, I'm trying to send data from an android phone to an arduino via an hc-05 when I make the first send after restarting the arduino the transmission works correctly but the following transmissions generate the following log:    02-12 20:...
asked by 12.02.2018 / 19:33
1
answer

The camera stops on some devices

I have created an app that opens camera and gallery, the detail is that it works on some devices, on another the app definitely stops. private void openCamera() { File file = new File(Environment.getExternalStorageDirectory(), MEDIA_DIRECT...
asked by 23.01.2018 / 03:34
2
answers

Display SqlLite records on Android without Android Device Monitor

I would like to know if someone could help me with the following question. There is some way to see the records of a database created in SQLite without the Android Device Monitor problem that in the new version of android 3.1 that...
asked by 27.03.2018 / 23:26
2
answers

How to remove items from a list

I have a class that creates circles every time I touch the screen and when it meets a certain condition I want to eliminate them from the list. How can I do? Thank you. public class Juego extends SurfaceView implements View.OnTouchListener...
asked by 04.03.2018 / 13:11
1
answer

How to prevent the text of a ListView from leaving the frame?

basically my problem is described in the following image. What would be his would be that each element of the ListView was according to a fixed size, and in the case that it will surpass that it was written below. Step part of th...
asked by 04.05.2017 / 10:17
2
answers

How to do so that when I click on an Item in a listview in Android studio I opened a new activity

How to do so that when I click on a Item of a ListView in Android Studio I open a new activity.xml ? This is the code I have: package com.example.juan.pruebaprueba; import android.support.v7.app.AppCompatActivity; impo...
asked by 18.04.2017 / 15:02
1
answer

Problem # 17 layout_height

This error is already looking for it and all the solutions do not work for me, I do not understand what the problem is: Binary XML file line # 17: You must supply to layout_height attribute. I summarize, I have a BaseActivity class where I ha...
asked by 10.05.2017 / 20:57