Posts by Vitor Herrmann • 339 points
15 posts
-
0
votes0
answers73
viewsQ: Upload files from Android
I made an application where I select a photo from the album and upload it to an imageView. Now I need to do a function to upload this same image to my FTP online. I’m seeing n examples and nothing…
-
1
votes0
answers161
viewsQ: My app does not run on android Lollipop
At a certain point in my app, payment occurs with pagseguro, and for this I open a page in a webview, responsible for this service (passing the card data by GET). When the page finishes being…
-
1
votes1
answer74
viewsQ: Problems with Asynctask
I’m trying to file a request for JSON, along with Asynctask. With this, I called the JSON in the InBackground method, however, the code executes the Jsonarrayrequest onResponse method after the…
-
1
votes1
answer247
viewsQ: I add items to Arraylist but when I use it it is empty
I cannot add items to my Arraylist Main class, where the array is instantiated public class act_principal extends AppCompatActivity implements NavigationView.OnNavigationItemSelectedListener{…
-
2
votes1
answer885
viewsQ: Change Fragment components through an Activity
I’m making an application with NavigationDrawer, and not to create another activity, I’m using fragments, where every click replace in the FrameLayout that I left set as main. How I access the…
-
0
votes0
answers29
viewsQ: C# RLDC - Group report
I have two tables: Product and Category. I would like to display all products, grouped by their categories. I am using Parent Group and it works perfectly, but I would like to display the category…
-
1
votes2
answers756
viewsQ: Checkbox in Datagridview C#
Good afternoon. I have a datagrid view with a checkbox type column, tied to a Datatable with the checkbox type column as well. My problem is this: I have to go through a attendance list, if the…
-
1
votes1
answer84
viewsQ: Problems to enable remote access SQL Server + Android
Good afternoon I made a webservice on Asp.net, and I need to access it through an android application. In any normal function, it works normally, but if it is a function that has access to the…
-
0
votes1
answer164
viewsQ: Error connecting with Webservice + Soap + Android
Good afternoon, I am having a problem connecting to the webservice. I am using ksoap2 library. public class CallSOAP { public final String SOAP_ACTION = "http://tempuri.org/yteste"; public final…
-
2
votes3
answers337
viewsQ: Recover MAX value from an SQL column
string var = ""; SqlConnection con = new SqlConnection(Banco._strCon); string sql = "select max(end_id) from endereco"; SqlCommand cmd = new SqlCommand(sql, con); con.Open(); SqlDataReader dr =…
-
0
votes1
answer826
viewsQ: Pass object for error parameter - Android Studio
I am trying to pass an object per parameter, but an error occurs on the line "it.putExtra("tag", obj);": Cannot resolve method (java.lang.String, my.minhaClasse package) Follow the code Obj obj =…
-
6
votes1
answer393
viewsQ: onClick on dynamic button causes error "Cannot resolve constructor Intent"
I’m trying to create a dynamic button, and in it put the click function. Button btnJogarNovamente; btnJogarNovamente = new Button(this); btnJogarNovamente.setLayoutParams(new…
-
5
votes1
answer2999
viewsQ: Create button via code
It is possible to create a Button through code, rather than design mode (xml)? For example: I will create a screen with a EditText, enter a number, and click on a Button. After that, it will be…
-
0
votes3
answers2056
viewsA: Layout for all screen sizes
Is there any default for folder names? So the following code is unnecessary? For it was the only way I had found for the solution of my problem if (config.screenWidthDp == 720) {…
-
2
votes3
answers2056
viewsQ: Layout for all screen sizes
I just started messing with android and I came up with a big question. How I make a layout to work in all screen sizes? From what I’ve searched, there are specific layout folders for each size. So,…