Questions tagged as 'android'

2
answers

How to open pdf on Android?

In my application there is a button where when clicked, it will open a arquivo pdf, but could not get this file from the internet, would have to come along with the application, I am using the following code: Intent intent = new Intent(I...
asked by 05.06.2015 / 21:15
2
answers

How to put items in a Listview

The add method does not appear, I'm new so I have no idea what it can be protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); // Set our view from the "main" layout resource SetContent...
asked by 09.10.2016 / 22:55
2
answers

List changes color in wrong position

ImadeamethodforwhenIclickonalistViewitemitwillchangecolor.Theproblemisthatitalsochangescolorallitemsthathavearangeof12itemitemsthatIclicked.Forexample:IhavealistViewwithnumbersfrom1to30,ifIclickthenumber1itwillturngreen,butthe13also25willalsogo...
asked by 13.08.2015 / 15:21
1
answer

Doubt in Creating an app / Server / Notifications

I have a project to develop an Android app, using Phonegap + jQueryMobile, I have already been able to create the interface, change screens and so on. Now comes the hard part for me: the Backend: ( I'll cite what I need to do and if possible,...
asked by 27.04.2015 / 13:47
1
answer

How do I set margin in a TextView in java source code?

When I'm in xml , it only applies the property: android:margin="15" I want to apply this same property, but in the source code of java , how do I do this?     
asked by 24.04.2015 / 02:20
1
answer

How to transform an image into a qr code with Zxing?

I'm developing an android application capable of generating and reading qr codes, the application already encodes and decodes strings, but now I need to do this with images. I have tried some ways to transform the image into an array of bytes...
asked by 18.02.2015 / 07:37
1
answer

Edit item within ListView

Hello. I'm working on a code that loads items within ListView through an adapter . Within each item ( item_list.xml ), I inserted two buttons being one to delete the item and another to edit. The method that deletes the item is working...
asked by 13.02.2015 / 14:24
1
answer

How to reduce a decimal number in java?

For example ... Calculating 8/6 will have a periodic tithe with a value equal to 1.333333 ... But I only want to show the user only 2 digits after the comma, that is, 1.33. How can I do this?     
asked by 19.02.2015 / 21:07
1
answer

Android / IOS alarm with PhoneGap

Good evening, I'm just developing an application for parties. In this application lists the city parties with date and time, tickets and tals .. I'm having a hard time creating a feature, I need to notify the user that the party will start with...
asked by 23.02.2015 / 03:28
2
answers

How to return calculations made in Service for activity? [duplicate]

I would like to send the result of a calculation back to the activity, I was trying to use a Binder as I was advised, but I can not retrieve this value. Would you like to make the activity learn that the service has finished calculating and th...
asked by 21.02.2015 / 18:39