Questions tagged as 'android'

1
answer

Change DialogFragment size according to Android screen

I have a very simple registration form that appears when I click a button to register. This form appears in DialogFragment , however, with a very small size. Zonzando on the internet I found a code that changes the size of it: @Ov...
asked by 31.03.2016 / 21:44
2
answers

Color Spinner ProgressDialog - Android

How do I change the default color of ProgressDialog (Spinner) in android? Here is the code I'm using: ProgressDialog progress = new ProgressDialog(this); progress.setTitle("Título); progress.setMessage("Mensagem"); prog...
asked by 29.03.2016 / 20:01
2
answers

"Refresh" of the fragment with listview

I have a Fragment that, clicked on a RadioButton , a route is calculated, after this route calculation, a ListView is displayed with the results. By clicking on the other radiobutton option, the routes are calculated again...
asked by 16.09.2016 / 20:52
1
answer

How do I create a button in the google maps API to add bookmark?

The question is as follows ... I checked one for a few days before coming here, but I just think how to manually add the bookmark to the google example: // Add a marker in Sydney and move the camera LatLng sydney = new LatLng(-34, 151); Map...
asked by 02.02.2016 / 22:55
1
answer

How to use more than one extends?

When I create the project it comes like this public class MainActivity extends AppCompatActivity{ Would you like to use more than extends how to do? import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import...
asked by 04.02.2016 / 00:05
1
answer

Error trying to generate a signed APK

Error trying to generate a signed APK. I already generated the keystore, passwords, aliases, etc.    Error: (32) Error: The element must be a direct child of   the root element [WrongManifestParent]            element should be defined as a d...
asked by 04.07.2016 / 18:15
1
answer

How to call a hosted id in the extended activity layout of Fragment?

Well, I'm developing an app, which has a navigation drawer and in this navigation I put it to open each item in a new activity, and in each acitivty will have a layout, so far so good. But now, I'm trying to call a webview with progress bar, eve...
asked by 20.02.2016 / 21:19
1
answer

ActionBar Color

I would like to know how I can change the color of ActionBar dynamically? I've tried to get it for getSupportActionBar but I could not.     
asked by 09.01.2016 / 21:07
2
answers

How to check if there is any sqlite database in the application?

I have the following dilemma: I am putting together an app where I perform a synchronization between a MySqle database and SQLite using a Webservice. My database is already available in MySql, and in my app during my splash screen I need t...
asked by 09.01.2016 / 21:57
1
answer

Connect server to local network by hostname

I am trying to connect to a local network server using hostname (you can not use IP because the client network does not allow fixed ip and the device does not have IP backup per MAC). So, I'm trying to do this from an Android application, s...
asked by 10.06.2016 / 14:37