Posts by Lollipop • 4,918 points
260 posts
-
1
votes3
answers141
viewsA: Photo on the web with Windows 8.1 tablet
1 - You tried through an XHR request inside onchange handler of the input file? <input id="myFileInput" type="file" accept="image/*;capture=camera"> var myInput =…
-
2
votes1
answer4232
viewsA: Android Sqlite: Displaying bank content in textView?
I’ll give you an example that I’m sure works. Since you have not shown your complete code, I will present a form, you must adapt it and study it: 1 - You need to make every field of your listView…
-
1
votes1
answer128
viewsA: Geolocation in html
Your problem is solved in the URL. Enter the URL of WebView with coordinates, for example: google.com/maps/?q=-15.623037,18.388672
-
0
votes2
answers3188
viewsA: How to receive data via POST, sent from android to PHP webservice?
You managed to settle on the side of PHP, but did not answer the question itself from the side JAVA: PERGUNTA: Sending android data via POST.. Well... I’ll show you both via POST and via GET: public…
-
1
votes2
answers308
viewsA: How do I access an Arraylist of Fragments after a screen rotation?
Friend, understand... if the device is turned the activity will be destroyed and recreated. Thus, the context in which you passed to your Fragment points on the activity were destroyed. What to do?…
-
2
votes4
answers24849
viewsA: CSS DIV diagonal
Use CSS3 Transform: Skew FIT YOUR NEED. #square { -ms-transform: skew(30deg); /* IE 9 */ -webkit-transform: skew(30deg); /* Chrome, Safari, Opera */ transform: skew(30deg); /* Standard syntax */…
-
1
votes4
answers10421
viewsA: How can I get a date (day, month, year, time, minute, and second) converted into milliseconds in Java?
Only want the millisecond? Use java.sql.Timestamp: import java.sql.Timestamp; public class DateTest { /** * @param args */ public static void main(String[] args) { System.out.println(new…
-
1
votes2
answers2737
viewsA: How to create two different database connections?
You can’t have a single con referencing two database connections. You definitely need to keep two different references. Connection con1 = DriverManger.getConnection( connect1 ); Connection con2 =…
-
1
votes2
answers661
viewsA: Search in a JSON encoding field
My code below is not a complete solution, copy/Paste will not work. It is intended to push you in the right direction. I suppose my code may have some errors, although I’m not seeing it. If anyone…
-
1
votes2
answers3316
viewsA: How to open a folder on android
1 - This folder exists? 2 - You have these permissions? <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission…
-
0
votes3
answers1157
viewsA: How to download a pdf on android
I will not hold myself to the way you will save this pdf on your device, because I imagine you have a minimum of knowledge to at least create a way to put the title of the document in PDF in this…
-
0
votes1
answer73
viewsA: How to avoid spam in wordpress without spending anything
ALTERNATIVES Via Plugin: Spam Comments Cleaner: https://wordpress.org/plugins/spam-comments-cleaner/ Through the Phpmyadmin: You can do this on Phpmyadmin with a query: DELETE from wp_comments WHERE…
-
1
votes1
answer218
viewsA: Most suitable API - Opengl ES 2.0 x Canvas x Drawable
Opengl x Canvas Opengl will give you full control over the graphics you are using. You won’t have too many long-term limitations on what you’d like to do. You can do a good 3D design on an Android…
-
3
votes1
answer392
viewsA: How to detect if wi-fi and/or bluetooth are connected
Based on my comment and believing that you have knowledge about what you request, I show you this open source that analyzes whether the wi-fi is connected. private static final String DEBUG_TAG =…
-
3
votes3
answers1132
viewsA: Delay in loading PHP page with image
You may not find the solution to your problem here, as it is a very different case that addresses many theories about networks, memory, etc.. So delete all possibility the problem is in your code.…
-
2
votes1
answer2389
viewsA: Error Attempt to invoke virtual method 'android.view.View android.view.Window.findViewById(int)' on a null Object Reference
Your Listdespesasactivity has to treat setListAdapter correctly. It should be called before anything. Take an example: public class MyListAdapter extends ListActivity { @Override protected void…
-
1
votes1
answer2967
viewsA: How to Recover Facebook Friends List
First go to your settings and see if Taggable-Friends is enabled for you (https://www.webniraj.com/wp-content/uploads/2014/06/Taggable-Friends.png). This will retrieve the Taggable-Friends list:…
-
3
votes2
answers4944
viewsA: Put value on everything null in mysql
The command to update records is UPDATE, which has the following syntax: UPDATE nome_tabela SET CAMPO = "novo_valor" WHERE campo is null Do this when you need to update the fields that are null,…
-
0
votes1
answer433
viewsA: How do I update my Android JSON Parsing using Volley
No problem with your code, pal. Only your logic. You are storing everything in cache it is logical that it will always "pull" what is there, but if you put a kind of cache update in the opening of…
-
7
votes4
answers6781
viewsA: Why does my CNPJ validation pass this invalid value?
Do it, buddy. It works perfectly for me: function validarCNPJ(cnpj) { cnpj = cnpj.replace(/[^\d]+/g,''); if(cnpj == '') return false; if (cnpj.length != 14) return false; // LINHA 10 - Elimina CNPJs…
-
1
votes2
answers1533
viewsA: Help with email form with PHP Mailer
Sample code given by UOL HOST itself. View and analyze what is missing. There is no error here: /*apenas dispara o envio da mensagem caso houver/existir $_POST['enviar']*/ if…
-
2
votes3
answers229
viewsA: Foreach returning unconverted array
You have to declare the array appropriately, example: <?php $someArray = array('1','2','3','4','5','6','7'); // size 7 foreach($someArray as $value){ echo $value . "<br />\n"; } ?>…
-
0
votes2
answers2268
viewsA: Change iframe height with external src depending on content height
Take this example: <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <html> <head> <meta charset="utf-8"> <title>iFrame…
-
0
votes3
answers5090
viewsA: How to make eclipse auto-complete code automatically without pressing Ctrl+space?
Go to window / properties / facets / include jsf facet 2. Hence it should give an error saying that you have to put a jsf2 lib. If you are putting lib point it, in case you are on the server put the…
-
0
votes1
answer69
viewsA: Which server to upload and download files?
Server where the site is hosted - If you’re making a website and said you’re almost done, you’ll need a server to host it, obviously. Then I advise you to organize your audios on the server itself,…
-
2
votes2
answers1486
viewsA: Convert a bitmap image to a URL and set in Imageview
This is a simple and direct way to perform the requested procedure. 1 - Create a folder where your images will be, put this code in the main activity: if…
-
1
votes3
answers6367
viewsA: How to disable Developer Tools options in Chrome
Chrome wraps all console code in: with ((console && console._commandLineAPI) || {}) { <code goes here> } ... That’s why the site redefines console. _commandLineAPI with:…
-
2
votes1
answer169
viewsA: List View with Textview and Imageview
Do not confuse URL with URI. You cannot request data from a URL, example: www.meusite.com.br/imagens/imagem.png, through setImageURI(). This is one thing [searches the image on your device through…
-
1
votes1
answer147
viewsA: Place gallery with text
Well... Your question is very vague, but when presenting only XML code, I can answer that there is only one <ImageView , ie ONLY ONE IMAGE. Add one more <ImageView to your xml and for the…
-
2
votes1
answer890
viewsA: Redirect .com.br domain to . com
Do you have . htaccess? Apache server? You could use mod_rewrite to do this. RewriteEngine on RewriteCond %{HTTP_HOST} !^example\.com$ RewriteRule ^ http://example.com%{REQUEST_URI} [L,R=301]…
-
1
votes1
answer2295
viewsA: Program android notification
Source: https://dhimitraq.wordpress.com/2012/11/27/using-intentservice-with-alarmmanager-to-schedule-alarms/ Github: https://github.com/CS-Worcester/TaskButler You need to create a service to…
-
4
votes1
answer182
viewsA: How to print an X message in X minutes with Javascript
I advise you to do this in Javascript. It would be something like this: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"…
javascriptanswered Lollipop 4,918 -
1
votes2
answers1524
viewsA: Upper or lower case URL
Domain names are not case sensitive but Urls are. So if for some reason you have decided that your Urls will be uppercase remember that the user is not used to typing this way. Stay tuned if you…
-
1
votes2
answers238
viewsA: Httphostconnectionexception - Android
If you are referring to a localhost on your device use the http://10.0.2.2/ instead of the http://127.0.0.1/ or http://localhost / . Because your Android emulator is running on a virtual machine…
-
2
votes1
answer227
viewsA: Best score with playerprefs Unity-android
Friend, see if it is not related to the path of playerprefs on Android, as it is different from PC. On Android they are stored in the phone’s internal memory on…
-
2
votes1
answer1138
viewsA: Remove item from Listview
You performed the first step, which was to delete the Listview item. However, this item will persist as it was not deleted from the Database. When the Activity is recreated, the list is reorganized,…
-
3
votes2
answers135
viewsA: Outofmemoryerror error while downloading object list
If you have a high resolution image, you should shrink it. Refer to the topic under Down in a reduced version in memory. http://developer.android.com/training/displaying-bitmaps/load-bitmap.html…
-
2
votes2
answers2487
viewsA: Render HTML using PHP
@Ricardo, as answered our friend @Jonatas Oliveira, and answering your question in the comment, the solution put is static. See the differences between: include() require() include_once()…
-
-1
votes5
answers206
viewsA: Problems sending many variables through _GET
According to what Nelson said, do something like this: $json = file_get_contents('url_aqui'); $obj = json_decode($json); echo $obj->access_token; For this to work, file_get_contents requires…
-
2
votes1
answer223
viewsA: Failed Android Sqlserver connection
To resolve SSL problems with Sqlserver ( especially for android clients : JDBC driver cannot be used effectively on Android operating system unfortunately) try using JDTS :…
-
1
votes1
answer2667
viewsA: Error publish apk in play store, SHA1 certificates are different
You need to solve two things: 1 - Change all the Packages names of your project and if possible the name of the project in the xml mainfest 2 - Generate a new Key Isso é chato, mas resolve!…
-
4
votes2
answers814
viewsA: Funcao mail in php
You asked if you have any way of knowing if it was sent, has, and, I advise you to perform the third option: 1 - You can use error_get_last(), while mail() return false. With…
-
0
votes3
answers1670
viewsA: Limit HTML5 Audio Controls
THIS IS WHAT YOU NEED: <audio id="demo" src="audio.mp3"></audio> <div> <button onclick="document.getElementById('demo').muted = true;">Mute</button> <!- ISTO ABAIXO…
-
0
votes2
answers1610
viewsA: Android with PHP Web Service
An option can be via JSON by sending a request by GET to a PHP variable by giving select in an external database via SQL. Click on this link below. I already answered how it does: Implement HTTP…
-
0
votes1
answer418
viewsA: Button with responsive image
Wrap each Linearlayout in a Framelayout. A classic example: <? xml version = "1.0" encoding = "utf-8" ?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"…
-
1
votes1
answer302
viewsA: How do I generate an automatic IP (DHCP) in VB.NET
A Windows-based computer configured to use DHCP can automatically assign an IP address if a DHCP server is not available. For example, this can occur on a network without a DHCP server or on a…
-
0
votes2
answers3899
viewsA: Picking text between two words with regex
1 - Use strlen It returns the length of a text passed as argument. Example of using the strlen function: <?php /*string strlen (string entrada)*/ $qtd_char = strlen("Linha"); echo $qtd_char;…
-
0
votes3
answers2766
viewsA: Get id of the last record inserted in the database
Well, actually, the class SQLiteDatabase has its own insertion method that returns the ID of the newly created line. I think this is the best way to get the new ID. You can check your documentation:…
-
3
votes2
answers2093
viewsA: How to detect screen resolution to apply the layout on android?
Very simple, friend. Use this and develop! Configuration config = getResources().getConfiguration(); if (config.smallestScreenWidthDp >= 480) { //Toast.makeText(this, "Igual ou maior que 480dp",…
-
0
votes1
answer732
viewsA: Redirect post login on facebook
Beware of the Urls you use for facebook check, as not all will be accepted for redirects. Try manipulating via Javascript. See this: <script src="http://connect.facebook.net/en_US/all.js">…