Questions tagged as 'android'

1
answer

How to resize background image in Android programmatically?

I am placing a background image in an Activity obtained from the drawable folder, this is the code I implemented for that action: ConstraintLayout constraintLayout = (ConstraintLayout)findViewById(R.id.principal); // Obtener la imagen d...
asked by 27.04.2018 / 21:10
1
answer

ImageView with Android Java Notification Counter

I would like to know if there is any control, library or if I have to do it by hand, to be able to implement a counter in an imageview, what I mean is, I need to replicate something like this I refer to the image with a red circle that...
asked by 19.02.2018 / 20:44
2
answers

android studio error Unable to locate adb

I am starting the development of app with android studio with jre and jvm that I copy below. Android Studio 3.2.1 Build #AI-181.5540.7.32.5056338, built on October 8, 2018 JRE: 1.8.0_152-release-1136-b06 amd64 JVM: OpenJDK 64-Bit Server VM by...
asked by 19.10.2018 / 21:36
1
answer

Drawable image in java object

How can I introduce a drawable element (in this case an image) into a java object? In this case here: public Receta(String nombre, String elaboracion, String dificultad, String ingredientes, Drawable imagen) { this.nombre = nombre;...
asked by 26.10.2018 / 12:44
2
answers

How to send various data from android to php

Good morning I am doing an application in android studio I am using php to make my connection with the database MYSQL . But when I make a query with a single argument to my database it works but I make a modification to send two arguments an...
asked by 17.04.2018 / 18:11
3
answers

Application Title seen in the TOOLBAR

Currently I have the problem that the name of the application <string name="app_name">Banred</string> I get it in the Toolbar of the main menu and I really do not want the name to be seen My toolbar is...
asked by 21.12.2017 / 19:12
1
answer

implement performClick on android?

when I use the setOnTouchListener on a button, when I overwrite the onTouch method it tells me this    Custom View ImageView has setOnTouchListener enabled but does not replace performClick If a view that overrides onTouchEvent or uses an...
asked by 06.12.2017 / 05:04
2
answers

Store data in an ArrayList

Given the following code: int x=0; int y=0; ArrayList<Point> casilla = new ArrayList<>(); Point punto = new Point(x, y); //Plantilla for(int n=0; n<20; n++){ for(int m=0; m<20; m++) {...
asked by 06.12.2017 / 13:03
2
answers

MultiVentana Support for the App on Samsung's TouchWiz (Android)

Today I have been moving my apps on a Samsung tab S2 device that has multiventana, but when I try to get my app to see a part of the screen I get a message, the app does not support multiventana. What directives should be put in And...
asked by 03.09.2016 / 21:08
1
answer

Change KEYBOARD LANGUAGE in android studio

Dearly I am currently encountering some problems at the time of some classes that vary according to the keyboard that the phone has set, there is some way through the Android studio SDK to change the default keyboard of the phone, at least while...
asked by 07.11.2017 / 14:37