All Questions

2
answers

Load an Image from the Android Gallery

I click on the image and it lets me select one from the gallery, but when I select it, it does not change. I know I'm missing part of the code, could someone help me with it? Thanks! MainActivity: public class MainActivity extends AppCompat...
asked on 30.12.2016 / 17:54
3
answers

Differences in how to get the context in Android

What are the essential differences between the methods getContext() , getApplicationContext() , getBaseContext() , and this to get the context in Android ? I know it can be a very trivial or very broad question,...
asked on 05.12.2016 / 13:24
3
answers

Scale background image maintaining appearance

I am creating an adaptive image gallery where thumbnails of the image are displayed in squares. For this I put the background images using background-image and so that the image occupies the whole square, I use background-size:cover...
asked on 13.05.2016 / 06:24
2
answers

Verification of types in Java

I need to know if Java has a constructor that can not do data type verification statically and what it does, if it does the verification dynamically or leaves the construction without verification during execution.     
asked on 18.06.2016 / 00:13
2
answers

close Android APP from a class

I created a class public class MyCountDownTimer extends CountDownTimer { Activity activity; public MyCountDownTimer(long startTime, long interval,Activity m_activity) { super(startTime, interval); activity = m_activity;...
asked on 03.05.2016 / 18:38
2
answers

I would like to be able to return the cycle but including this code the while equation (age0)

I want to make this code when it is greater than 25 and less than zero (negative numbers) I return to the beginning of the program "write age" #include <iostream> #include <conio.h> using namespace std; main() { int edad; d...
asked on 19.11.2016 / 00:38
2
answers

Close and go to an activity after the user's idle time [closed]

I want to make a method (service, alarm, etc) that I can calculate after x user idle time with the app , close the current activity and send you to the initial activity (login) Thank you very much     
asked on 27.04.2016 / 18:19
3
answers

I do not recognize pattern in HTML5 input

I have a problem in a form where I collect data with input and I want it to only collect digits instead of letters. I am using an IndexedDb database and I keep it in the same as null because of the type of object store that I have created...
asked on 22.06.2016 / 20:24
3
answers

Call a stored procedure from the Entity Framework

I'm using stored procedure, SQL Server, EF (code first). I have a stored procedure created in the database and I want to call it from my code. Stored procedure: CREATE PROCEDURE uspCreateLocal -- Add the parameters for the stored procedure...
asked on 07.01.2017 / 18:41
2
answers

I can not clean the keyboard buffer in C

In my code, I request a series of data from the user using the gets() function. The problem is that at a certain point in the program when requesting a data with gets() it simply jumps to the next request and leaves the variable bl...
asked on 14.07.2016 / 03:01