Questions tagged as 'android-studio'

0
answers

FATAL EXCEPTION: main (https://github.com/luiscolqu/AppFunDrinks.git)

Code: <LinearLayout android:orientation="vertical" android:layout_centerInParent="true" android:layout_width="wrap_content" android:layout_height="wrap_content" > <ImageView android:src="@drawable/ic_l...
asked by 24.11.2017 / 10:20
1
answer

Edit the data of a specific user with firebase in android studio

Good I'm doing a job in firebase with android and I would like to know what the code would be like to edit a user's data; that is, the user enters with his account, sees his data and presses a button that says to edit data, be it his name, photo...
asked by 27.11.2017 / 21:59
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 / 02: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 / 23:12
1
answer

I have an rss app that opens the url in a webView at the beginning it loaded very well then it started to close

@Override protected void onCreate(Bundle savedInstanceState) { webView1.getSettings().setJavaScriptEnabled(true); webView1.getSettings().setBuiltInZoomControls(false); super.onCreate(savedInstanceState); setCo...
asked by 29.11.2017 / 07:08
0
answers

Change activity using the Gesture

public boolean onTouchEvent(MotionEvent touchevent){ switch ((touchevent.getAction())){ case MotionEvent.ACTION_DOWN: { x1=touchevent.getX(); break; } case MotionEvent.ACTION_UP:...
asked by 30.11.2017 / 16:04
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 / 20:16
0
answers

Validate Login consuming web service in android studio

I hope and you can help me. I am consuming web service from android studio and I want to validate users. The format in which the answer is returned to me in a Json My MainActivity is the following: public class MainActivity extends Fr...
asked by 21.11.2017 / 19:36
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 / 22: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 / 15:59