Questions tagged as 'android'

1
answer

SnackBar with Action Button not aligned to text

Hello, I would like to know why my SnackBar does not get the text aligned along with the ActionButton , this happens only when the text is too long. I am putting a sample image. Do you know how I can get SnackBar to keep your content...
asked by 18.11.2015 / 01:40
1
answer

How to create an Android application that uses native mobile software such as camera, gallery, etc. [closed]

How do I use my phone features? For example: I create an app, that when the user clicks "Such" button, open the camera of the mobile ... or the gallery ... or alarm clock. I wanted to learn this, but I do not even know what to search for.     
asked by 18.11.2015 / 21:52
1
answer

onClick on Android

I made a EditText with the text = 100, attribute but when I use my onClick() function, which is to do the following text - 50 calculation, when I click the button and execute the routine my application closes. / p> Follow...
asked by 18.01.2016 / 22:42
1
answer

When I use a "finish ()" to terminate the activity does Android use any end-of-activity animation by default?

Because I would like to put a different animation, and your I put an animation before putting finish() executes the animation and then the finish with the animation of it.     
asked by 29.10.2015 / 18:44
1
answer

Media Player, stop sound before playing another

Good morning, I'm with a project so that when a button is pressed it performs a pre determined sound but if I press a button dps the other, the two sounds are playing, I tried for an if in case something is playing it pause and start the other...
asked by 01.11.2015 / 21:27
1
answer

Parameters via xml for custom ImageView

I have% custom%, which will work as ImageView . On the screen, I will have several of this item, but different colors. I wonder if it is possible to pass a color parameter in the xml declaration. Example: <com.example.utils.S...
asked by 28.10.2015 / 12:41
1
answer

Random number list without repeating Android

I have an ArrayList with N items inside and I need to group them randomly into 2 sets of X items and the rest into another set. However, none of them can be repeated. For example: my ArrayList has 20 items added and I want to split it into 2...
asked by 06.02.2016 / 03:21
1
answer

What do you do to make sure the service is not terminated by Android?

I have a service that runs in the background to pick up the location and go recording in a text. The service starts along with android through BroadcastReceiver. It works perfectly, but after about 12 hours of service running, the android ends a...
asked by 04.03.2016 / 02:11
1
answer

MVC is feasible and recommended on Android projects? [closed]

I'm working on a mobile project where you need to migrate a legacy application that was developed for Windows Mobile 6.1 , Android strong>. This application was developed using C # , with 3-tier architecture, divided into View , Business...
asked by 01.03.2016 / 16:36
1
answer

Check if simulated Locations are active

I'm developing an application that will use GPS to log a route. There are apps ( an example ) that simulate your location. This is done through a development option: I wonder if it is possible to know if this option is active?...
asked by 03.03.2016 / 21:38