Questions tagged as 'android'

2
answers

How do I show toast or toast every time my list increases or decreases?

I have a list that increases constantly every so often, I want to show a Toast when my list increases or decreases. I was trying but I can not. This is my code: frutasList = new ArrayList<Datos>(); List<String> lables...
asked by 27.11.2017 / 01:38
1
answer

Problem in Android Studio, at the time of making the layout change with the raddio button the application closes on the cell phone

package com.example.marcelosegovia.servicioswebunid; import android.content.Intent; import android.os.AsyncTask; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v7.app.AppCompatActivity; import androi...
asked by 26.11.2017 / 22:12
1
answer

what do I have to keep in mind so as not to have problems when re-generating my applications in release mode for the store after formatting?

Good morning, I would like to ask you for some advice: I have not maintained my PC for more than two years and I would like to format it to clean it, what should I take into account to avoid having problems when re-generating my applications in...
asked by 26.12.2017 / 01:52
1
answer

How do I use WHERE with dates? SQLite

The question can surely sound very noob. But hey, it turns out that I want to execute a simple where with dates. I tried everything (until I changed the column from type DATE to type TEXT) and I still have no results. Cursor curs = admin.sele...
asked by 24.12.2017 / 21:09
1
answer

onActivityResult is not working and I can not solve it

this is my code: public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main);...
asked by 25.12.2017 / 17:39
0
answers

Android - How to draw with different styles?

Good morning, I'm already doing this tutorial a few days ago to learn how to make drawing apps. link link I have the following code that I am studying and trying to decipher its operation, and I have several doubts about it. 1) w...
asked by 27.01.2018 / 16:42
0
answers

How to end a fragment by changing to another fragment

I have a small application with a BottomNavigationView , I have added three buttons, with the first button shows a fragment _home, in this fragment there is a viewpager which aims to show a slide of images , a timer...
asked by 21.11.2017 / 19:16
1
answer

Set up a control within a parent LinearLayout

I have a LinearLayout parent that contains the property; android:gravity="center" with that all the controls within it will be centered, now I need some controls to be left for example. Any ideas? XML <TextView...
asked by 19.11.2017 / 21:50
0
answers

Pass list from String to JSON Object

I have a JSON list but it returns the following: {"product":"[[\"5a10de2d8bb9d715c320acd8\", [\"5a08d4495d0e296cab3b5637\"]]"} It is not a correct JSON. I have a String list where I store the values and then pass it as a parameter to th...
asked by 19.11.2017 / 14:59
1
answer

How to assign drawable image to an ImageView by code? [duplicate]

I try to assign an image of the drawable folder to an ImageView with the setImageResource method, but I do not know what the method takes to access R.drawable.image_name ImageView image; image.setImageResource("?");     
asked by 20.11.2017 / 00:56