Questions tagged as 'android'

1
answer

Pass Text other than Spinner to EditText

I have a Spinner and an EditText with me that what I select in the Spinner is passed to the EditText but I want another text to be passed, I give an example. I select "Aquarius (Jan. 20 - Feb. 18)" in my Spinner and in my EditText the same is...
asked by 22.01.2017 / 15:30
2
answers

Why is the error, in this fragment?

Good morning classmates, I am working with fragments because I am implementing a TabHost, but it seems that many things could fit when working with the fragments, I got the error that appears in the following image implement the fragmen...
asked by 22.03.2017 / 17:33
3
answers

Get EditText value in a Toast

I'm starting on android and I'm doing a program in which I have several EditText and when I click on a button I send a Toast with all the information of each of the Edit text, how can I send it the toast but with the information of each o...
asked by 29.04.2017 / 06:34
2
answers

Text handling in Java views

In Android there is a handling of the texts and the views relating them in "values / strings.xml". To facilitate translations and reuse of text, the question is: How to implement something similar in Java desktop projects? I already apprec...
asked by 02.05.2017 / 20:27
2
answers

Problem when using a service on Android

I have an application that sends the location from time to time, it occurred to me that it could be through a given service that can not be closed and has to keep working.    Manifest <uses-permission android:name="android.permission.AC...
asked by 20.03.2017 / 19:01
1
answer

The App crashed before giving permissions (Google Maps API)

I have put in my application for the API de Google (to use the Maps) and the following lines of code so that on all devices (including those above 6.0) can give permissions and that it works correctly. The code works and a sign comes out...
asked by 24.01.2017 / 17:04
4
answers

Apply onBackPressed in a fragment

How to apply onBackPressed() in a fragment ? It does not work the same as in an activity, then I explain exactly my case: I need to be in my fragment when I press the "back" button that all the android files bring by de...
asked by 22.01.2017 / 23:17
2
answers

Share object of a class Parcelable between Activities on Android

Some practical example of how it would be to share a class by implementing Parcelable to share an object between Activities? The class I have already defined public class Interstitial extends Banner implements Parcelable { ... The...
asked by 14.12.2016 / 19:38
1
answer

swap picture in customview list Android Studio

I'm getting sqlite data in the following way. public Cursor informacionPrincipal() { String whereClause = "estado = ?"; String[] whereArgs = new String[] {"1"}; SQLiteDatabase db = this.getReadableDatabase(); Cursor cursor = d...
asked by 19.12.2016 / 23:37
1
answer

Android: AsyncTask

In an AsyncTask you can put a condition where depends on the data you get perform the corresponding functions? Example, I have an AsyncTask that from the beginning sent an array but now I want to modify that AsyncTask but not only could the clas...
asked by 17.12.2016 / 18:02