Posts by Jonnys J. • 407 points
33 posts
-
0
votes0
answers118
viewsQ: Multiplos Broadcast Receiver
I am writing an Android app and need to recognize various system status like connection , battery status and some other, my doubt would be, how to create a function for that? i created the following…
-
1
votes2
answers2112
viewsQ: Mascara for money on android
I am creating a function for when the user type in a EditText , he returns me with a masca in the field, Example: Typing 1 returns "R$ 0.01" When typing 11 returns "R$ 0.11" and so on and so forth I…
-
1
votes3
answers1664
viewsA: String Format CPF on Android
the function that Rogers went through, worked perfectly. I edited and stayed like this for android: public static String cpf_formatado(String cpf) { cpf =…
-
0
votes3
answers1664
viewsQ: String Format CPF on Android
I have a CPF variable that is populated with a value that comes from the database (11122233344). Before giving setText(), I need it to be formatted in 111.222.333-44. How could I do this?…
-
0
votes0
answers102
viewsQ: onActivityResult in another class
I am creating an app where I have several camera calls, and I would like to create a class to call the camera to use in the project , well, the call from Activity is being made with the…
-
4
votes1
answer259
viewsQ: problem with vectors in android studio
I’m having trouble inserting vectors in android studio my project was created in api21 (5.0), I am testing on a 7.0 device and this is all ok , working perfectly, but an error occurred when running…
-
1
votes1
answer657
viewsQ: return function json object
i have an android function that connects to the server and returns me a json, that json and stored in a variable called object. however I have to make this object go to another screen via Return but…
-
2
votes1
answer2355
viewsQ: Uppercase and Lowercase Letters only and regular expression accents
How to create a regular expression in the right way where only uppercase and lowercase letters are accepted, along with accents? This is to validate a string by name, I created it as follows:…
-
0
votes1
answer89
views -
0
votes2
answers144
views -
0
votes2
answers144
views -
0
votes1
answer781
viewsQ: Runtime permissions on android
I have a code in android studio that asks the user, permission to use the phone service (to pick up Imei) well, my code is working perfectly, with a problem, when entering the page, a message is…
-
2
votes1
answer97
viewsQ: Initialize element from one fragment into another
I have two fragments attached to my Victoria. My doubt is, how I initialize an element that is in another fragment? In a fragment, to access Activity I use the code Textview tv =…
-
0
votes1
answer1059
viewsQ: Create separate method to call Activity
i created a script where I intend to call separate activities but it’s not working package com.example.john.new_login; import android.content.Context; import android.content.Intent; import…
-
0
votes1
answer3159
views -
0
votes0
answers67
viewsQ: word limit with jquery
i am using the xoxco jquery.tagsinput plugin to insert a field with tags in my article, however I need a limit of tags inserted there, so I need a word counter to limit how many words are inserted,…
-
0
votes1
answer241
viewsQ: upload api for Imgur
I am working on a project where I will upload images , good thanks to the forum I discover the IMGUR, to host my images and let the host of my site more free, good but here comes the master…
-
1
votes1
answer1409
viewsQ: jquery copy and paste button
I would like to 'create' the copy command and paste command with jQuery. I have a form and need to put a paste button on it to make it easy for the user The user clicks to copy the youtube embed URL…
-
4
votes5
answers16658
viewsQ: input only numbers with jquery
I have a function that validates typed characters and does not let the user use special characters but this same function does not work for numbers, someone knows some function in jquery to validate…
-
0
votes2
answers3901
viewsQ: Currency Mask with jquery
I need a tag for a value field, I’m using jquery.maskinput works perfect but I have to enter the entire value! what I’m looking for is a mask that fills automatic " R$ var.000,00 " for example, if I…
-
-4
votes1
answer153
viewsQ: insert data with ajax and switch in php
I have a php script that I use GET to take a parameter from url and move on to a php switch and perform a certain function. That one script works perfectly without errors but how to use it with…
-
1
votes0
answers38
viewsQ: Cellular number validation with jQuery
Is there any library that validates the number typed by the user? Example: If the user types (11)11111-1111 or (22)2222-2222 and so on, if you type something similar, it shows that the phone is…
-
0
votes2
answers192
viewsA: load div with ajax without error in the answers
good people, thanks to @Rafael Acioly, he gave me an idea to activate ajax only when the cep field is fully filled, well I made a small change in the code and finished as follows, the php function…
-
0
votes2
answers192
viewsQ: load div with ajax without error in the answers
I have a problem with my ajax script, its function is to take the typed zip code and bring its values via API , however it is presenting an error that I cannot solve, by typing the complete zip code…
-
3
votes1
answer1708
viewsQ: user location by IP
I would like to know a php library that would help me with the location of the user access by IP, well I found one on the internet and even worked well (did not show exactly the location) only a 50…
-
0
votes1
answer350
viewsQ: php browser information and operating system
I need some help with some library that detects the operating system and the browser used by the client, I searched a lot on the net and I didn’t find anything worth, only a lot of tangle of code…
-
1
votes1
answer81
viewsQ: Server to save images
I would like to know about saving image after upload. It is safe to save image in the site directory itself or there is some server for it? For example, I have a news site and after you register the…
-
1
votes0
answers74
viewsQ: Convert and edit images with jquery and php
I have a grid doubt that I can not find on the internet or in video lessons. I need a class for image upload, what I need is: When the person chooses the image, they will open a box where the person…
-
0
votes2
answers1603
viewsQ: Load content from another jquery file
I would like to know how to load the code from another html or php file using the function $(".div").load("html.html"); The mistake here would be : It loads the code perfectly, but I have a button…
-
0
votes0
answers151
viewsQ: scroll linked to a div in html with javascript
the function I have is to show me more articles every time I arrive at the end of the page ( infinite scroll paging ) works perfectly but I have a doubt that I am not able to solve, I want to load…
-
0
votes1
answer201
viewsQ: infinite scroll with msg at the end of the results
I am starting now in javascript and ajax so there is much I still have doubt I created an infinite scroll system but what I’m not knowing to create is: when you reach the end of the column or (…
-
3
votes2
answers2055
views -
0
votes1
answer153
viewsQ: Calendar php with login
I need to make an agenda with login where I register in the system and do login. After login, register my agenda lines in the fields lugar, pais and descrição. I can save as many lines as I want on…