I want to initialize a class in background and use it periodically at times. Its methods can be used based on user actions on same instance of that class. So, its like: initialize class A + doSomethingOnUI() + call A.method. Now, this call to method needs to be from same thread. I tried to initialize class A with Asynctask. Now, when i have to call its method, How do i tell new asynctask about which thread to use to call method.
I can't come up with a better search term. Can someone give directions?
and you can't use methods of A from UI thread if A is initialized from another thread.
initialization and method calls need to be from same thread.
just calling the instance object from singleton. I don't know where to specify which thread to use to call. Trying with handlers now, removed asynctasks.
@TimCastelijns I was going to ask you about that question you posted to them. Pretty shocking how they haven't got back to you which makes me think they might have "improved" it but didn't really
I could get that but the screen size is silly, 3.5", trying to make my screens look good on that will just end up with me throwing that phone out the window
How you do functional testing of screen which has authorized access.? -> By login manually into device and then testing or -> Auto login from test cases with static email or password and then test the authorized screens?
Almost 70% screens need authentication for the APIs, so to test these screens I must have valid token by login. I can't mock the webservice now to provide static response for all APis
On my S2, all dialogs work. Will the setting "Show notifications" in App Settings page concern dialogs too? Maybe something like "Never show this again"
I show the dialog boxing by sending an intent with an int value as a broadcast from the BluetoothLEService service class and then listen for the broadcast within the MainActivity, if the int is a certain value, then an error box is displayed as an AlertDialog
the performance data wont be removed from the wristband unless it's a server issue processing it, because we'd already have the performance data then (I think), so even if a timeout did happen, there should be a dialog explaining there was an issue with the upload or if the upload did work and there was errors processing it, we'd explain that
I'm trying to remember how it all works because it's been months since I looked at this wristband BLE stuff
Just tried out an upload and it looks like it worked but I think removing the v7 alertDialog has messed up my theme for it
because it was just a white alert dialog with red accent showing for the action button
above some money limit (400€ or even less, not sure) you have to pay some fees which are roughly the amount of taxes you would normally pay for this amount
I got my N10 shipped for 400$ and payed roughly 100€ taxes
Request: If any of your companies if looking for someone to work remotely part/fulltime, I'm free for the next 6 months or so, and looking to do stuff. Android/Web/DevOps/Fintech/Anything. I learn quickly.
Caused by java.lang.IllegalStateException: Couldn't read row 0, col 0 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it