|
-
Senior Member
[FlashLite 2.x] communication from Flash to server!
Hello All,
I want to develop a kind of application wherein, there will be one Flash SWF which will send some data to the server, but if the mobile is offline then it will either store data locally somewhere or send to some local application and this application will send data back to the server when mobile comes online.
First of all, what I am trying to do is I know something quite special. Frankly tell me if this is possible. If you think that this is possible by any means then I will like to know all the ways through which this can be done. What requirements I need to alter to achieve this etc etc etc......
I am not in too much hurry so you guys can take your own time to think!!!!
Thanks in advance for your kind consideration.
-
you might be able to do this type of app using a 3rd party solution like Kuneri lite for s60. Perhaps you can contact the developer team and find out if the Kuneri lite c++ app can detect network connection and automatically send off data when the connection comes online again.
-
Senior Member
Well, after a few discussions I can divide my tasks into some modular blocks:
1. Run the application through one mail SWF (Possible, know how to do this - no issues!)
2. If network connection found then send data to retrieve (just like a bookmark, SWF will do this directly)
3. If n/w connection not detected then save data locally somewhere and transmit it when online again
so for now I have idea about how teh 1st two points can be taken care off.....but I am not aware of the third point.....if I sub-modularize further then:
3a. Save data somewhere in the mobile and this should persist irrespective of any condition
3b. Transmit the data to server when network connection is detected
I want ideas for 3a and 3b. I am not totally new to FlashLite, but when it comes to such things I am quite new....I am not in any kind of hurry so has enough time to dedicate and find a best possible solution.
Ideas are most welcome and thanks for your kind consideration!
-
you could try to save the data in a mobile shared object
there are fscommands for network status which may help you detect whether there is a connection.
So the application may periodically check network status, and if the device is connected, then send the data from the mobile shared object to the server. Otherwise do not send the data. This would only happen while the Flash Lite application runs.
If you need to send the data regardless of whether the Flash Lite application is running, then you will need to use another application to store the data, send the data to the server and run in the background. This would require a native application and would be proprietary to the device you are developing for.
For s60 you might research Kuneri Lite.
-
Senior Member
Thanx hp3,
Thats a very down to earth answer. From your answer I am sure that you have very well undertsood my requirement. even I agree to one thing that there needs to be a native application....just one question though..... you said that native application will be proprietory to the device...cant it be a unversal kind of application which would be general for all devices... tool/technology/language does not matters here....
any leads in this area please ?
Thanks once again...
-
By proprietary I mean that it will work for a certain platform only, like Symbian s60.
Right now your options would be to use a native application on s60 or perhaps windows mobile. You would need to set up some way to pass data from Flash Lite to the native application and this approach would also be proprietary to the platform.
There may be a way to do this with java on SE project capuchin phones. But I am not sure that Java will work they way you intend.
Integrating Flash Lite with native applications/java is a complex thing to do. I do not have experience with this and you would need to discuss with people who develop in the native languages of the platform to find the best way to do this.
-
Senior Member
Thanx once again.
If someday, I create and launch this application successully, I will share the details here 
Even now, new ideas are always welcome. No hurry at all.
-
Hello, After A Long Time
The idea for this is very simple,
Download a small Symbian C++ application named "WriteFile_engine.exe" for FL1.1 from Leonardo Risuleo's website
Put the code in your swf, that if not connected write the data in a .txt file
The .txt file on the device will store the data locally.
Now the question is, is that data will sent when you re-open the application or it will sent when the net is connected?
if the data will send when you re-open your application, then a php file can handle the locally stored data to the server.
If you want to send the stored data whenever the net is connected, then you have to make an application in Symbian C++ to do so.
think this will help your attempt
marlopax
Last edited by marlopax; 07-10-2009 at 02:56 PM.
-
Senior Member
Well, I am really looking forward to use Janus-Flash encapsulated SWF to achieve this kind of functionality. May be in couple of days I wud be ready with this one and share the details here.
Last edited by vinayak.kadam; 07-16-2009 at 07:33 AM.
Reason: typo!!!!
As ever,
Vinayak Kadam
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|