Questions tagged as 'android'

1
answer

I would like to find the distance in km between two markers how can I do?

I have two markers in this code and I want to find the distance in kilometers between them. private void setUpMap() { Database_Congregacao database_congregacao = new Database_Congregacao(this); int tamanho = 0; int size = 0; ta...
asked by 16.05.2015 / 00:07
1
answer

Save ArrayList to the external memory of an Android phone

How can I save an ArrayList by FileOutputStream in the memory of an android cell phone? Or do you have a better method? For example: FileOutputStream fos = openFileOutput("Foto_Imovel", Context.MODE_PRIVATE); fos.write(My_Array...
asked by 17.10.2015 / 01:46
2
answers

How to keep the layout in standby mode?

Well I have two layout test_1 and layout test_2, when I turn on the picture device appears test_1 and when I turn device to landscape appears test_2, you have to leave this layout in standby (idle) so your data will not be restarted when changin...
asked by 13.03.2015 / 17:10
1
answer

Android themes support on custom components using AppCompat-v7

I started using AppCompat-v7 for use the concept of Material Design in my project . But now I realized that my custom components even inheriting from native components are not applying themes like native components, for example: I have the...
asked by 10.04.2015 / 15:38
3
answers

Layout for all screen sizes [duplicate]

I started briefly with android and I had a big question. How do I make a layout to work on all screen sizes? As I researched, there are specific layout folders for each size. So how do I create these folders, since in Android Studio comes o...
asked by 14.07.2015 / 20:40
1
answer

How to cancel a handler?

I have this Code final Handler handler = new Handler(); final Runnable r = new Runnable() { public void run() { if (garagem.isChecked()!= luzgaragem){ garagem.setChecked(luzgaragem);...
asked by 03.03.2015 / 14:00
1
answer

Android: getApplicationContext ()

I'm trying to do Database db = new Database(this.getApplicationContext()); Where Database is a class I have with all the Database-related methods and what I'm calling to populate an ExpandableList. However, I'm getting error in this , the...
asked by 23.10.2015 / 22:49
1
answer

The method that sends email works, but how to prevent the amount of incoming emails from being spam?

I have a method that sends email back ground that works well, but I need to make sure that as the amount of incoming email does not come from Spam. I have already researched the Java Message Service (JMS) framework but I have not found a way to...
asked by 19.02.2015 / 20:53
1
answer

List View - returning more than 1 data in a row

I'm implementing a% of notes and I have to have a list view that should list ALL previously registered "NOTES" using the listing method implemented in DAO; Each line of the ListView should display the NOTE, Matter, Bimester, and Note Date....
asked by 14.04.2015 / 17:10
1
answer

Hide ActionBar in one fragment but show in another

I'm working on a project that's being done pretty much all based on fragments . So far, I have only activity and 4 fragments , within which I need only one of them does not have ActionBar . Common methods of hiding Actio...
asked by 26.11.2014 / 14:38