Questions tagged as 'android'

1
answer

Implement a Snackbar inside an Asynctask

I have a Asynctask that basically performs the task of Login and when the credentials are correct and pass the following Activity mustre a message of type Snackbar I share the method where I think it should go ... protected...
asked by 26.12.2016 / 18:07
2
answers

Ask permission the first time I try to make the call (Android 6+)

When I click on the ImageButton for the first time to perform the function of making the call, it does not do anything, I have to go to settings / applications / ... and manually activate the call permission. How could I ask permission for the f...
asked by 20.12.2016 / 01:00
1
answer

How to configure development environments on Android and iOS? [closed]

I have 4 environments in which developers should try Development Tests Dummy Production Production I need developers to be able to test in different environments and each environment is the same as a different domain and server How...
asked by 08.12.2016 / 19:49
1
answer

Backup and Restore Sqlite to the root

The thing is that in the previous version of my application, I was backing up and restoring my data stored in a sqlite database. This copy and backup was done in sdcard without any problem with File sdcard = Environment.getExternalStor...
asked by 11.11.2016 / 19:45
1
answer

Error: No resource found that matches the given name (at 'style' with value '?) android: attr

I want to apply a template (Theme) created by me, and the error is when I relate a textview with an attribute pointer that is used in the Theme <TextView android:id="@+id/textView1" style="?android:attr/textTitle" an...
asked by 10.11.2016 / 13:35
2
answers

The threads do not work on android

I'm doing an app that is increasing the seconds, later I'll add other functions, but for the moment, I mark an error at the moment that the threads start working marks me this error.    Only the original thread that created a view of the hier...
asked by 08.11.2016 / 04:48
1
answer

Refresh clock

import android.annotation.TargetApi; import android.icu.util.Calendar; import android.os.Build; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.widget.Button; import android.widget.TextView; import java....
asked by 24.10.2016 / 15:39
1
answer

how to build this custom view?

How can I build this view, if theoretically every buton is an image, but it is clear that the default images are square, so it would not work, does it occur to them how could the view be created?     
asked by 26.10.2016 / 05:44
2
answers

Resize icons / images according to screen resolution in Android

I have a main screen in my application that shows a DashBoard. In it there is a container where I have 6 icons, which are buttons to access other activities. I need the margins between the edge of the container and the icons to be 25dp,...
asked by 14.09.2016 / 15:25
2
answers

how can I control the volume with the android screen?

Hello, my friends, programmers, how are you, I hope very well I have a problem with an app I'm doing for the University which has to control the volume by means of the screen, that is to say that if I press the screen up or down the volume of...
asked by 18.09.2016 / 21:31