Questions tagged as 'java'

4
answers

Connect PHP with Java

I am making an application, I have a database in Hostinger already created and the PHP files also connected so that I can take the corresponding columns. My problem is that I do not know how to connect these PHP with Java . How do I make...
asked by 22.01.2017 / 01:19
1
answer

Show data in GridView

I'm trying to make a simple application where a GridView is shown, but the application does not show the GridView . What am I doing wrong? public class AdapterCategory extends BaseAdapter{ protected Activity activity; protected Arr...
asked by 31.01.2017 / 12:41
5
answers

Warning in Equals supposedly null

I have the following Warning:    Method invocation 'equals' may produce   'java.lang.NullPointerException' My line of code is as follows: if(menu.getItem(2).getIcon().getConstantState().equals(ContextCompat.getDrawable(fragmentActiv...
asked by 15.12.2016 / 21:36
1
answer

Where are the private attributes of a super class stored?

according to the following code: public class Ex1{ protected int a; private int b; public Ex1(int a, int b){ this.a=a; this.b=b; } } public class Ex2 extends Ex1{ public Ex2(){ super(4,2); //ejemplo } } pu...
asked by 24.12.2017 / 22:13
1
answer

Help with bluetooth ionic application

I'm just starting with Ionic . I am trying to make an application to connect my cell phone with my notebook by bluetooth through plugin cordova-plugin-networking-bluetooth . Using the official plugin website as help: link . I was...
asked by 25.09.2016 / 06:42
2
answers

Replace object within an android arraylist

I have an arraylist that is filled with objects from a bluetooth scanner and I show it in a recycler. What I want to do is if there is one that does not add it and only replace its value. This object brings the distance by moving it, I am rec...
asked by 16.09.2016 / 17:54
2
answers

NullPointerException with an array of Node Lists

I'm making an array with lists of nodes that I have to organize from another list that contains 200 nodes with a value from 0 to 9 each (value assigned random). The Nodes must be removed from the Main List and assigned to the corresponding List...
asked by 11.09.2016 / 19:02
1
answer

Switch from Adapter (List to Grid) during execution in a RecyclerView

Currently I have a screen where he shows me a list of objects, for this I created a ListAdapter that I will add to my RecyclerView . I would like that when I press a button, the view changes to grid mode, using GridAdapter . S...
asked by 19.09.2016 / 10:59
1
answer

Using StringProperty or DoubleProperty with Hibernate

Is it possible to create a class in Java to access with hibernate a database table with primary key compound (two or more fields), whose attributes with the @Column are of type StringProperty or DoubleProperty of JavaFX?...
asked by 20.10.2016 / 17:15
3
answers

Passing variables in a Java program

I am learning how to program and I have a problem with my public static void main(String[] args) {... I have a variable that within this procedure changes the value of that variable I need to use it in another class. Example: the variabl...
asked by 20.10.2016 / 13:23