Posts by Tiago • 986 points
35 posts
-
0
votes2
answers648
viewsQ: How to add the values in a loop?
I want to add and show the total value of the consultation. In the case of 3 patients the sum would be 1350. But something is going wrong. case 2 : printf ("Particular:\n"); printf("O valor da…
-
2
votes2
answers65
viewsA: Eclipse error with android language
Friend download the sdk from the link below: https://developer.android.com/studio/index.html. Then follow these steps: 1- 2- 3- 4- 5- 6- insert image description here 7 - 8 - restart the eclipse as…
-
42
votes6
answers12507
viewsA: Why shouldn’t we use mysql_* functions?
Guys, for educational purposes only, I’m posting a table containing some important information about mysql, mysqli and PDO.…
-
5
votes2
answers254
viewsQ: Explain in a simpler way what are these attacks?
I would like to know in a more simplified way what these types of attacks are. Keylogger Brute force attack Cryptanalysis of rubber hose Sql Injection And please, if you could go deeper into the…
-
3
votes4
answers103
viewsA: Problems formatting the date type returned from select
staff managed to arrange as I wanted just do as follows $sql = "SELECT REPLACE(date_format(D.Mes_ref,'%m-%y') , '-', '/' ) as Date, This way of doing receives the example D.Mes_ref (19/05/2016) from…
-
1
votes1
answer1164
viewsQ: How to take a data from a selected html combobox item
Good morning, you guys. Guys, here’s the deal. I got two combobox! In the first combobox I have all the companies of the system. here everything ok. In the 2nd combobox I have all the affiliates of…
-
1
votes3
answers3188
viewsA: How to make an image fit to various screen sizes on Android?
If you’re using Android Studio to create your app, replace android:background="@drawable/myimage" /> for android:background="@mipmap/myimage" /> That folder mipmap Android Studio maps to…
-
0
votes1
answer117
viewsA: Gradle error app:processDebugGoogleServices'
enters the build.Radle found here: and put the information this way: apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion "23.0.3" defaultConfig { applicationId…
-
0
votes1
answer689
viewsA: Error in Gradle build: "java.exe finished with non-zero Exit value 2"
Friend I have an app already in use in the play store and use this build.Radle apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion "23.0.3" defaultConfig {…
-
0
votes3
answers420
viewsA: Double Tap Opens Two Activitys Android
Good morning buddy in my case below and use a listview and pick the selected item as follows.. ltsunidades.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void…
-
7
votes2
answers824
viewsQ: How to save two variables from a JS in php session?
I would like to know if there is a way to save these two following variables. Follows the code: <script type="text/javascript"> function opcao() { $(document).ready(function() { var empresa =…
-
0
votes1
answer160
viewsA: How to display in html the data of all columns obtained through a mysql query?
I display this way, see the code below: echo'<table align ="center" class="bortpago" border="1" cellspacing="5" cellpadding="5">'; for($x=0;$x<1000;$x++) { echo '<tr bgcolor="#BEBEBE"…
-
0
votes1
answer56
viewsA: Multiple Recycle views on the same activty
If you are creating an app, I wouldn’t advise you to put more than one Recycleview on screen. Try to show in a Recycleview the categories and as soon as the user choose the category, you show in…
-
0
votes1
answer84
viewsA: Android Sharedpreferences with Radiobutton
The example I’m going to set is with checkbox, but the method is no different, just change to your radiobutton. Create a preference class. There you can store anything you want. Follow my example:…
-
0
votes1
answer168
viewsA: Difficulties with positioning css elements
friend the only idea I can give you to help you in that moment and do the following.. right click on your page in the place where you want to modify .. will open on the right side of your screen a…
-
0
votes1
answer545
viewsQ: How to receive the selected item from a combo box and use in another select?
Good morning Programmers.. I need a favor, next I have a combobox that is generated through a select so far everything ok .. I need to receive this item selected by the user and save the information…
-
2
votes1
answer97
viewsA: Webserivce only accepts requests from local server
serve from where the request comes through these codes ... never failed me .. <?php $ip = $_SERVER['SERVER_ADDR']; if ($ip == 'ip do servidor local') {…
-
0
votes1
answer46
viewsA: Image sharing of a listview with Intent
For given passes to a selected input from a listview I did so ltsunidades.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView adapter, View…
-
1
votes1
answer87
viewsA: Sharedprefferences cleaning automatically
by what I see you are not saving anything in your sharedpreferences I have an example for you I used this way in my application.. I created a class of "preference" public class Preferencia { public…
-
1
votes4
answers103
viewsQ: Problems formatting the date type returned from select
Good morning I would like you to help me with a small problem that I am trying to return from a select in php. I would like the return of my "Mes_ref" from my select to be only month and year…
-
0
votes1
answer163
viewsQ: How to return json_encode?
I need to return a select made in PHP. It is working normally, but when displaying the result it returns me an error at the end. I need to return one json_encode to the android recognize. Follow the…
-
3
votes1
answer409
viewsQ: how to work with different dimension in android studio?
I would like to adapt my app created for each mobile model. As I some it gets smaller text on the screen and in others larger, I would like to create a method where it adapts to the cell phone model…
-
2
votes2
answers1687
viewsQ: How to decrease the size of the text in a Listview?
I would like to know how to shorten or increase the text of ListView. In the TextView there is the property android:textsize="15";, which property would be equivalent to textsize in the ListView? I…
-
1
votes1
answer642
views -
1
votes1
answer716
viewsQ: How to change the background color of the app popup menu
I’d like to know how I change the background color of when I open the menu of an app I’m creating. Follows the style.xml <!-- Base application theme. --> <style name="AppTheme"…
-
0
votes0
answers154
viewsQ: Error while emulating android via mobile
I’m creating a app for android and I was emulating him on my cell phone, everything was ok but from one day to another this message appeared : Error failed to connect to /192.168.0.103 (port 80):…
-
1
votes0
answers49
viewsQ: Standardize edtitext type date
I’d like to know how I change the format of EditText date-like android:layout_width="wrap_content" android:layout_height="wrap_content" android:inputType="date" android:ems="10"…
-
0
votes1
answer220
viewsQ: How to pick up an item from the return of a json
I would like to know how to store each separate item so I can use it later in one sharedpreferences. There is this class in my program .... public class Tab { private String UC; private String…
-
1
votes2
answers1618
viewsQ: How to use sharedpreferences as a class
I would like to know how I do to receive a data and assign it in a class of SharedPreferences, so that I can use this value whenever I need. Follow below my codes and where I need you to change.…
-
1
votes3
answers77
viewsQ: how to send 2 values to php & get http//localhost/.... php? kk=par1&zz=par2";
Good afternoon guys I’m having a little problem... I have two values to assign the connection php via web serves... the values are saved in sharepreference and saved in "txtid"... to everything ok…
-
0
votes1
answer115
viewsQ: Pass an Activity company id to another and use in a database connection
I am passing a user id through an Internet and intend to use this id in the second App. Even I believe it’s correct Take a look at the code: I have to go from Activity to another user id:…
-
0
votes0
answers44
viewsQ: how to use sharedpreferences
Good afternoon can anyone give me an example of how to create sharedpreferences... I’m in a bad situation where .. i validated the user and password on the server using php via webservice and after…
-
3
votes2
answers600
viewsA: Error using apache Httpclient class
Next friend add the following libraries to build.gradle in the block dependencies. dependencies { ... compile 'com.google.code.gson:gson:2.2.4' compile…
-
-1
votes1
answer749
viewsQ: How to return data from the user who logged in?
I need someone to help me with the following problem. I want to realize a select in a Mysql database, select will be done via web service with PHP returning a Json to my Android app. What happens,…
-
0
votes0
answers355
viewsQ: How to use Session in php android
I’m creating an android app, where when run asks login and user The android checks login and password in a web service made in php Till then all is well that all is going well . but when I ask for…