Posts by Rene Freak • 938 points
72 posts
-
0
votes3
answers707
viewsQ: Formatting dates for display and storage
In this Android app, I have a date field in the SQLITE database table, thus defined: String createTable = "CREATE TABLE " + TABLE_RUNS + " ( " + _ID + " INTEGER PRIMARY KEY AUTOINCREMENT, " +…
-
2
votes1
answer93
viewsA: Doubt in Phpmailer
Use this line $mail->AddReplyTo($emailFrom, $nameFrom); Whereas $emailFrom and $nameFrom are values that come from the form and you receive as variables.…
-
2
votes1
answer82
viewsA: I can’t open the map in my position
I used this lib in my project. It made it very easy. smart-Location-lib It is in English. If you have difficulty, use the translator Google translator Follow the instructions and return here with…
-
1
votes2
answers1670
viewsQ: How to update recyclerView after updating data via dialog
My app works more or less like this. Inside a fragment I have a Recyclerview composed of cardviews, fed by a database. On each card, there is an edit button (imageView) that opens a dialog…
-
1
votes1
answer1022
viewsQ: Is it mandatory to publish the app in an official store to use Admob?
I’m finishing an app that features banners coming from Admob. It wasn’t clear (to me) if the app has to be distributed in an official store (Google Play or Apple App Store), or if I can distribute…
-
1
votes4
answers5940
viewsA: How to make an image increase without losing quality with CSS?
When you try to 'scale' an image to make it look smaller, the pixels are compressed and the image may get even sharper than normal, but when you use it to increase, the pixelization effect occurs.…
-
-3
votes2
answers10069
viewsA: When and why use session_start?
The function should only be called once, after user login? In this context, the session has nothing to do with the user logging in or not. A server session starts when a user enters the site. At…
-
0
votes1
answer307
viewsA: Error in php’s date function?
Try: $vencimento = date('d-m-Y', strtotime($_POST['txtVencimento']));
-
0
votes4
answers691
viewsA: How to send form data to mysql?
You should use a master-detail data model. At least two tables. One is master of the order: number, table, hour, waiter, etc. and the other with the details, which are the items: product, Qtd,…
-
0
votes1
answer70
viewsA: Center menu or by 10% left margin without compromising resposivity
The explanation and more examples are here , (in English) To center an element use: margin: auto; The section you showed would look like this: .nav-tabs { background-color: #ffff00; margin: auto; }…
-
2
votes1
answer1010
viewsA: Layout does not occupy full screen
Since I don’t have your drawables and values, and you haven’t shown exactly how you’d like the layout to look, I improvised on top of the code. I put colors in the background of the layouts (to…
-
4
votes2
answers1315
viewsA: How to remove specific markers from a Googlemap
The solution was thus. In the delete button (X) Listener of the recyclerView adapter, we delete the record and then call the method in Mainactivity: holder.ivDelete.setOnClickListener(new…
-
0
votes1
answer111
viewsA: Calculate sql table in android
Use "SELECT sum(total) as GrandTotal from tabeladados WHERE data BETWEEN '"+data.getText()+"' AND '"+ dataa.getText()+"' ORDER BY data DESC" As SQL model. Next, how would the code look: Double…
-
3
votes2
answers1315
viewsQ: How to remove specific markers from a Googlemap
So, this app works like this: the user inserts a journey that goes from point C (collection) to point E (delivery). These points are shown on the map, in the form of markers, as in the figure below.…
-
2
votes2
answers394
viewsA: Spinner together
To enable/disable a view, use the setEnabled method(). Spinner capitais = (Spinner) findViewById(R.id.spinnerCapitais); capitais.setEnabled(true) // para ativar a view capitais.setEnabled(false) //…
-
1
votes1
answer1104
viewsA: Android - Generate Apk
Assuming you want to generate APK for production (for distribution), you need to generate the keys in Build>Generate Signed APK instead... This link can help Prepare for the Launch If it is not…
-
0
votes1
answer473
viewsA: How to correctly write a project vision document?
In my humble opinion, the simplest way is to use the Socratic method, i.e.: What? Why? Like? Where? What is not? Completion Vision Reflecting on these issues you can reach the conclusion and from it…
-
1
votes1
answer71
viewsA: Registration and login form in Wordpress with woocomerce
Not all WP themes are compatible with Woocommerce and some of which are, have to be configured/structured to work properly. Sometimes, when we change the theme, the structure of the site is changed…
wordpressanswered Rene Freak 938 -
0
votes1
answer44
viewsA: Simplest method to change GET parameters
Since the site is done in WP, it goes in the panel (wp-admin) and Settings > Permanent Links. You can choose from common settings or customize according to your preferences.
-
1
votes3
answers1031
viewsA: How to insert markers (Marker) into a map in another Fragment?
I ended up finding a solution to 'find' the correct element in the map’s Fragment and insert the markers. The interface method: public void addMarkersToMap(RunData runData) { if (runData != null) {…
-
2
votes9
answers12142
viewsA: Search via ajax during input text ( autocomplete )
You can restrict requests on time by using a session variable or cookie. Before making a request, you test the variable to see if time has passed. If yes, execute the request and update the variable…
-
2
votes3
answers1031
viewsQ: How to insert markers (Marker) into a map in another Fragment?
I’m developing a app Android where you insert a courier task list (pick something up on the dot A and bring to the point B) and these dots are shown on a map. The App has two fragments:…