Building Offline(Display Only) Hybrid Web Container Mobile Applications With Sybase Unwired Platform – Part 4
Click here to Building Offline(Display Only) Hybrid Web Container Mobile Applications With Sybase Unwired Platform – Part 1
Click here to Building Offline(Display Only) Hybrid Web Container Mobile Applications With Sybase Unwired Platform – Part 2
Click here to Building Offline(Display Only) Hybrid Web Container Mobile Applications With Sybase Unwired Platform – Part 3
Now right-click on Hybrid App Designer
Click on “Generate Hybrid App..” to deploy it on to device.
Click on “Get Users”.
Select User in which the application has to be deployed.
Click on Finish.
Now it will “Generate Code” and “Deploy” it on to the device.
Now in our virtual device in Show Log menu we can see “Installed Hybrid App” log.
While using Virtual Device to run the application, the response will slower compared to the real device.
Click on Back button twice.
Click on Menu.
Select Hybrid Apps
Now we can see “Flight” App is installed on the device.
Click on Flight.
While using Virtual Device to run the application, the response will slower compared to the real device.
Click on Menu.
Select Get Flights.
Now we can see list of flights of “Delta Airline”.
Click on particular flight, it will navigate to detail display of flight.
Now we will try offline scenario. Since only Delta Airline’s data is cached. So we will use Japan Airline later.
So before doing this, we will switch-off the Mobile data or wireless data network.
To switch-off the Mobile data or wireless data network.
Go to Home screen by pressing home button.
Click on Menu.
Click on Settings.
Click on Wireless & networks
Click on Mobile networks in this case because simulator is using Mobile 3G network as we can see in the screen.
Change Data enabled to following state.
Click on Home.
Now test the application in offline mode.
It will work for “Delta Airlines”. Because its data has already been cached.
For “Japan Airlines”, it will display error message.
Now we will switch-on the Mobile data or wireless data network as shown earlier.
Check for Japan Airline in Online Mode.
Now we will test data in offline mode.
Now both “Delta Airline” and “Japan Airline” data has been cached. Both data can be displayed in offline mode.
Thanks for viewing the blog.
If you feel that I can improve in any of the aspects mentioned in this blog, please feel free for your suggestions.
Thank you.
Hi Sumeet,
a good series of blogs explaining a complete application flow. π
Regards,
Jitendra
Thanks Jitendra
Very good Explanation Sumeet .. π
Thanks Nikhil
good job........hoping for more such blogs.
thanks & regards,
narayan
Well explained. Thanks for the blog Sumeet.
Hi Sumeet,
Good one. Hoping for other blogs also.
Thnaks,
Madhu.
Hi Sumeet,
Really a nice blog!!!
Keep it up!!!
Hi sumeet,
Nice blog... Very discriptive.
Thanks,
Sachin N M
Hi Sumeet ,
Very nice blog..It was very useful..
Thanks,
Subhajit Dey.
hi Sumit,
nice compilation... 1 question : is offiline hybrid container possbible for change scenario as well.?
Excellent Work...
Hi Sumit ,
Excellent work , good job π .