The code is very simple. I just have to get the type of 'storage' that an article has. This can be from the 'deposit' or from the 'shelves / gondolas'. When obtaining that registry, I proceed to carry out a different process of each one.
The pro...
How do I add spaces to the query field with SEARCH_ACTION in android?
Example:
IT WORKS:
adb shell am start -a com.google.android.gms.actions.SEARCH_ACTION -e query "enviar" <nombre_paquete>
IT DOES NOT WORK
adb shell am start -...
I'm trying to pass data from one screen to another and I get the following error, I do not know how to fix it.
Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException:
javax.swing.JFrame cannot be cast to pantallaPrincipal
Except...
I have an app with a side menu.
The doubt I have that every time I use one of the menu options opens a new window.
} else if (id == R.id.cine) {
Intent intent = new Intent(this.getApplication(), Cine.class);
startActivityForR...
I have this JSON
{
"id":2,
"group_id":1,
"default_billing":"2",
"default_shipping":"2",
"created_at":"2018-10-03 16:12:55",
"updated_at":"2018-10-03 16:13:00",
"created_in":"Default Store View",
"email":"henryar...
The problem is the following, in the activity I have a textView and a spinner what I'm looking for is that when you select an option in spinner the value of textView change.
This is the code
public class longitud...
I have an application, that when I ran it from the IDE, I load an image with a progress bar from the main screen. The problem is that when you exported the file to an executable, the image disappears but the progress bar keeps appearing. And I d...
The thing is that I do calculations with decimals so I use "double" to store the quantities. And even if the number is whole without decimals, it always shows me the .0. That is, if the result is 40, it marks me 40.0
Is there a way to remove...
The code:
public class FooFoo {
public static void main(String[] args) {
Set set = new HashSet<>();
set.add("hola");
set.add(2.3);
set.add(4.2F);
set.add(1);
TreeSet set2 = new...