• 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
#21
Well I actually finished the first version of my App today, I just wanted to help.

Will make another thread soon with the APK to test and information.
 
Reply
#22
No offence given :p
 
Reply
#23
Cool!
 
Reply
#24
Error log from Eclipse:
Code:
12-03 20:49:52.250: E/AndroidRuntime(4276): FATAL EXCEPTION: main
12-03 20:49:52.250: E/AndroidRuntime(4276): java.lang.IndexOutOfBoundsException: index=1 count=0
12-03 20:49:52.250: E/AndroidRuntime(4276):     at android.view.ViewGroup.addInArray(ViewGroup.java:2050)
12-03 20:49:52.250: E/AndroidRuntime(4276):     at android.view.ViewGroup.addViewInner(ViewGroup.java:1994)
12-03 20:49:52.250: E/AndroidRuntime(4276):     at android.view.ViewGroup.addView(ViewGroup.java:1871)
12-03 20:49:52.250: E/AndroidRuntime(4276):     at com.actionbarsherlock.internal.widget.ScrollingTabContainerView.addTab(ScrollingTabContainerView.java:311)
12-03 20:49:52.250: E/AndroidRuntime(4276):     at com.actionbarsherlock.internal.app.ActionBarImpl.addTab(ActionBarImpl.java:464)
12-03 20:49:52.250: E/AndroidRuntime(4276):     at com.actionbarsherlock.internal.app.ActionBarImpl.addTab(ActionBarImpl.java:448)
12-03 20:49:52.250: E/AndroidRuntime(4276):     at nl.peejseej.andpili.MainActivity.addTab(MainActivity.java:274)
12-03 20:49:52.250: E/AndroidRuntime(4276):     at nl.peejseej.andpili.MainActivity.processConfig(MainActivity.java:260)
12-03 20:49:52.250: E/AndroidRuntime(4276):     at nl.peejseej.andpili.MainActivity.access$3(MainActivity.java:207)
12-03 20:49:52.250: E/AndroidRuntime(4276):     at nl.peejseej.andpili.MainActivity$ConnectTask.onProgressUpdate(MainActivity.java:181)
12-03 20:49:52.250: E/AndroidRuntime(4276):     at nl.peejseej.andpili.MainActivity$ConnectTask.onProgressUpdate(MainActivity.java:1)
12-03 20:49:52.250: E/AndroidRuntime(4276):     at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:432)
12-03 20:49:52.250: E/AndroidRuntime(4276):     at android.os.Handler.dispatchMessage(Handler.java:99)
12-03 20:49:52.250: E/AndroidRuntime(4276):     at android.os.Looper.loop(Looper.java:130)
12-03 20:49:52.250: E/AndroidRuntime(4276):     at android.app.ActivityThread.main(ActivityThread.java:3687)
12-03 20:49:52.250: E/AndroidRuntime(4276):     at java.lang.reflect.Method.invokeNative(Native Method)
12-03 20:49:52.250: E/AndroidRuntime(4276):     at java.lang.reflect.Method.invoke(Method.java:507)
12-03 20:49:52.250: E/AndroidRuntime(4276):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
12-03 20:49:52.250: E/AndroidRuntime(4276):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)
12-03 20:49:52.250: E/AndroidRuntime(4276):     at dalvik.system.NativeStart.main(Native Method)
12-03 20:49:52.257: E/liblog(1447): failed to call dumpstate
12-03 20:49:52.257: W/ActivityManager(1447):   Force finishing activity nl.peejseej.andpili/.MainActivity
12-03 20:49:52.265: E/(1447): Dumpstate > /data/log/dumpstate_app_error

Sadly, can't fix the issue due to no availability of the source Wink
 
Reply
#25
Thanks curlymo, I've just updated the app in the Play store with a possible fix for this crash. It should be available in a few hours.

Could you try if the new version works for you?
AndPiLi developer
 
Reply
#26
Not for me, sent a crash report through your dev console. I can get a full log if required.

[COLOR="Orange"]Taptalked u see .. əəs n pəʞlɐʇdɐʇ[/COLOR]
 
Reply
#27
Code:
12-05 21:46:03.343: E/AndroidRuntime(12122): FATAL EXCEPTION: main
12-05 21:46:03.343: E/AndroidRuntime(12122): java.lang.IndexOutOfBoundsException: index=1 count=0
12-05 21:46:03.343: E/AndroidRuntime(12122):     at android.view.ViewGroup.addInArray(ViewGroup.java:2050)
12-05 21:46:03.343: E/AndroidRuntime(12122):     at android.view.ViewGroup.addViewInner(ViewGroup.java:1994)
12-05 21:46:03.343: E/AndroidRuntime(12122):     at android.view.ViewGroup.addView(ViewGroup.java:1871)
12-05 21:46:03.343: E/AndroidRuntime(12122):     at com.actionbarsherlock.internal.widget.ScrollingTabContainerView.addTab(ScrollingTabContainerView.java:311)
12-05 21:46:03.343: E/AndroidRuntime(12122):     at com.actionbarsherlock.internal.app.ActionBarImpl.addTab(ActionBarImpl.java:464)
12-05 21:46:03.343: E/AndroidRuntime(12122):     at com.actionbarsherlock.internal.app.ActionBarImpl.addTab(ActionBarImpl.java:448)
12-05 21:46:03.343: E/AndroidRuntime(12122):     at nl.peejseej.andpili.MainActivity.addTab(MainActivity.java:286)
12-05 21:46:03.343: E/AndroidRuntime(12122):     at nl.peejseej.andpili.MainActivity.processConfig(MainActivity.java:272)
12-05 21:46:03.343: E/AndroidRuntime(12122):     at nl.peejseej.andpili.MainActivity.access$3(MainActivity.java:219)
12-05 21:46:03.343: E/AndroidRuntime(12122):     at nl.peejseej.andpili.MainActivity$ConnectTask.onProgressUpdate(MainActivity.java:183)
12-05 21:46:03.343: E/AndroidRuntime(12122):     at nl.peejseej.andpili.MainActivity$ConnectTask.onProgressUpdate(MainActivity.java:1)
12-05 21:46:03.343: E/AndroidRuntime(12122):     at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:432)
12-05 21:46:03.343: E/AndroidRuntime(12122):     at android.os.Handler.dispatchMessage(Handler.java:99)
12-05 21:46:03.343: E/AndroidRuntime(12122):     at android.os.Looper.loop(Looper.java:130)
12-05 21:46:03.343: E/AndroidRuntime(12122):     at android.app.ActivityThread.main(ActivityThread.java:3687)
12-05 21:46:03.343: E/AndroidRuntime(12122):     at java.lang.reflect.Method.invokeNative(Native Method)
12-05 21:46:03.343: E/AndroidRuntime(12122):     at java.lang.reflect.Method.invoke(Method.java:507)
12-05 21:46:03.343: E/AndroidRuntime(12122):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
12-05 21:46:03.343: E/AndroidRuntime(12122):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)
12-05 21:46:03.343: E/AndroidRuntime(12122):     at dalvik.system.NativeStart.main(Native Method)
12-05 21:46:03.351: E/(1447): Dumpstate > /data/log/dumpstate_app_error
 
Reply
#28
Thanks Zatta and curlymo!

Could you try this version? (I can't add an apk or zip as attachment Unsure)
I've made some small fixes in the function that adds tabs to the view. No need to remove the older one.

If you still get a crash, could you provide your pilight config.json?
AndPiLi developer
 
Reply
#29
Am i correct that I need to create a mega account for that? Or is that just for phone users?

[COLOR="Orange"]Taptalked u see .. əəs n pəʞlɐʇdɐʇ[/COLOR]
 
Reply
#30
It works.

First feedback:
1. the order of the config file is reversed:
https://github.com/pilight/java-gui/blob...va#L25-L47
2. the vertical alignment of the text in regard to the buttons is off.
3. it does not yet use SSDP discovery, so it won't work well with futher versions of pilight:
https://github.com/pilight/java-gui/blob...a#L54-L133
4. if the connection is lost, the GUI still works.
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
6. none of the gui elements get updated properly when i control them in e.g. the webgui.
7. the dimmer slider has a wrong initial level.
8. when i slide the dimmer slider all the way to the right or left, it falls half way of screen.
9. if i change the dimmer slider, the button doesn't go to "on".
10. changing the slider itself doesn't send any commands to pilight, so my dimmer isn't changing values by just changing the slider.

One bug till this far.
I have two tabs
1. Livingroom
2. Bedroom

When i swipe right (from livingroom), i go to bedroom. When i swipe right again it doesn't go any further.
When i swipe left (from bedroom), i go to livingroom. When i swipe left again it doens't go any further.

Now the bug. When i leave AndPiLi open and then lock my phone and unlock it again, the following happens.
I arrive in livingroom, then i swipe right to bedroom, however, i can swipe right again and then see livingroom and bedroom half/half, the app freezes and then crashes.

Can you tell me how you implemented the connection?
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  [Android] illumina, a pilight remote phdd 62 35,270 08-02-2016, 05:56 PM
Last Post: curlymo
  webgui pilight 6.0 iphone / android browser Jeroenk 3 2,965 02-03-2016, 05:08 PM
Last Post: serge
  [Android] pilight android 4.1+ UPDATED 5/5/15 Zatta 103 64,679 05-06-2015, 09:21 PM
Last Post: koos147
  [Android] pilight Wear schdef 3 3,700 04-14-2015, 04:48 PM
Last Post: schdef
  [Android] Tasker pilight Kiwi 6 7,175 04-01-2015, 03:37 PM
Last Post: bkmann
  Latest Android apps clach04 0 2,020 11-01-2014, 03:49 AM
Last Post: clach04

Forum Jump:


Browsing: 1 Guest(s)