Questions tagged as 'android'

2
answers

How to clean a field from a textView?

Hello in the code I am using a EditText and several TextView , the point is that I am trying that when the value of EditText this empty clean the fields of TextView . That is the code with which I am trying it Text...
asked by 22.04.2017 / 02:14
1
answer

Problem when using the AudioManager if other app open

Good morning everyone, I have an application that plays a radio in streaming through a service. The service works perfectly, I can close the application and continue listening to the radio. Even if they call me on the phone, the radio stops a...
asked by 21.12.2016 / 12:41
2
answers

Button to execute an action while pressing it for a long time

Dear I need a button while pressed to execute an action X example While I press to increase a counter and when I stop pressing, I'll stop     
asked by 23.04.2017 / 20:20
2
answers

how to initialize a string [] with a string-array of Android resources?

That wave friends, I would like to know about the question, what happens is that I have this: String[] data = {"Ejemplo 1", "Ejemplo 2", "Ejemplo 3", "Ejemplo 4"}; and I have this string arrangement in my resources: <string-array name=...
asked by 02.05.2017 / 23:22
2
answers

Paint with random colors

I have the following onDraw : public void onDraw(Canvas canvas) { paint = new Paint(); paint.setColor(Color.RED); canvas.drawRect(rectangulo,paint); } I would like to know how to implement so that it was not just Color....
asked by 05.05.2017 / 10:06
1
answer

Synchronize a ViewPager with a BottomNavigationView on Android

I have a ViewPager and a BottomNavigationView that when selecting an element it is located to the corresponding page within the ViewPager , but if I change the page the item BottomNavigationView does not change. The...
asked by 27.04.2017 / 21:54
1
answer

Notice to close app

I am working with an app on AndroidStudio. What code could I implement for when the back is called to leave the app to let me know if I want to leave it or not?     
asked by 10.04.2017 / 10:16
1
answer

Problem with RecyclerView on Android

I am trying to implement a list with a RecyclerView whose adapter is powered by a cursor. I do not understand why when executing the app, the list shows only the first element although in the table of the database I have 7 records. I chec...
asked by 17.09.2016 / 14:43
1
answer

Open activity from notification created by second application

I have two applications on android one of which generates a notification in the notification bar when an X event occurs, it could be a query to a database, when connecting the device to the current, etc. I would like to know if there is a way...
asked by 30.08.2016 / 21:33
2
answers

Share text to app inventor

I have been researching, because I need to share text to an app created with inventor app. I do not need a button to have my app and it can share, this is how it is done. I need the opposite (for example, my app appears in chrome) and when...
asked by 31.08.2016 / 08:24