Posts by Alessandro Barreto • 675 points
33 posts
-
0
votes1
answer164
viewsA: How to make dialog that accesses a view without using setContentView
From what I see of your code you are making the bindViews(findViewById) wrong, if you inflate your view different from your main layout, the views have to be bound with them, see in this my example:…
-
0
votes2
answers1746
viewsA: Calling an Activity within a Fragment - Android Studio
public class ActFoto2 extends Fragment implements View.OnClickListener, ViewTreeObserver.OnGlobalLayoutListener { private Button proximo; @Override public View onCreateView(LayoutInflater inflater,…
-
1
votes1
answer46
viewsA: Error with findViewById in email sending class per application
You just need to add your View before findViewById Button login = (Button)view.findViewById(R.id.enviar);
androidanswered Alessandro Barreto 675 -
1
votes1
answer688
viewsA: Custom Infowindow Google Maps Android
And possible yes, there is this tutorial Markers and Listeners Google Maps that explains super well how to do and follows below an example. map.setInfoWindowAdapter(new InfoWindowAdapter(){…
-
1
votes1
answer149
viewsA: How to insert a data list using Volley
Are overlapping yes your key, in case you can try to send as follows. for(int i =0;i<dadosposicoes.lenght;i++){ params.put(Constantes.KEY_LATITUDE+i, dadosposicoes.get(i).getLatitude()); //outros…
-
0
votes1
answer165
viewsA: Navigation Drawer + Google Maps
From what I understand the question you made work. Import android.support.v4.app.Fragmentem Mainfragment to Mainactivity gives no error but first of all you have to know the difference between these…
-
0
votes1
answer114
viewsA: Ideal image size
According to the Guideline of Material Design, is 40dp the size of Imageview. source: http://www.google.com/design/spec/layout/metrics-keylines.html#Metrics-keylines-touch-target-size…
-
1
votes1
answer155
viewsA: Knowing if an app is open through a Broadcastreceiver
I usually use this method to launch or not a notification to the user. It will return true if the app is closed and false open case. Apply it to your Receiver. /** * Method checks if the app is in…
-
0
votes1
answer119
viewsA: Find current location
For this you can use the Fusedlocationproviderapi which is included in the Playservices package. With this Google Api you can quickly get user location, location changes and most importantly control…
-
1
votes1
answer224
viewsA: Volley.Parseerror - java.lang.String cannot be converted
I will explain the error: this is because you are not receiving the server response in JSON format but a String written "user_created" and so the error occurs com.android.Volley.Parseerror:…
-
1
votes1
answer338
viewsA: How do I change the image of each item in my list ?
First is to structure your class Product, know what she possesses if it is name, price, image and etc... Knowing this you create it with builders and get and set. And also know if that image will be…
-
2
votes2
answers221
viewsA: Memory problems when loading many images in listview
This happens because when working with pictures on Android a great memory amount is allocated and you’d have to treat it instead of going straight to setImageBitmap(myBitmap); I suggest you use…
-
0
votes2
answers285
viewsA: Android do authentication constantly with external server
It’s all a matter of developer logic.I would do as follows ex: case of Whatsapp messages quoted by you. Create a column in my table called STATUS, in it I would save the following information:…
-
3
votes1
answer435
viewsQ: SQL Query Returned Null, Empty for JSON
I’m in trouble!! I have two tables 'user'e 'post' when I use phpmyadmin to make the following query it returns the values as I hope. SELECT usuario.nome, usuario.foto_profile, post.titulo,…
-
-1
votes1
answer632
viewsA: Problems with permission ACCESS_COARSE_LOCATION android studio
ACCESS_COARSE_LOCATION permission is not available for applications that are not part of the firmware 'which in this case is yours' because the security settings are designed to be protected against…
-
2
votes1
answer98
viewsA: How to add a buffer to google map v2?
So Google Maps for Android works cached as soon as you start it automatically does it for you, but of course you have to add some permissions so it can do this. <uses-permission…
-
2
votes3
answers2000
viewsA: How do I get a Facebook profile picture?
When I use the Facebook API I use a method I created to capture information like id, name, email, user photo. (I use the Loginmanager and Graphrequest everything from the Facebook documentation) And…
-
6
votes2
answers5153
viewsA: How to calculate distance from the user’s location to another address?
You can use Google’s own lib for this. Google Maps Android API Utility Library Add to your Gradle: dependencies { compile 'com.google.maps.android:android-maps-utils:x.y.z' } example: LatLng…
-
6
votes3
answers7988
viewsA: How to put an animated GIF in an APP on Android?
You can use the Glide lib for this follow the example: in Gradle add dependencies { compile 'com.github.bumptech.glide:glide:3.5.2' } example in your Activity Glide.with(context)…
-
2
votes2
answers395
viewsA: Login via Facebook without the app installed
To use login without the Facebook app installed, you have to add an Acitivity to your Androidmanifest, follow the code: <activity android:name="com.facebook.FacebookActivity"…
-
3
votes3
answers302
viewsA: Access web images application
You can solve this only in one line using the image lib, it can be both the Picasso, Glide, Universal Image Loader.Example with Picasso:…
-
-1
votes1
answer332
viewsA: Documentation for creating files in PDF format
Good friend, make sure this can help you: one method is for you to create and another is for you to open. follows the link too.…
-
3
votes1
answer3299
viewsA: How to leave Activity in full screen?
On the website of the android Veloper has a documentation about it. but follows the code snippet for you hide: View decorView = getWindow().getDecorView(); // Esconde tanto a barra de navegação e a…
-
1
votes1
answer1907
viewsA: Apply Material Design (android:Theme.Material) to Android versions smaller than API 21?
for versions smaller than api 21 you just create two Styles 1- for <21 and 2 for version >21, follow the example of how to implement in smaller versions. <resources> <!-- Base…
-
1
votes2
answers171
viewsA: How to find the path between two markers on Android?
If you want to plot a route between them use the Polyline. Google has API for this, follow the links to studies:…
androidanswered Alessandro Barreto 675 -
-1
votes1
answer92
viewsA: How to catch the Json string without knowing what’s in it?
Well I think this is not possible because json work with key and value {"name":"Alessandro"} to access the value 'Alessandro' you must access by your key or key that in the case is the "name" and…
-
2
votes1
answer220
viewsA: Menu does not call Activity
You have to add setSupportActionBar(mtoolbar) for your Toolbar, ex: mToolbar = (Toolbar) findViewById(R.id.tb_main); setSupportActionBar(mtoolbar); mToolbar.setTitle("Linhas");…
-
1
votes1
answer2348
viewsQ: Enlarge image of imageView Android
I’m looking to enlarge an image of imageView that is to make that effect equal to Whatsapp when receiving an image and the user clicks on the image it opens.
androidasked Alessandro Barreto 675 -
1
votes1
answer4184
viewsA: How to get gps coordinates in java on android
Well, there are several ways, I’ll give you one: First you create a service to get latitude and longitude, then just instantiate it when you click on a button to get the coordinates. public class…
-
0
votes1
answer639
viewsQ: How to remove default options from Google Maps v2 Android
Guys I have a question, I am creating an application that uses Google Maps V2, has how to REMOVE these default options from the Map ? This happens when I click on the marker and these two default…
-
-1
votes1
answer767
viewsQ: Update Android Database
I’m creating a database on Android that has a column called status where is saving (0 or 1) 0 for when you are without internet and 1 for when you have internet, I want to do the update from the…
-
1
votes3
answers10752
viewsA: How to debug a website on mobile devices?
Well, I advise you to download Firefox Developer Edition their Ogan is "Made for those who make the Web,We present the only browser made especially for developers like you." follows the link:…
-
1
votes1
answer239
viewsQ: How do I open a Service from a Broadcastreceiver?
I’m creating an app that intercepts a text message via BroadcastReceiver, more from that I want to receive this text via broadcast open a service. probably this is done via Intent more I can’t do.…