Questions tagged as 'java'

1
answer

.java file not found

This is my first time, I made a simple println . My code was exactly: class teste { public static void main(String[] args) { System.out.println("oi"); } } No error appears, but when I go to the terminal and type...
asked by 16.04.2015 / 19:30
1
answer

Start a new Fragment when searching

I need to know how when people give enter in the search bar, the application passes what was typed to another fragment and starts it. Currently I have arrived at the following code, but it is not working. @Override public void onCrea...
asked by 11.04.2015 / 05:21
3
answers

How do I use ActionBarActivity in an application that runs with android 2.2 or higher?

I want to use Action Bar in my application that will also run on devices running Android 2.2 or higher. I know I should use Class ActionBarAcitivity , which is the API made available by Google. I already downloaded the Android Su...
asked by 12.02.2014 / 22:38
2
answers

Make two items in a ListView switch position

I am creating a button called upload, to make an item in the listview go up, while the one that was above goes down. But I've tried everything and it will not, I do not know if I'm wrong in logic. But I tried to do it in two ways. The first (...
asked by 07.02.2014 / 14:23
2
answers

How do I know if the keyboard is visible?

Is there a method that tells me when the keyboard appears and disappears?     
asked by 12.02.2014 / 00:31
1
answer

Search by date range

HowtocreateaqueryfortheOracledatabasebyreturningalistofrequestsaccordingtoadaterange?Followthecodecurrentlyused:if(opcaoBusca.getSelectedIndex()==0){JOptionPane.showMessageDialog(null,"Escolha uma Opção de Busca!"); } else if (opcaoBusc...
asked by 12.01.2015 / 18:44
2
answers

OutOfMemoryError error while downloading object list

I'm having this error while downloading a webservice object that has images that are converted to base64. The question is that if this object is already saved in the local android database the app works, I get load many objects at once and show...
asked by 09.01.2015 / 18:47
1
answer

Upload remote images with base64 or URL?

What is the best way to upload remote images on Android? How do these great applications optimize these images? In a country where mobile Internet is one of the worst in the world, there is a need to keep the user from waiting too long until...
asked by 06.01.2015 / 11:53
2
answers

Call a function when a fragment is closed

I have a activity that calls a fragment which is displayed as a DialogAlert . However, when this fragment is closed, I need a method of Activity to be called. What is the best way to do this? The Activity cod...
asked by 24.06.2014 / 02:10
1
answer

How to compile Java with icons

Previously, posted a question about how to compile my project in "Runnable Jar "with icons. And be able to do this with label and buttons. Now my question is how to do this in iconImage . I've tried the following: setIconImage(Toolkit....
asked by 09.06.2014 / 15:52