Questions tagged as 'android'

1
answer

What is the correct way to put the address inside Path?

Because I can not locate my .txt file. Here is the code: public void criatxt() { String texto = "XXX"; try { String filePath = this.getFilesDir().getPath().toString() + "/meuarquivo.txt"; File f = new...
asked by 25.08.2015 / 17:20
1
answer

How to do a POST using the HttpUrlConnection class of Android?

I need to send a JSON generated in the Android application to a web application. Using the HttpUrlConnection class I made the following encoding: private void sendPost(String url, String postParams) { try { URL...
asked by 24.08.2015 / 21:31
1
answer

Android Download Directory

Hello, in my app I download a CSV file, but it never appears in the Downloads of the smartphone, I can only see if it is with the File Manager. And also when I try to pass the file to the computer, I can not find the directory that was saved. Th...
asked by 24.08.2015 / 22:10
1
answer

onActivityResult does not return setResult

What happens is that I have an Activity Client where I have 2 buttons, one of register and another of query, when I call the register opens an Activity with a TabHost with 2 fragments inside, in the query opens an Activity with listView and such...
asked by 19.10.2015 / 21:54
1
answer

Recover selected radio button used RecyclerView

I'm trying to make a RecyclerView , where each recycleritem has 3 radio button options. Each of the radio butttons is related to an item in the object list that was passed to the adapter as a parameter. How do I get the selected...
asked by 19.10.2015 / 20:49
1
answer

Margin of a Document iTextPdf

I'm working with an existing PDF file, following the short line of code: //Código... document = new Document(PageSize.A4); PdfWriter writer = PdfWriter.getInstance(document, fOut); document.open(); PdfContentByte cb = writ...
asked by 19.10.2015 / 16:59
1
answer

Copy file content in assets directory to existing Android file

I have a txt file with several lines in the assets directory and every time I start my application, I check if a file called database exists, if it exists, nothing is done, if it does not exist (first run), I wanted copy what you have in the txt...
asked by 19.10.2015 / 19:57
1
answer

Error catching facebook profile image

I'm trying to get the profile image from fb but it returns the following error java.io.FileNotFoundException: No content provider: link My code is like this Bitmap tempBitmap; tempBitmap = Util.getBitmapFromURL(Preference.get...
asked by 20.10.2015 / 13:57
3
answers

Images getImageUrl ()

I'm loading images like this: final ImageView img = (ImageView) firstElementView.findViewById(R.id.grid_image); String src = item.getImageUrl(); img.setTag(src); imageLoader.displayImage(src, img, Utils.getImageLoaderOptions()); But now I...
asked by 24.08.2015 / 11:21
1
answer

Error creating Class in Eclipse Android

When I create a new project in Eclipse Android it shows the following errors: Detail: I only downloaded the%% 4.0 and 4.2% and the lower ones% the extras and apis .     
asked by 14.10.2015 / 23:01