• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


[Android] AndPiLi
#31
Experienced the same as CurlyMo after screen on/off:

[hide]
Code:
12-07 19:28:09.454 E/InputEventReceiver(6254): Exception dispatching input event.
12-07 19:28:09.454 E/MessageQueue-JNI(6254): Exception in MessageQueue callback: handleReceiveCallback
12-07 19:28:09.474 E/MessageQueue-JNI(6254): java.lang.IndexOutOfBoundsException: Invalid index 2, size is 2
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at java.util.ArrayList.get(ArrayList.java:308)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at com.android.internal.app.ActionBarImpl.setSelectedNavigationItem(ActionBarImpl.java:363)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at com.actionbarsherlock.internal.app.ActionBarWrapper.setSelectedNavigationItem(ActionBarWrapper.java:103)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at nl.peejseej.andpili.MainActivity$1.onPageSelected(MainActivity.java:70)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at android.support.v4.view.ViewPager.scrollToItem(ViewPager.java:567)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:551)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at android.support.v4.view.ViewPager.onTouchEvent(ViewPager.java:2008)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at android.view.View.dispatchTouchEvent(View.java:7690)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2210)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1945)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2327)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1568)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at android.app.Activity.dispatchTouchEvent(Activity.java:2474)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2275)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at android.view.View.dispatchPointerEvent(View.java:7870)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:3919)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:3808)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3406)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3456)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3425)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3510)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3433)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3567)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3406)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3456)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3425)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3433)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3406)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:5520)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:5500)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:5471)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:5594)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:182)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at android.os.MessageQueue.nativePollOnce(Native Method)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at android.os.MessageQueue.next(MessageQueue.java:137)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at android.os.Looper.loop(Looper.java:124)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at android.app.ActivityThread.main(ActivityThread.java:5069)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at java.lang.reflect.Method.invokeNative(Native Method)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at java.lang.reflect.Method.invoke(Method.java:515)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
12-07 19:28:09.474 E/MessageQueue-JNI(6254):     at dalvik.system.NativeStart.main(Native Method)
12-07 19:28:09.474 D/AndroidRuntime(6254): Shutting down VM
12-07 19:28:09.474 W/dalvikvm(6254): threadid=1: thread exiting with uncaught exception (group=0x41c06c50)
12-07 19:28:09.484 E/AndroidRuntime(6254): FATAL EXCEPTION: main
12-07 19:28:09.484 E/AndroidRuntime(6254): Process: nl.peejseej.andpili, PID: 6254
12-07 19:28:09.484 E/AndroidRuntime(6254): java.lang.IndexOutOfBoundsException: Invalid index 2, size is 2
12-07 19:28:09.484 E/AndroidRuntime(6254):     at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at java.util.ArrayList.get(ArrayList.java:308)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at com.android.internal.app.ActionBarImpl.setSelectedNavigationItem(ActionBarImpl.java:363)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at com.actionbarsherlock.internal.app.ActionBarWrapper.setSelectedNavigationItem(ActionBarWrapper.java:103)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at nl.peejseej.andpili.MainActivity$1.onPageSelected(MainActivity.java:70)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at android.support.v4.view.ViewPager.scrollToItem(ViewPager.java:567)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:551)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at android.support.v4.view.ViewPager.onTouchEvent(ViewPager.java:2008)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at android.view.View.dispatchTouchEvent(View.java:7690)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2210)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1945)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2327)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1568)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at android.app.Activity.dispatchTouchEvent(Activity.java:2474)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2275)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at android.view.View.dispatchPointerEvent(View.java:7870)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:3919)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:3808)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3406)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3456)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3425)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3510)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3433)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3567)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3406)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3456)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3425)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3433)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3406)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:5520)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:5500)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:5471)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:5594)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:182)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at android.os.MessageQueue.nativePollOnce(Native Method)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at android.os.MessageQueue.next(MessageQueue.java:137)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at android.os.Looper.loop(Looper.java:124)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at android.app.ActivityThread.main(ActivityThread.java:5069)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at java.lang.reflect.Method.invokeNative(Native Method)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at java.lang.reflect.Method.invoke(Method.java:515)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
12-07 19:28:09.484 E/AndroidRuntime(6254):     at dalvik.system.NativeStart.main(Native Method)
12-07 19:28:09.494 W/ActivityManager(2318):   Force finishing activity nl.peejseej.andpili/.MainActivity
[/hide]

As the usual, if you need more info, ask.
PS, didn't get the apk from mega but from your latest play store update.

Taptalked u see .. əəs n pəʞlɐʇdɐʇ
 
Reply
#32
Hi curlymo, thanks for your review! Much appreciated!

I've uploaded a new version to the play store where I fixed the following:
2. the vertical alignment of the text in regard to the buttons is off.
5. i miss the relay protocol (that can be implemented the same way as a switch): https://github.com/pilight/java-gui/blob...#L116-L120
7. the dimmer slider has a wrong initial level.
9. if i change the dimmer slider, the button doesn't go to "on".

I will look at the other issues. Especially the screen off issue is new for me, and luckily/unfortunatly i can reproduce it Smile

@Zatta An account should not be required, but the play store version is nog the most recent.

@curlymo I have a question about the API and dimmer functionality. The only way I can make pilight send a new dimlevel to the dimmer is by sending a on state. But when I do this with my kaku dimmer, it goes pulsing. So setting a new dimlevel doesn't work when the dimmer is already on.
AndPiLi developer
 
Reply
#33
Quote:@curlymo I have a question about the API and dimmer functionality. The only way I can make pilight send a new dimlevel to the dimmer is by sending a on state. But when I do this with my kaku dimmer, it goes pulsing. So setting a new dimlevel doesn't work when the dimmer is already on.
Just check the java app of webgui implementation:
https://github.com/pilight/pilight/blob/...ht.js#L219

Can you also post the APK file with each update. Then i can check new updates faster.
 
Reply
#34
Ah I see. Thanks, I've got that working correctly now.

Sure, here it is.
AndPiLi developer
 
Reply
#35
Thanks,

1. When i said the order was reversed, i meant the order of things is at random. Common Java downside.
10. Invalid, it was just not implemented correctly.
11. Somehow, i can press weather rows.
12. The protocol optional settings aren't respected yet:
http://wiki.pilight.org/doku.php/alecto
http://wiki.pilight.org/doku.php/arctech_screen
 
Reply
#36
Information 
New version! Also uploaded to play store.
Download link for impatient users
(@curlymo maybe you could enable apk uploads (<1MB) in the forum, so I can add the apk as attachment to this post?)

Fixed:
  • 4. if the connection is lost, the GUI still works.
  • Power on/off bug (this was a difficult one. Stupid SherlockActionBar stuff Angry )
  • 11. Somehow, i can press weather rows. (stupid android)

@curlymo Could you explain the following bug to me? Is it still happening?
8. when i slide the dimmer slider all the way to the right or left, it falls half way of screen.
AndPiLi developer
 
Reply
#37
Regarding the upload size. Not sure if i can change it.

4. It doesn't notice when i stop my wifi.
11. The weather row is smaller then the switch row height.
13. I press buttons when the connection is lost, then connect to the network, all previous actions (without the wifi on) get's executed still. Like it buffered all previous actions.

   
 
Reply
#38
New version!

Fixed:
  • 1. the order of the config file is reversed/random
  • 6. none of the gui elements get updated properly when i control them in e.g. the webgui.
  • 8. when i slide the dimmer slider all the way to the right or left, it falls half way of screen.
  • 11. The weather row is smaller then the switch row height.

I did some major refactoring in the way the list of devices is implemented, so for this reason only for beta participants in the Play store, or direct download here.

Download apk

Enjoy!
AndPiLi developer
 
Reply
#39
Nice work!

8. Slider still looks the same but then within less width.
14. I don't see humidity info.
 
Reply
#40
Another release.

Fixed:
  • 8. when i slide the dimmer slider all the way to the right or left, it falls half way of screen. (Now correctly?)
  • 14. I don't see humidity info. --> That was because I didn't implement it yet Smile. Now I did. Also battery should work.

Download link

Please let me know if there are any issues. Enjoy!
AndPiLi developer
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  [Android] illumina, a pilight remote phdd 62 31,922 08-02-2016, 05:56 PM
Last Post: curlymo
  webgui pilight 6.0 iphone / android browser Jeroenk 3 2,828 02-03-2016, 05:08 PM
Last Post: serge
  [Android] pilight android 4.1+ UPDATED 5/5/15 Zatta 103 59,110 05-06-2015, 09:21 PM
Last Post: koos147
  [Android] pilight Wear schdef 3 3,358 04-14-2015, 04:48 PM
Last Post: schdef
  [Android] Tasker pilight Kiwi 6 6,495 04-01-2015, 03:37 PM
Last Post: bkmann
  Latest Android apps clach04 0 1,911 11-01-2014, 03:49 AM
Last Post: clach04

Forum Jump:


Browsing: 1 Guest(s)