Questions tagged as 'android'

2
answers

What is the best way to pass a context to a nested class?

I have a nested class that is used for a new Thread and has some Toast to display some user information depending on the error. I already tried to pass the context through the constructor, I already created a context variable in th...
asked by 09.11.2016 / 00:45
1
answer

Position button on top of ad

Hello, I'd like to know how I put a close ad button in the corner of the screen above the ad.
asked by 04.12.2016 / 02:51
2
answers

LinearLayout dimensions, defined in java, do not maintain proportionality between resolutions

I have a View in which I am programmatically defining its width and width in this way: LinearLayout.LayoutParams params = (LinearLayout.LayoutParams) linear.getLayoutParams(); params.height = 50; params.width = 50; linear.setLayoutParam...
asked by 25.11.2016 / 01:52
1
answer

Android - Error with setContentView (R.layout.Principal);

Good afternoon, I am having problems with setContent it reports the following error: Can not resolve symbol 'Principal' This is occurring at -> protected void onCreate(Bundle savedInstanceState) { This 'Main' file is in: app - > re...
asked by 14.12.2016 / 17:30
2
answers

Save Image with better resolution

Hello, I'm saving images to the database. But the resolution is very bad. I'm using the following: btncamera.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { tirarfoto();...
asked by 29.11.2016 / 05:31
1
answer

Scroll View in Android Studio, Basic Question

I have a very basic question, how do I see the content that is below the ScrollView visible in the editor itself? Since content that exceeds the selected resolution does not appear?     
asked by 13.12.2016 / 20:52
2
answers

Problem in catching latitude and longitude android 5

My code does not handle location in android 5, public void pegaLocalizacao() { LocationManager locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE); location = locationManager.getLastKnownLocation(LocationMan...
asked by 06.10.2016 / 21:36
2
answers

Working with the file: // and Angular protocol

I wanted to know if it is possible to work with a Http: // request locally in my application and not on a local server, if at all possible how do I do this? (does not necessarily have to be with the file: // protocol). //Cleanup the popover wh...
asked by 12.04.2017 / 15:04
1
answer

Marker is duplicating when updating User Location

Implemented the Uusuario Localization activity every 15 seconds. Variables are global class: LatitudeUsers UserLength marker Within the onLocationChanged method I set the two location variables, and call the addMarqueries. priv...
asked by 09.08.2016 / 15:24
1
answer

Android Device Monitor

I am trying to use the android device monitor to extract my database, but it is giving this error.     
asked by 10.08.2016 / 21:10