I have a fragment login, a fragment to register clients and depending on who enters the login we will collect a different ID for each user entered.
In an answer to this question I was recommended to create a class with a couple of get and set...
I want to access from the main activity a Button that is in a fragment by means of this code:
Button button = blankFragment.getView().findViewById(R.id.btnFragment);
but I get the following error:
Caused by: java.lang.NullPointerException...
I want to avoid that the AlertDialog.Builder is closed if an option is not selected, and probe removing the dialog.dismiss() but the same when I click on the button accept without having selected an option closes, I want the AlertDialog t...
I am new to Android Studio and some behaviors make me crazy like the following:
Until a few days ago in my project everything was fine when I found that when I entered any of the xml directories in the layout I found:
/* AUTO-GENERATED FILE...
When I add this part of the code the application is closed, the code works because I have it in another application which can be the error
WebView view = (WebView) this .findViewById (R.id.webView);
view.getSettings (). setJavaScri...
Today in the morning I went to start my project in react-native and I have not managed to compile it for android.
I get this fault.
"Gradle sync failed: Could not find any matches for com.android.tools.build:gradle:2.2.+ as not versions of...
I have an app with a side menu.
The doubt I have that every time I use one of the menu options opens a new window.
} else if (id == R.id.cine) {
Intent intent = new Intent(this.getApplication(), Cine.class);
startActivityForR...
I have this JSON
{
"id":2,
"group_id":1,
"default_billing":"2",
"default_shipping":"2",
"created_at":"2018-10-03 16:12:55",
"updated_at":"2018-10-03 16:13:00",
"created_in":"Default Store View",
"email":"henryar...
The problem is the following, in the activity I have a textView and a spinner what I'm looking for is that when you select an option in spinner the value of textView change.
This is the code
public class longitud...
I am using android studio 3.0 and the emulator with android 8.0 and 6.0 to get the location using the gps of the device.
Problem:
I get the location from the emulator, the corresponding onLocationChanged method is activated, but every 10 seco...