Questions tagged as 'java'

2
answers

How do I go through a list and add to another list in java elements smaller than the one I receive per parameter

I want to know how I go through the list and I add the conditions to then add the items to another list copy the image of the exercise because I do not know how to ask otherwise!     
asked by 05.08.2018 / 22:58
1
answer

Image of the marker too big Google Maps

I'm customizing a map marker but when loading the map it shows me in a very exaggerated size and not in the size of the marker, try to try placing a vector, but it showed me the following error. com.google.maps.api.android.lib6.common.apiexce...
asked by 08.08.2018 / 22:54
2
answers

Load JLabel from MySQL

I am working in Java and I need to place a jLabel that obtains information from the Database, in this case it is a "Registration Number" every time that the Form will be done, you must bring the name and upload it in said Jlabel. I have tried se...
asked by 10.08.2018 / 17:30
1
answer

E / MediaPlayer: error (1, -1010) Error trying to open a SplashActivity with a video

Here my code: public class SplashActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Set portrait orientation setRequestedOrientatio...
asked by 20.06.2018 / 20:31
1
answer

How can I calculate the date of a publication? in a common format

The java language The ideas is simple I have an now_date and I have pub_date I want to calculate the time between it and put the information in the following way: if it's a few minutes "6 min ago" if it's a few hours "6 hours ago" if it...
asked by 27.06.2018 / 23:53
1
answer

Validate content of an image in Base64

in which way I can validate that the content of a String of a base64 image is really that of an image and not an .exe with a different format ....     
asked by 22.06.2018 / 16:09
2
answers

error when playing selected audio

I am trying to make a small app to practice that consists of a start activity and an activity to select an audio and play it. To select the audio I use: btnCambiarAudio.setOnClickListener(new View.OnClickListener() { @Override...
asked by 04.07.2018 / 22:19
1
answer

Show possible icons in a Toolbar on Android

I have two ToolBars in an app, the secondary one that is shown below the main ActionBar in its totality there are 10 buttons, I want to show as much as the width allows. The items are defined as ifRoom , which in principle...
asked by 18.06.2016 / 23:18
1
answer

Find the total to pay using displayTag in Java Web

Good afternoon. I have this. My query is that I want to find the total to pay, obviously the logic is to add all the subtotals there are, but that total to pay would like to be increased as one: <display:column/> For t...
asked by 16.06.2016 / 19:07
2
answers

Compare elements of an array of integers

I need to compare in an array if the number that was digitized is repeated if it is so pull message number is repeated and enter a new one, int i, n; n = Integer.parseInt( JOptionPane.showInputDialog(null," Digite la cantidad de c...
asked by 17.02.2018 / 21:23