Questions tagged as 'java'

2
answers

How to use string created string.xml via code

How to use string created strings.xml via code example you have to call <string name="hello_world">Hello world!</string> at some point in the code ( Activity ).     
asked by 08.04.2015 / 20:51
1
answer

How do I return to my ActionBarActivity?

For example ... I have an application that has a main ActionBar and in it I "seto" an activity that has a drawerLayout (which has a side menu) ... In each menu option - I selected - I replace the FrameLayout added to my DrawerLayout by a fragmen...
asked by 09.04.2015 / 11:36
4
answers

How to create a .jar executable?

Can you compile a java project in eclipse , if so, how? Otherwise, how do I compile a project in Java ? I was able to transform the code into .jar by eclipse. But when I click to run it, it just does not open. I gave a lookup of how...
asked by 02.06.2015 / 22:06
2
answers

Eclipse (java project) - src folder error

I hope you can help me ... after I installed everything (everything: ADT , Eclpse , SDK and ALL Android UPDATES)), no matter how many projects I create, SRC of eclipse, can someone help me ... photo below ...  ...
asked by 03.06.2015 / 03:13
1
answer

Bookmark does not redirect to login page

I followed the post about authentication and authorization in demoiselle but I can not redirect to the login page, it follows files: frameworkdemoiselle.security.enabled=true frameworkdemoiselle.security.authorizer.class=br.gov.serpro.bookmar...
asked by 02.06.2015 / 15:05
2
answers

NullPointerException on Android

I have a problem listing the photos in the DCIM folder on Android. Does it give the loop error for , casting java.lang.NullPointerException ? What can it be? See the code that takes the information from the folder: public class...
asked by 02.06.2015 / 16:25
1
answer

access data from the array being in another class?

I have an array in a class called Logica. And I'm manipulating it from another class called Game. But when I pass a value from the Game class to the array in the Logic class and Czech if the value was stored in the array it returns me 0, a...
asked by 25.03.2015 / 19:45
1
answer

Why can not I instantiate an object when I click my button?

Button operation is correct, it executes all previous rows. However, instantiating an object Email displays the error. public void send(View view) { EditText text = (EditText) findViewById(R.id.editText); Switch iluminacao = (Sw...
asked by 24.03.2015 / 12:30
1
answer

How to get the coordinates of gps in java on android

What is the best way to get latitude and longitude on android. Eg after the request (tap the button) the user waits for the gps to get the coordinates and after that it displays them for it.     
asked by 24.03.2015 / 03:34
1
answer

Launch Exception in the onCreate of an Activity

I'm working on the development and refactoring of some Activity's that has similar behaviors in our projects, so to avoid code repetitions, for common functionalities, I've created some Activity's base, which are inherited by the o...
asked by 24.03.2015 / 19:59