Posts by Samuel Ives • 1,676 points
99 posts
-
1
votes1
answer871
viewsA: How to install the freeglut library in dev c++?
Withdrawal response from a discussion from the Dev-C page++: 1) click on the Projects -> "Project Options" -> "Parameters" 2) under "Linker", where it says: "Add library or object", click on…
-
2
votes1
answer713
viewsA: How to make an application in two languages by changing the language in the Settings menu? Android studio
The best way to do this would be to add different.xml strings in different resource folders, for example: res/ values/ strings.xml // Idioma padrão values-pt-rBr/ strings.xml // Idioma português…
androidanswered Samuel Ives 1,676 -
4
votes1
answer112
viewsQ: Logic of these bit-by-bit operations
It’s been a long time since I wanted to start in the world of emulators, I decided to stop trying to make an emulator of a complex system and start with a very basic one, a CHIP-8 emulator, which is…
-
0
votes1
answer193
viewsA: Open images from an external server folder on android
You can recover the image through an Inputstream and use the Bitmapfactory.decodeStream () to create a bitmap from Inputstream, and then use setImageBitmap() for the image view to display the image.…
-
0
votes0
answers294
viewsQ: App does not appear in the list of app you can share content with
Well I have an app that serves to download and watch videos online, one thing I’ve been trying to do for some time is make my app appear in the list when sharing a link or an html page. Here is my…
-
2
votes2
answers124
viewsA: Tablayout under the actionbar
Apparently you’re wearing a Constraintlayout but the problem is that you are putting all the top layout Constraint as Parent. Solution First it is recommended that you use a base style without…
androidanswered Samuel Ives 1,676 -
0
votes1
answer202
viewsA: How do I use github lib in my Android Studio project?
Probably like any other library (or most of them at least). By adding the app-level build.Radle to your project, the developer page android explains how to use Gradle. An example: apply plugin:…
-
0
votes1
answer203
viewsQ: Android Bullet style menu in Recyclerview item
First of all I already have an intermediate knowledge about android and I already have some apps in google play. Recently I’ve been updating the layout of my app, I have a video gallery in my app…
-
0
votes1
answer208
viewsA: How to make a View overlap?
You can use the Framelayout to make one view overlap another. Here’s an example of my video player: <?xml version="1.0" encoding="utf-8"?> <FrameLayout…
-
-1
votes1
answer100
viewsA: To with doubt meta charset utf8 or http-equiv
<meta charset="utf-8"> relates to encoding of characters for the browser, for example, some browsers may not recognize accented characters as ã and show a strange character, charset utf-8 will…
-
0
votes1
answer268
viewsA: How to edit Wordpress HTML and CSS
As far as I know and from the experience I had you either create or edit a theme ready and then install the theme on the Wordpress panel. https://developer.wordpress.org/themes/getting-started/…
-
0
votes1
answer60
viewsA: Responsive Website with jQuery
Simple, with CSS and following some rules, jQuery is just a javascript library so it will not set the style of the page, what I recommend is to use measures with % instead of pixels because it will…
-
0
votes1
answer72
viewsA: Take photo in android application and save in a folder within the project (No drawable for example)
As far as I know it is not possible to write anything in drawable or any other application directory because it is inside the APK. The ideal would be to save this photo in the storage of the device.…
-
1
votes1
answer35
viewsA: How to compile C++ in Visualstudio using linux inside windows
This tutorial by Microsoft exemplifies how to do this in visual studio, but to run according to the tutorial you will need a Linux machine connected remotely (I’m not sure if it would be possible to…
-
5
votes1
answer209
viewsQ: If C/C++ are native languages then why do they need runtimes?
Usually the first thing that came to my mind when I heard the term native language, was a program that ran independent of operating system, communicating directly with hardware, I always developed…
-
0
votes3
answers1443
viewsA: C++ - How to create a window in windows
You can follow this tutorial using Windows API but not recommended as it is limited, the ideal would be to use Qt as it is cross-platform, has many features for window creation including a visual…
-
1
votes2
answers74
viewsQ: How to find the data type of a binary file
One problem I often face is figuring out what kind of data to use to store the contents of a binary file. For example when I start a simpler emulator project like CHIP8 or Gameboy, I usually use an…
-
0
votes1
answer139
viewsA: Http requests using the C language in windows?
You can use Windows Sockets 2, or use Qt which has a wide network library and is cross-platform
-
1
votes0
answers69
viewsQ: How should a dynamic recompilation work?
Sometimes reading about emulation and even developing my own emulators is inevitable not to come across the subject. Basically there are two types of emulation, by means of dynamic interpretation or…
-
1
votes2
answers48
viewsA: Error in form validation
The best option would be to use the .validate a jquery plugin as mentioned above, this plugin allows you to specify a set of rules for the content validation messages and validation in real time,…
-
2
votes2
answers425
viewsA: Insert data into XAMPP database with php
From what I could understand you want to record user data in the correct Mysql database? First you must create a database and a table, you can do this in phpmyadmin, if you are using wampserver or…
-
3
votes1
answer406
viewsA: Error in findViewById declaration on Android
Probably your build.Radle should not be synchronized so just synchronize, you can also try Build -> Clean Project, or File -> Invalidate Caches / Restart... -> Invalidate and Restart or…
-
0
votes2
answers117
viewsA: How to pass a java object array to Asynctask? My problem is that when I use this looping in Asynctask pq only comes first user [0]
As far as I know you need to specify the types that the asynctask will work, pass the parameters in your asynctask.execute(the input type if not void is an array), and recover in…
-
1
votes2
answers720
viewsA: How to pass image from one Imageview to an Imageview from another Activity?
As far as I know the identifier that you put in the Intent for bytes should be the same when it is to rescue your bytes in the second Activity. Example, if you put "bitmapbytes" as identifier for…
androidanswered Samuel Ives 1,676 -
1
votes1
answer364
viewsA: Cast webview android studio
Recently I was giving support to my video download app just to cast support, I found the following options: Google cast SDK With it you can stream video, audio or hers from some app or game, it is…
-
0
votes1
answer86
viewsQ: C++ Character buffer adding no characters
Well, I have an application for android that uses Opengl ES 3.1, I did all the procedure to compile the shaders, I decided to put them in a separate folder in Assets, to recover the content I am…
-
0
votes1
answer88
viewsQ: C++ - What are the effects of & Hexadecimal operator?
I’m with a project of a Gameboy emulator for android, so far what I got was: Identify the game type (Gameboy, Super Gameboy, Gameboy Color, etc). Identify the game region. Extract the game title.…
-
2
votes1
answer105
viewsQ: C++ Std::string.c_str() always returning NULL
I recently asked a question, because istreambuf_iterator does not work on android NDK, as I had no answer I decided to investigate myself, I created a project in Visual Studio 2017, simple thing,…
-
7
votes4
answers1780
viewsQ: After all, why does the PHP source code not appear in the browser?
Well, I know that PHP is an HTML pre-processor, I know that it is interpreted by PHP and is rendered on the page but the source code does not appear. But is it really safe? I know it’s possible to…
phpasked Samuel Ives 1,676 -
0
votes1
answer235
viewsQ: Why is it impossible to use Opengl in Qt 5?
Probably, Opengl is the only thing I can’t use in Qt, maya and 3ds and other Autodesk programs use opengl in Qt, but no tutorial or example that works. I already created a class for the widget based…
-
3
votes2
answers1298
viewsA: Which tool to use for sending SMS in Arabic
Take a look at the Twilio. It has a lot of features targeting mobile telephony such as automatic messages, sms checks, automatic voice call etc... It is compatible with Phyton, Java, C#, Ruby, PHP…
-
-1
votes3
answers73
viewsA: When I click on the text it does not change (js)
Try <!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="utf-8"> <title>Testes JavaScript</title> </head> <body> <h1 id="title" onclick =…
-
0
votes1
answer95
viewsQ: Null object array - Android Base Adapter
Hello I was making a gallery, I created the Adapter, worked normally, so proceed to the step of listing files in a directory and then put in the list: ArrayList<GalleryItem>items = new…
-
1
votes1
answer280
viewsQ: Grab hidden extension from Uri
I have an app to watch and download videos online, my code detects mimetype by the url to use as the video extension downloaded. But some sites have the hidden extension, such as this url:…
-
0
votes1
answer38
viewsA: Extracting array values and transforming into integers
I usually access the return value by accessing the indexes of the arrays, for example: $result = $conn->query($sql) or die('Nao foi possivel executar o comando.'); $rows =…
-
1
votes2
answers71
viewsA: Replace part of string with drawable or image
Well I usually use fromHtml() to show a text formatted as html in a text view, take a look here https://stackoverflow.com/questions/15617210/android-html-fromhtml-with-images person shows how to…
-
0
votes1
answer2046
viewsQ: Kotlin vs java performance and is it worth trading java for Kotlin?
The running performance on android (I refer to the speed of the application and not the build speed, because benchmarks on powerful machines showed the slower Kotlin than java in terms of…
-
2
votes2
answers11213
viewsA: Is it possible to create a C/C++ app for Android?
Well, for normal applications I do not see advantages, so much so that I knew ndk I thought it was possible to create applications 100% in C/C++, but it is not so much so that something that eluded…
-
0
votes1
answer67
viewsA: How to assign multiple events to the same button?
If you want to use more than one event on a single button recommend using the Toggle Button, I believe there must be a way to add more states to the Toggle Button…
-
0
votes0
answers21
viewsQ: Failed to create a dll with constructors in the classes
I created a header with dll settings: globaldef. h #pragma once #ifdef OPENXML_LIB #define OPENXML __declspec(dllexport) #else #define OPENXML __declspec(dllimport) #endif // OPENXML_LIB I have…
-
0
votes1
answer53
viewsQ: Google extension Chrome shows no default popup
I started yesterday developing extensions for google Chrome, and followed how google sends: I declared my manifesto and added the popup page: { "name": "ODM Integration", "description": "Open…
-
6
votes1
answer298
viewsQ: Performance differences between structs and classes
I know the difference between structs and classes is that structs has its public members by default, and that structs belong to C (but nothing prevents use in C++). In practice when creating an…
-
0
votes1
answer83
viewsA: Function NS_LOG - NS3(Network Simulator): What does the operator "<<" mean in practice?
This is a left bit shift operator: https://msdn.microsoft.com/pt-br/library/336xbhcz.aspx
-
0
votes2
answers1323
viewsA: Can I replace Cout and printf?
Cout belongs to C++ and is in the iostream header example: #include <iostream> #include <string> int main(int argc, char* argv[]) { std::string nome; //String que guardará o valor de…
-
1
votes1
answer61
viewsQ: Non-existent C++ class pointers, how does it work?
Sometimes I find myself in situations like this: #ifndef CRIARVENDA_H #define CRIARVENDA_H #include <QDialog> #include "cliente.h" namespace Ui { class CriarVenda; } class CriarVenda : public…
-
-3
votes5
answers1530
viewsA: Do programs written in C# depend on the . NET Framework to run?
But of course it depends https://docs.microsoft.com/pt-br/dotnet/csharp/getting-started/introduction-to-the-csharp-language-and-the-net-framework, early on C# was called J++, microsoft wanted a…
-
1
votes4
answers13368
viewsA: What are files with extension . cpp and . h?
.cpp are C++ and . h source codes are C headers (although they can be used in C++) C++ has its own headers extension. hpp
-
1
votes1
answer5530
viewsA: Passing parameter to another Android Activity
Friend, pass values to other activitys using https://developer.android.com/reference/android/content/Intent.html for example: Main activity: //MainActivity.java Intent it = new Intent(this,…
-
-1
votes2
answers136
viewsA: Scan more than one string
Dude, scanf is C, In C#: https://msdn.microsoft.com/pt-br/library/system.console.readline(v=vs.110). aspx? Cs-save-lang=1&Cs-lang=csharp#code-snippet-1 Example from microsoft: using System;…