Questions tagged as 'android-studio'

0
answers

Compress image before uploading it to the server

I have an application in development where I upload an image to an external server. My problem is: if the user has a cell phone with a good resolution camera, the images have a large size ... and they are not shown in the ImageView, nor are t...
asked by 02.06.2017 / 17:48
2
answers

To have installed versions in android-studio above those of the project

I have installed in Android Studio the versions of Api Android 24 to 26, the topic that I have a project in hand that goes from 14 as a minimum to 24, the question is.    Should we select a specific API or does Android Studio take the   What...
asked by 31.08.2017 / 19:23
2
answers

How can I handle this sqlite error?

I have a class% co_of% parent: public class DB extends SQLiteOpenHelper { private static final int VERSION_BASEDATOS = 1; private static final String NOMBRE_BASEDATOS = "DB.db"; private Context context; public DataExpoAuto(Context context) {...
asked by 27.06.2017 / 22:26
0
answers

Canvas image with on touch event

I ran into a problem. I need to draw an image (Drawable) on canvas and then be able to move it around the screen with an on touch. The image appears but I can not make it move. I have this code to make it move that worked well for me when I u...
asked by 26.05.2017 / 03:24
1
answer

Android Studio collision between circle and rectangle

I have a circle that I move with an onTouch and a static rectangle. I want to identify when the circle hits the rectangle but I can not do it. Can someone tell me what I'm doing wrong? Thank you. Game Class: public class Juego extends Vi...
asked by 02.06.2017 / 04:09
1
answer

Implement OnClick in Image

I'm doing a project (a memory game) with this tutorial link I'm doing it a little different  Create a menu_activity that says the name of the game and an image with the Play icon. This brings us to the second activity, where is the problem I h...
asked by 23.05.2017 / 01:28
1
answer

problem when changing a pc android project

A hard drive bothered me and I managed to copy the miracle project file. I have put it on a new hard drive, installing android studio again and I take the project but it gives me errors that I can not fix:    Gradle DSL method not found: '...
asked by 10.05.2017 / 20:29
2
answers

error code 400 with Volley when sending data with basic Authorization

I'm trying to send data to a WepApi service, specifically to a POST method. The method I use to send the data is: private void enviaDatos() { EditText txtAsunto = (EditText) viewPrincipal.findViewById(R.id.asunto); // Store values...
asked by 30.05.2017 / 17:12
1
answer

Problems with rss reader

Why do I get this error? java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText (java.lang.CharSequence)' on a null object reference I paste the rss reader code: public class MainActivity exte...
asked by 10.05.2017 / 22:33
1
answer

move to a fragmet using a bottonbar

the problem is the next I have an activiy and in that activity I have a buttonBar , when I try to pass to fragment by clicking a buttonBar button gives me an error. This is the code public class ElectricalCalculators extend...
asked by 21.05.2017 / 04:16