I'm trying to identify when the user is not connected to the internet in an app and I find that, when I try to use NetworkInfo for it, the app stops working. It does not give any compilation error, but I know that or what gives the failure is wh...
I'm doing an app in Android and I need to rename a selected image of the gallery with a specific name and I can not find anything that I can find useful.
My idea was to take the name of the ImageView, I do not know if I should take it...
With retrofit I use a JsonArray, I want to get elements from the Json Objects list
this is my Json
{
"Codigo": 0,
"FechaHora": "2017-07-11T11:23:11",
"Mensaje": "Ok",
"Data": [
[
{
"Id": 1,
"Nombre": "Hum...
private void setupViewPager(ViewPager viewPager) {
Gson gson = new Gson();
ViewPagerAdapter adapter = new ViewPagerAdapter(getChildFragmentManager());
Type type = new TypeToken<ArrayList<BrolierChickDetail>>()...
Hi guys and girls (of course)
I have this method to open a file
public static void openFile(String filePath, Activity activity) {
try {
Intent intent = new Intent();
intent.setAction(Intent.ACTION_VIEW);
intent.s...
Dear, I have a function called Reproductor() , the purpose of this is to use the class MediaPlayer , both to play and to give pause.
import android.app.Activity;
import android.media.AudioManager;
import android.media.MediaPlayer;...
I am asking a rating question with options from 1 to 10 but I have a problem in the "setOnClickListener ()" event to set the background if it is selected or deselected by the position that the onBindViewHolder () method of the RecyclerAdapter gi...
I'm making an application with Android Studio and FireBase.
The structure of the database in FireBase would be something like this:
<code>
"usuario_1":{
"id":"Gasdj21jk1231Hsd13",
"datosusuario":{
"nombre":"Jose...
I have the following code:
public synchronized void next(final RoomListQueryResultHandler handler) {
this.setLoading(true);
roomList = new ArrayList<Room>();
this.database.child("members").child(this.mUser.getUid...
Hi, I'm implementing authentication with Firebase UI in my app.
I try to call the Twitter provider but I am noticing that my AuthUI class does not contain this provider, it only contains:
public static final String EMAIL_PROVIDER = "email";
/...