Questions tagged as 'android'

0
answers

Android application gives error when I try to sign in

Log in application in Android Studio. I can register in the application but when I try to log in I can not give me an "login failed" here is the code for login.php <?php require("password.php"); $con = mysqli_connect("198.91.81.5", "usuari...
asked by 03.12.2016 / 15:27
0
answers

Copy and Paste Function

I wanted to copy and paste a string into a ListView, the function I'm using is just copying follows the function: // Função Copiar private void copiarTarefa(Context context, String text) { if (android.os.Build.VERSION.SDK_INT <...
asked by 04.12.2016 / 00:14
0
answers

Offline Map on Android

I'm making an application in which using Google map and can run out of internet access. Without internet access the Google map system does not work. Questions: I know that you have to cache some Google map information, but how do you do th...
asked by 12.12.2016 / 17:10
0
answers

Convert to JSON objects from classes that reference recursively

I'm trying to convert two lists of distista classes to JSON. public class CustomerItem implements Parcelable { //... private List<ProductItem> mProductList = new ArrayList<>(); ... } public class ProductItem implements Par...
asked by 16.12.2016 / 07:54
0
answers

Socket X Android

I am doing socket study on Android (an chat with some more functions on other screens) but due to the little knowledge in moment I was 'caught' at one point. How can I create a single connection to the socket in app where I can use this...
asked by 22.12.2016 / 14:09
2
answers

Spacing in a GridView

I have in my android project a gridview that I define as follows: I created an XML Adapter, so the gridview cuts some letters (icons), as it represents the image below. As I started developing now, I do not know about the properties of gridview....
asked by 17.01.2017 / 19:53
1
answer

Share PDF

I have an application that generates a pdf from an internal content. I need to share this pdf , and for this I do the following: final String filePath = file.getAbsolutePath(); final Uri arquivo = Uri.parse( filePath); final Intent...
asked by 29.11.2016 / 17:01
1
answer

Use method of another class

I need to execute a method that is in another class. I think the two are non-activity classes. The following class has a method called connect() . When this method is executed, at the end of it I want to call another method that is in a...
asked by 26.09.2015 / 14:09
1
answer

size of images in kb for upload

I'm making an application for android, and I have to work with downloading and uploading photos ... I'm already resizing photos larger than 1000x1000px for this same size ... and using the method yourSelectedImage.compress(Bitmap.CompressForma...
asked by 16.02.2017 / 20:54
1
answer

How to leave a fixed button at the end of LinearLayout via code (without using xml)?

I have a linearLayout, and I put it as MATCHPARENT to occupy the entire screen of the tablet, however I needed to leave a fixed button at the bottom of the screen. Does anyone know how to do this? With xml it's easy, but via Java I'm not...
asked by 28.09.2015 / 21:56