Posts by Henqsan • 407 points
42 posts
-
0
votes1
answer275
viewsQ: Testing whether a key contains a value within a json
I’m trying to verify that in a particular key of a json there is a value, but I’m not getting it. I’ve tried using includes, indexof, some, among other javascript functions. I have an array with…
javascriptasked Henqsan 407 -
2
votes1
answer68
viewsQ: Javascript does not load pre image preview
I am using the code below for image preview before the Submit command of an html form. HTML <div class="col-md-2"> <form method="POST" enctype="multipart/form-data"> <img…
-
0
votes1
answer415
viewsQ: Pass select Multiple values by ajax
I’m trying to pass the selected values in a select Multiple by ajax but I’m not getting it. When executing my code there is no error, but the values arrive empty to the database. The code below is…
-
1
votes0
answers21
viewsQ: Has there been a change in the way of implementation of admob in Android app?
Could someone please let me know if there has been any update in the form of admob implementation on Android apps?
-
2
votes1
answer137
viewsQ: How to pass mysql table field name as parameter via PDO PARAM?
I have a form where the user sets some criteria for the system to do a search for data in a mysql database. Among the criteria, the user can choose two search options. These options are two fields…
-
0
votes2
answers334
viewsQ: Count items separated by semicolons in mysql table field
I have a table in the mysql database where in the field tags values are stored in this format: +-----------------+ | tags | +-----------------+ | B27;C38;H45;B27 | | C38;H45 | | B24;C45;L55;K98 |…
-
1
votes1
answer526
viewsQ: Search field of jQuery datatable
I’m using the jQuery Datatable component. In the visualization in the computer the table with the search field is ok, but when viewing in the cell the field exceeds the panel where it is inserted,…
-
0
votes1
answer107
viewsA: Variable not defined in PHP Class
Problem presented in the question was solved using instead of require_once() the require(): class InsertAccess{ public function insert_access($reg){ require('../conn/conecta.php'); $status = '1';…
-
-1
votes1
answer107
viewsQ: Variable not defined in PHP Class
I created a PHP class to update the data of a record in a table in the mysql database: <?php class InsertAccess{ public function insert_access($reg){ require_once('../conn/conecta.php'); $status…
-
0
votes1
answer63
viewsQ: Asynctask Android generating Nullpointerexception
I have this static class in an Activity where its function is to download a file and save it on the user’s device. I tested on a real device in the version of Android 7.1.1 and 4.1.2 and worked…
-
0
votes2
answers826
viewsA: Return to a previous Fragment from any Fragment
I do not know if it is the most correct way to solve the problem I pointed out, but I solved it in the following way: In the Factions includes: @Override public void onAttach(Context context) {…
-
2
votes2
answers826
viewsQ: Return to a previous Fragment from any Fragment
I have a main activity in which are called some Fragments: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);…
-
1
votes1
answer335
viewsA: Run sql file with Sqlitedatabase Android
To solve the problem I checked in the sql file that there were no empty lines, however there were some lines that were "broken" in two, as exemplified below: INSERT INTO 'tab_status' ('id',…
-
0
votes1
answer335
viewsQ: Run sql file with Sqlitedatabase Android
I am implementing in an Activiy the download of an sql file from a server on the web. The Download I’ve managed to do and is working smoothly. However, taking this downloaded file and having it run…
-
0
votes0
answers417
viewsQ: Problem in this style.xml Android Audio
With these latest updates of Android Studio I’m surprised in the Styles.xml file of the project that Theme is in red, as can be seen in the image below: CODE <!-- Base application theme. -->…
android-studioasked Henqsan 407 -
2
votes2
answers742
viewsA: How to put paging in foreach that returns a JSON list with ajax
To use dataTables is very simple. I made an example in a few minutes. Follow these steps: Download the plugin on this link In step 2 check option jQuery 3; In step 3 download the files; Unzip the…
-
0
votes1
answer1220
viewsQ: SQL to find number within a range of two Mysql table fields
My Mysql table has the following fields: id; num_min; num_max; The user will enter a number and need to check if that number is in the range between the column num_min and num_max of the table. I…
-
0
votes1
answer608
viewsQ: Pass Activity variable to javascript function in Android webview
I’m trying to pass a variable that’s in Searchview on Toolbar from an Activity to a javascript function of a webview loaded html page, but I’m not getting it. I have been researching for two days…
-
0
votes1
answer39
viewsQ: Date formatting problem Standard 5.5
I am trying to solve a date formatting issue before sending to database but am not succeeding! I am using in a form the plugin datapicker, as shown in the image below: In my Controller I have this…
-
0
votes0
answers906
viewsQ: Pass Controller data to a modal in the Laravel 5.5 view
I’m trying to pass data from a Controller to a Modal in the view. In the view I have this code populating a datatable as soon as the page loads: .... @foreach($exames as $exame) <tr>…
-
1
votes1
answer576
viewsQ: Redirect after update Readable
I’m working on a project with Laravel and I came across a problem. After Update I want to redirect the user to another specific page. In the update function of my Controller I have this code: public…
-
1
votes2
answers228
views -
1
votes1
answer314
viewsQ: HTTP connection to server does not return JSON data
Hello, I am trying to get the data of a query via HTTP, but it is returning me this error: org.json.JSONException: End of input at character 0 of The Code I have is this: private class AsyncFetch…
-
2
votes1
answer1417
viewsQ: Query mysql to take two-line data and merge into one
Hello, I am unable to execute a query in mysql. I have a table that has the following fields: numero | data | descricao | norma 001 | 2017-02-28 | Lapis | NBR 001 | 2017-02-28 | Lapis | ISO As in…
-
0
votes1
answer188
viewsQ: Connect android app to a software installed on the pc to transfer file
I will start developing a software in Lazarus and an application for android. I wonder if there is any library or any reference to make communication via usb between the software and the…
-
0
votes1
answer221
viewsQ: Check for active subscriptions with Billing Android App
Hello, I am implementing subscriptions in my app that will serve to remove the ads. I have an Activity that is doing the shopping and is working. When the purchase is successfully completed I save a…
-
-3
votes1
answer381
viewsQ: Does Firebase have file storage and download limit?
I am studying storing files in Firebase so that users of my application can download them. Would someone like to tell me if there is a limit to the storage and download of files stored in Firebase?…
-
0
votes1
answer55
viewsQ: I cannot pass the URL of a downloadable pdf file without a static variable
I am using the code below to try to download a pdf file through a URL. Activity "Downloadactivity" just download, and the URL link should be passed by parameter through another Activity. The problem…
-
0
votes1
answer1496
viewsQ: How to check if file exists in the application directory in the internal storage?
I am trying to check if a file exists in the application directory in the internal storage with the code below String path =…
-
-1
votes1
answer444
viewsQ: What is the best way to download files and save them to different folders within the android Assets?
What is the best way to download pdf files and save them to different folders within Android Assets folder? For example, in folder A I will have 10 specific files, in folder B 20 specific files, so…
-
0
votes2
answers74
viewsQ: Control video volume in Banner Interstitial Admob
I am using in my app interstitial banners admob. There are complaints from users that the volume of videos displayed in this type of banner (usually videos are about games) are high. Logically I…
-
-1
votes1
answer715
viewsQ: onClick Recyclerview Android
I’m following this implementation tutorial of Tablayout and Viewpager with Recyclerview: Tablayout and Viewpager with Recyclerview I’m using this project to test how to catch the click action in…
-
2
votes2
answers522
viewsQ: Webview links do not work
Something has changed in the implementation of Webview, Webviewclient for android 7? I have some html files in a subfolder inside the Assets folder. The file html list., which contains other links…
-
0
votes1
answer89
viewsQ: Animation for android
How to make this kind of circle animation for android?…
-
0
votes2
answers840
viewsQ: Create elements at runtime on Android
You can create elements at runtime on Android? For example, I want to build an app where the user can create a survey or Checklist and save to the database. Depending on the questions or items to be…
-
0
votes1
answer130
viewsQ: View Interstitial by clicking the Toolbar home button
I tried to implement the display of an interstitial banner on the home button of my activitys but it didn’t work properly. I used @Override public boolean onOptionsItemSelected(MenuItem item) { int…
-
0
votes2
answers488
viewsQ: Delay in loading Recyclerview
It is normal to take 3 seconds to load a recyclerview with data of 16 thousand records in sqlite? Is there any way to optimize the load? Code here…
-
0
votes1
answer129
viewsQ: Problem with tablayout and sqlite
Hello guys I’m reformulating an app and includes in the main Activity a tablayout that inflates two Fragments. An Fragment should present on a cardview all data stored in the database. Scrolling the…
-
2
votes1
answer6420
viewsQ: Android App icon size
I’ve noticed that when I install my app on mobile the app icon is smaller than most other apps. I set the icon by android studio itself using a png image. How to make the icon bigger as well as most…
-
1
votes1
answer711
viewsQ: Update in Sqlite Table via Imagebuttom Android Studio
I have a project that I am developing in Android Studio where I use a Custom Adapter, an Employee and a Databasehelper. What happens, I use a database already populated that is in the Assets folder,…
-
2
votes3
answers953
viewsQ: Read txt line and include ";"
I have a txt file whose lines have the following data: 0 02 020 0201 020110 Z DEMONSTRAR COMPETÊNCIAS PESSOAIS 1 Primar pela correção de atitudes This way I can not import the data either to excel,…
-
1
votes2
answers3816
viewsQ: Fade effect of elements just by visualizing them with bootstrap
I wonder how to make that effect fade of elements on the page only when it is viewed. For example, I have seen some websites made with bootstrap that when scrolling the page the elements will be…
twitter-bootstrapasked Henqsan 407