xAPFlash on Android

6 replies [Last post]
allanayr
Offline
Ayr, United Kingdom
Joined: 25 Sep 2011

I'm still waiting for my registration to come through for the Automated home website so I can't post there yet but as many people on this forum are using xAPFlash perhaps someone can help. Here's the question I will/was going to post:

Perhaps this issue is covered in the wiki but I have been unable to find it so I'll ask a newbie question here.

I have xAPFlash running on my pc in a brower and I changed <name>joggler<name> to <name>pc<name> in the config.xml file. What I would like to do is to run it on my android phone.
I've transferred all the data onto the sd card on my phone and I get the screen with white XAP on a black background and then nothing further. I've tried <name>joggler<name> and <name>pc<name> and <name>android<name> none of these seems to help.

The phone is running Android 2.3.4 and has flash player installed, it will load and display the sliders etc. but not run the full xAPFlash swf file.

Am I missing something obvious or should I look for other errors in my setup?
For instance do I need to be running an iserver on my android device or will the one on my livebox be sufficient?

or is it the security implication of Flash player accessing TCP and local file systems?

Any pointers gratefully received.

brett
Offline
Providence, United States
Joined: 9 Jan 2010
Yup TCP/local filesystem security i'd say

Alan I suspect its not working as you are running into this documented security issue that will also exist on the Android platform.  http://www.dbzoo.com/livebox/xapflash#browser

I find the easiest way to get this working is to place all the files on a webserver and simply point your tablet browser at it.  Why bother putting anything on your android at all!   This is how I run the xAPFlash application on my tablet (HP Touchpad)

I don't have an Android so unfortunately this is about all the advise I can give.

Brett

allanayr
Offline
Ayr, United Kingdom
Joined: 25 Sep 2011
Good news and bad

Well I guess it's good news and bad news. I've got xAPFlash to run on my android mobile by setting up an apache server on my network and accessing the swf file from the server. So it looks like it is the security issue that was preventing it from running before. The bad news is that the phone runs so slowly and crashes that it isn't worth the effort of having made it work. Oh well perhaps the answer has to be a Joggler for Christmas!

kim
Offline
Throwleigh, United Kingdom
Joined: 1 Dec 2010
Xmas tree lights again

Last year I annoyed everyone by constantly turning the Xmas tree lights on an off using the HAH web site

and an RF connection.  Managed also to schedule it using Google Cal and Twitter - but found it rather complicated

to copy each day's program.

THIS year I am sitting with my Samsung Galaxy SII running the excellent example at the bottom of http://www.dbzoo.com/livebox/xapflash

- response using a the script hosted on a btinternet site is very quick.

Now off to try the new scheduler.

p.s the samsung is running android 2.3.3 gingerbread out of the box.

p.p.s it does look as though I could run the script locally but only if I "root" it which I am not prepared to do right now

as in the last post on http://www.droidforums.net/forum/droid-2-general-discussions/74221-global-security-settings-panel-flash-android.html

I don't know if it works though.

kim
Offline
Throwleigh, United Kingdom
Joined: 1 Dec 2010
OK - so maybe a little help is needed.

Trying to get xapflash working everywhere on my android.  The following steps work:

1) Storing the swf's etc on a 192.168.1.xx pc and accessing the livebox on 192.168.1.yy

2) Storing the swf's etc on external btinternet site  and accessing livebox locally using wifi on android

3) Storing the swf's etc on external btiinternet site and accessing livebox using 3g on android - using the actual IP address of my router

BUT can't can't get access to the router using xxxx.dyndns-home.com site even though I have access working to the web gui

on http://xxx.dyndns-home.com/login.kl1 and the caching thing on http://xxx.dyndns-home.com:8080/

Has anyone any ideas?  each time I have been changing the override section of config.xml  tried a) xxx.dyndns-home.com b)

xxx.dyndns-home.com/ and even c) http://xxx.dyndns-home.com

Doesn't work on pc either - yet I know I am getting through the router properly.

brett
Offline
Providence, United States
Joined: 9 Jan 2010
xAPFlash usage outside of your LAN

Make sure that you port forward 9996 to the iServer too - xAPFlash requires a TCP connection to an iServer so it can work.  If you are running this outside of your local network then I bet you forgot to forward this port.  Also your xapconfig.xml section will need to be modified so that <ip> section correctly points to where your iServer is.

        <config>
<iserver>
<port>9996</port>
<ip>xxx.dyndns-home.com</ip>
</iserver>
</config>

If you are port forwarding you might use a different port on your external firewall if you wish, if so then you'd correspondingly adjust the xapconfig.xml file.

Brett

kim
Offline
Throwleigh, United Kingdom
Joined: 1 Dec 2010
xAPFlash usage outside the local LAN

Hi Brett - thanks for coming back to me.

 

Nope - for once I followed your instructions on http://www.dbzoo.com/livebox/xapflash - and did ports 9996,3639 and 843 (and 8080)

I was using the override section of config.xml - when I use 94.195.xxx.xx which is the ip address of my router it works just fine

which proves the port forwarding is working ok.  Then if I change the entry to xxx.dyndns-home.com it all freezes.  

 

So I have now tried it changing the entry in xapconfig.xml as you suggested but that doesn't work either.

In order not to confuse myself I have three ftp sections labelled INTRANET, INTERNET and INTERNETDYN so I can check the config.xml

is really what I think it is (got caching problems at the beginning I think).

The override file does say usejoggler api = true - could that be related?

I remain hopeful.

 

Kim 

p.s. all this just so I can stand outside of wifi range and turn on the xmas tree lights - swmbo thinks I'm barmy.

Hardware Info