Recent

Author Topic: LAMW - App goes to the background automatically.  (Read 513 times)

biologic

  • Newbie
  • Posts: 4
LAMW - App goes to the background automatically.
« on: April 28, 2024, 10:45:17 am »

Hi.

I am making an App with LAMW on Linux.

I have three jEditText fields and a jListView and a jButton.

When I press the jButton, the contents of the three jEditText fields is added to the jListView.
To delete an item from the jListView, I used the OnLongClickItem method.
When this OnLongClickItem method is called, I use a jDialogYN to confirm if I want to delete the item.
When I press Yes, the following code is executed :

Code: [Select]
    ListViewLijst.Delete(deleteindex);
    ListViewLijst.UpdateLayout();

and the Item is deleted from the jListView, and the App goes to the background automatically.
   
How could I make the App not go to the background after I press 'Yes' ?

Thanks.

biologic

  • Newbie
  • Posts: 4
Re: LAMW - App goes to the background automatically.
« Reply #1 on: April 28, 2024, 02:57:41 pm »
Is there an example of the usage of the jDialogYN component ?



biologic

  • Newbie
  • Posts: 4
Re: LAMW - App goes to the background automatically.
« Reply #2 on: April 28, 2024, 08:04:22 pm »
Update :

When I start the App, I get a message : Not compatible with latest version of Android.

Any ideas ?

----
Update 2 :

found the error.
« Last Edit: April 28, 2024, 09:28:54 pm by biologic »

 

TinyPortal © 2005-2018