Questions tagged as 'android'

1
answer

Add polyline to onMarkerClickListener ()

I have a program where I need to add a polyline when clicking on a bookmark and if I click a different bookmark the previous one is deleted and I add the new one. Until now add the line and delete the previous one and add the new one,...
asked by 16.06.2017 / 01:56
1
answer

FileNotFoundException when using http: // user: [email protected]

I am trying to access a file that I have on a server, which is protected with .htpasswd . And when trying to access from my app in android I get the following exception:    java.io.FileNotFoundException:    link The code I u...
asked by 20.06.2017 / 10:29
1
answer

Casting of google chrome in android app

I have found code to add the Casting functionality of google Chromecast to my app, but I find certain imports that do not work, among these: import com.google.android.gms.cast.CastDevice; import com.google.android.gms.cast.CastMediaCont...
asked by 28.06.2017 / 05:56
1
answer

Verify that mail was sent correctly using JAVA mail

@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Texto = (EditText)findViewById(R.id.mensaje); Enviar = (Button)findViewById(R.id.enviar)...
asked by 29.07.2017 / 20:24
1
answer

Insert SQL values in Android Spinner

I select a table and it returns a complete row. I put that row into an object. My intention is to collect the value and inflate a spinner so that if it finds for example in the select: "8" I generate a spinner with values from 1 to 8. I have fou...
asked by 04.06.2017 / 17:00
1
answer

GLIDE Caused by: java.lang.OutOfMemoryError: Failed to allocate to 96000012 byte allocation with 15189568 free bytes and 74MB until OOM on Android

I am creating a giant image viewer, when I try to download a 15MB image here to see her As an image viewer I use Subsampling Scale Image View which is optimized for displaying large images. final SubsamplingScaleImageView imageView = (S...
asked by 04.06.2017 / 16:07
1
answer

Error ClassNotFoundException in the return

The error I find is using a class that inherits from AsyncTask on Android. Inside I use an object of my class User, it communicates with a server, it handles the data ... until I do the return and I skip this exception. The class is imported...
asked by 11.06.2017 / 17:21
1
answer

I check CheckBox and TextView together, but it does not work correctly

I know there are many questions about checking if CheckBox is selected or if TextView is empty, but I try to do a check of both together and do not do it, what I have done is the following. btn1.setOnClickListener(new View.OnClic...
asked by 03.06.2017 / 14:09
1
answer

.showAtLocation on Android

I found this tutorial in android which allows to show a popup window watch tutorial But what I do is show my popupwindow without pressing any button, this is what I have: private PopupWindow popupWindow; @Override public void onCreate...
asked by 05.06.2017 / 19:13
1
answer

Pass value per PagerAdapter builder

I have several activities that call the same PagerAdapter to have a slidable layout in each of the activities that I call it. My intention is to pass a parameter to others that already happened. I added an element of type int to the constructor...
asked by 27.05.2017 / 19:12