Questions tagged as 'android'

1
answer

How to pass an imageview that is in an Array List to another imageview in another activity

Activity 1 : public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) { //Pega o item que foi selecionado. ItemPromo item = adapterListView.getItem(arg2); //Demostração //Toast.mak...
asked by 08.11.2015 / 18:06
1
answer

Code that leverages decimal value in C # for Java / Android

I have a code that rounds a value of type decimal to homes I want, and I would like to implement it in Android in Java but I'm having some difficulties, here's the code below in C #. public static class Valor { public static decimal...
asked by 16.12.2015 / 18:37
1
answer

How to retrieve json data from a URL using HTTP POST on android? [closed]

I need to retrieve Json values for a given URL using HTTP POST , but I'm having trouble getting started. How can I perform such an operation on Android?     
asked by 17.12.2015 / 02:43
1
answer

Receiving data through the connection between arduino and the internet (Ethernet shield)

I built an app to receive data from an arduino-connected sensor over the internet using an ethernet shield. For that I got the result of the page and separated only the measure of the sensor in android. I was able to get the result of the pag...
asked by 20.12.2015 / 13:05
1
answer

How to adapt an Activity for FragmentActivity

I'm doing NavigationDrawer , and so I have to make some adaptations, as I'm extending Fragment , but I need to use int's for Activity to work, I've tried calling OnCreateView FragmentActivity but it did not work very well....
asked by 23.12.2015 / 01:16
1
answer

Show an application A within the fragment of another application B

In my application, when the user clicks Add Contact I call the Contacts application using a Intent . But, instead, would it be possible to open a Fragment whose content would be the Contacts application itself, ie show the cont...
asked by 18.12.2015 / 12:03
1
answer

Error adding fields to Text Edit using OnFocusChangeListener

I'm trying to get my application to calculate the fields% cos_de% cost price plus profit percentage and when clicking on the sale price field the result will appear, however instead of appearing the result the following message appears in edit t...
asked by 18.01.2016 / 19:26
1
answer

Validate Login with Sqlite

I have a problem in the method of validating loguin, it is logging in with both the correct login and password and with them wrong. When it logs in with the wrong login the id of the user goes to 0 and if it logs with the correct data the id goe...
asked by 13.11.2015 / 01:55
1
answer

Error: The method getFragmentManager () is undefined for the type ActivitiesListAdapter

How do I call a Fragment from a BaseAdapter? I'll call him at the click of the button, and I should also pass on some information. I'm trying to call it this way: Fragment fr = new Fragment(); FragmentManager fm = getFragmentManager(); Frag...
asked by 15.11.2015 / 11:44
3
answers

How to assign a zero value to a variable (s) before running the program?

First of all, I'm still a bit lazy on the subject, hehehe I'm doing a program in Eclipse (Android) that calculates the CR of a student, through two buttons: one is in charge of adding n notes and their respective weights (summation) and store...
asked by 11.12.2015 / 16:08