Questions tagged as 'android-studio'

2
answers

Error trying to open a project in Android Studio

Pass my project on a usb to transport it, but I try to open it on my mac and I get the following error:    android studio will use this android sdk instead How can I solve this?     
asked by 19.04.2018 / 00:12
1
answer

How to create a widget from an activity?

I already have the widget, add it in the manifest, the interface and the functionality of it What I want is that through a button in an activty, the widget is put, this so that the user can put and / or remove the widget from an activity...
asked by 06.04.2018 / 00:39
1
answer

info window android studio repeated last marker

I'm just learning and I'm doing an app in android studio where a map with different markers should come out, and each one should display an infowindow with different information (text and image) .. but for some error of mine only shows me the la...
asked by 02.05.2018 / 02:21
2
answers

How to use the variable of one method in another method?

I want to use the previously assigned latitude and longitude variables in the onLocationChanged (Location location) method and use them in the method Method () Method where I want to get latitude and longitude @Override public void onLocati...
asked by 02.05.2018 / 17:51
1
answer

DOUBT Android-Do boolean functions

I'm doing a function and I want you to return true or false. I want my program to return true when the matrix [pos] has a number greater than 27 and false when it does not. You could help me, and explain to me how I can get true or false. publ...
asked by 15.04.2018 / 20:48
0
answers

FATAL EXCEPTION: main java.lang.IndexOutOfBoundsException: 6, 1 in TextView (?)

I'm getting an error that I do not know where to take. The program is for fun, a simulator of pokemon battles, and I want to show in a textview the turn-based battle (turn by turn, not the whole battle at the end). The error is: E/AndroidRu...
asked by 28.03.2018 / 01:00
1
answer

Display a DialogFragment from an Adapter RecyclerView

I have a problem trying to show a Dialogfragment from an Adapter. Normally I have done this by calling parent.Context of inflater , as follows: public class MiAdapter extends RecyclerView.Adapter<MiAdapter.adapterHolder>{...
asked by 07.04.2018 / 01:45
1
answer

Add Json data and save it to Android Studio variable

Sorry for the question, it should be simple but I could not make this code work: I get this Json from here: link I use it so that a function draws a polylinea on my map, the function is this: public class DirectionsJSONParser {...
asked by 29.03.2018 / 01:12
1
answer

AsyncHttpClient does not run onSucces or onFailure

I execute the DNITaxistes method, but when I make the call, I do not execute the code of the onSuccess and neither the one of the onFailure , it directly exits the method. The searchTaxist method executes another asynchronous call....
asked by 29.05.2018 / 00:27
0
answers

RUT format in TExtview

I have the following Login class. public class LoginActivity extends ProgressBarActivity implements LoginActivityContract.View { private final static String TAG = LoginActivity.class.getSimpleName(); LoginActivityPresenter presenter; LoginAc...
asked by 27.03.2018 / 06:13