Questions tagged as 'android'

0
answers

NetworkInfo does not work

I'm trying to identify when the user is not connected to the internet in an app and I find that, when I try to use NetworkInfo for it, the app stops working. It does not give any compilation error, but I know that or what gives the failure is wh...
asked by 12.07.2017 / 13:55
0
answers

Rename image in eclipse (Android)

I'm doing an app in Android and I need to rename a selected image of the gallery with a specific name and I can not find anything that I can find useful. My idea was to take the name of the ImageView, I do not know if I should take it...
asked by 12.07.2017 / 08:47
1
answer

Convert JsonArray to JAVA POJO android

With retrofit I use a JsonArray, I want to get elements from the Json Objects list this is my Json { "Codigo": 0, "FechaHora": "2017-07-11T11:23:11", "Mensaje": "Ok", "Data": [ [ { "Id": 1, "Nombre": "Hum...
asked by 12.07.2017 / 03:05
0
answers

viewpager inside another viewpager and refer to the main activity

private void setupViewPager(ViewPager viewPager) { Gson gson = new Gson(); ViewPagerAdapter adapter = new ViewPagerAdapter(getChildFragmentManager()); Type type = new TypeToken<ArrayList<BrolierChickDetail>>()...
asked by 27.06.2017 / 20:05
2
answers

Open file always opens with PDF

Hi guys and girls (of course) I have this method to open a file public static void openFile(String filePath, Activity activity) { try { Intent intent = new Intent(); intent.setAction(Intent.ACTION_VIEW); intent.s...
asked by 27.06.2017 / 21:39
1
answer

Problem calling element with findViewById

Dear, I have a function called Reproductor() , the purpose of this is to use the class MediaPlayer , both to play and to give pause. import android.app.Activity; import android.media.AudioManager; import android.media.MediaPlayer;...
asked by 04.07.2017 / 18:02
1
answer

Options 1 to 10 in a recyclerView

I am asking a rating question with options from 1 to 10 but I have a problem in the "setOnClickListener ()" event to set the background if it is selected or deselected by the position that the onBindViewHolder () method of the RecyclerAdapter gi...
asked by 04.07.2017 / 21:57
1
answer

Get links of all the images stored in FIREBASE

I'm making an application with Android Studio and FireBase. The structure of the database in FireBase would be something like this: <code> "usuario_1":{ "id":"Gasdj21jk1231Hsd13", "datosusuario":{ "nombre":"Jose...
asked by 28.06.2017 / 16:33
2
answers

Firebase / Android - Wait for all the thread for a Handle

I have the following code: public synchronized void next(final RoomListQueryResultHandler handler) { this.setLoading(true); roomList = new ArrayList<Room>(); this.database.child("members").child(this.mUser.getUid...
asked by 28.06.2017 / 00:32
1
answer

Twitter provider in the AuthUI class of Firebase Android

Hi, I'm implementing authentication with Firebase UI in my app. I try to call the Twitter provider but I am noticing that my AuthUI class does not contain this provider, it only contains: public static final String EMAIL_PROVIDER = "email"; /...
asked by 28.06.2017 / 10:37