Questions tagged as 'android'

2
answers

How to load an animated gif on Android

There are libraries to load animated gifs within an application, but what would be the proper way to load animated gifs without using third-party libraries or custom views? GifImageView GifView GifMovieView I had done loading ....
asked by 26.04.2018 / 23:15
1
answer

android activity call to fragment

I have an activity from which I upload a fragment or another by clicking on a notification. The code is as follows: public class Repeating_activity extends AppCompatActivity { @Override public void onCreate(@Nullable Bundle savedInstanceState)...
asked by 28.05.2018 / 13:47
1
answer

Select and Update in SQLite with Android

I try to save some data in SQLite database and then show it in an activity but for some reason I do something wrong. "BD" activity: public class BD extends SQLiteOpenHelper { String sqlCreate = "CREATE TABLE jugador (codigo INTEGER PRI...
asked by 21.04.2018 / 09:10
1
answer

Return TimePicker on OnClick (Android)

How can I return the time chosen by the user in a TimePicker? Calendar cal = Calendar.getInstance(); int minute = cal.get(Calendar.MINUTE); int hourD = cal.get(Calendar.HOUR_OF_DAY); btnHour.setOnClickListener(new View.OnClickListener() {...
asked by 07.05.2018 / 19:22
1
answer

Error in Realm: UnsupportedOperationException: Missing right-hand side of OR

I'm trying to make a query in realm. I have an array with the id that I want and I get this error: java.lang.UnsupportedOperationException: Missing right-hand side of OR When I make the RealmQuery match to RealmResult, I make this match si...
asked by 12.04.2018 / 18:31
2
answers

How to solve problem when showing URL that has a security certificate

When I show a url that has a security certificate (https: //), the view goes blank, but those that do not have a security certificate load without problem (http: //). Next the code that shows the page view with security certificate, I use a w...
asked by 14.08.2018 / 01:17
2
answers

How to use Timer and TimerTask tool

I want the program to check every second if the if condition is met, but I get some errors, I do not know what I'm doing wrong, this is the code: package alarmexample.example.com.alarmexample; import android.app.Activity; import androi...
asked by 04.04.2018 / 08:47
1
answer

Go from an activity to a fragment

I am creating an application in which the user starts from a fragment, he is redirected to an activity where he introduces a series of data and I want him to return to the fragment from which he left. But at the time of returning to the fragment...
asked by 05.04.2018 / 19:41
2
answers

Android: How to do different events by touching a button and keeping it pressed?

I am working on an android project, where I need a button to perform 2 different actions in certain circumstances: When you touch it (do not hold it down), do the event1. When you hold down for 5 seconds, do the event2. In the res / lay...
asked by 05.04.2018 / 15:10
1
answer

Can you recycle an activity to use it in various activities in Android Studio?

I'm doing a project of an app that will have a button to make a new record, the app has as main activity the listing of data in listview by clicking on it the previous activity appears but to update. SqlLite     
asked by 25.03.2018 / 03:15