My question is if, while a Fragment is being displayed, the Activity is still running in the background.
I know that when you press the onBackPressed() you call the Activity , but I do not know if it's a special cas...
I'm making a contact application for Android, I'm really new to this. I have a ListView in the MainActivity that should show the contacts or a message in case there are no contacts and a Floating Action Button, when pressed it take...
I have an activity where a series of fields are filled. In it I have a button where when I press it opens a recyclerView, which presents the data of a table. When selecting one of the items in the RecyclerView, I want the object to be passed to...
I have an application with a button that takes us from Activity A (Main) to Activity B, I would like that when I close activity B with an onBackPressed () the application A (Main) will detect that it is the activity again active and act by makin...
Good afternoon friends.
I have the following problem, I am making a simple application in which it is basically a counter, I have a textview and 2 buttons, one to add and another to subtract the value that is in textview but it hap...
I have the following code, which listens for the clicks that occurred in the elements of a RecyclerView to call another Activity according to the item pressed.
public void onItemClick(MainItem item) {
Intent i;
switch (it...
How to do so that when I click on a Item of a ListView in Android Studio I open a new activity.xml ?
This is the code I have:
package com.example.juan.pruebaprueba;
import android.support.v7.app.AppCompatActivity;
impo...
When starting the fragment and loading the recyclerview, it duplicates the items.
private void loadData() {
if (categoriaList.size() > 0)
categoriaList.clear();
miprogress.setVisibility(View.VISIBLE);
db.collection("cat...
I am currently working with a POS WEB that includes barcode scanning. For this the POS is in WebView , and when I click the button to read the barcode I code the url to send the activity of the bar code reader, since this is native...
I'm trying to make an Android app that hides both the notification bar and the action bar (back to the start, etc), so I had thought about creating a service that hides the action bar because the notification bar does not I have a problem but wh...