How to specify Starting page of app?

6 posts, 0 answers
  1. Atik
    Atik avatar
    4 posts
    Member since:
    Jul 2013

    Posted 09 Jul 2013 Link to this post

    Hello All,
    I am new to this Icenium mist. I have started to develop app with kendo ui mobile. In case of android phonegap, there is provision of specifying starting page inside MainActivity class when we are developing it using ecllipse.
    So is there same provision inside icenium?
    I have created new html page with name suppose "MainPage.html" and want to set it as starting page of project.
    How can I do this?
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 09 Jul 2013 Link to this post

    Hello Atik,

    Yes, you can specify the default page by overriding the <content> tag in the respective config.xml (one for iOS and one for Android):

    <content src="MainPage.html" />
    For more information, see Edit Configuration Files. Be aware that you cannot test your configuration changes in the device simulator or Icenium Ion, you would have to run your app on a device.

    P.S. Currently there is a bug in Cordova that would not respect this setting on Android devices. We've already logged this for investigation and would see if we could patch this on our end.

    Regards,
    Steve
    Telerik

    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Missed our first webinar, watch it here.
    Share feedback and vote for features on our Feedback Portal.
  3. Atik
    Atik avatar
    4 posts
    Member since:
    Jul 2013

    Posted 09 Jul 2013 Link to this post

    Hey Steve,
    Thanks for the early reply.
    <content src="MainPage.html" />
    I have done the above change in config.xml file as suggested by you , but when I run the project on android phone  simulator of Icenium Mist , it is opening index.html page.
    So what could be the problem?
  4. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 10 Jul 2013 Link to this post

    Hello Atik,

    Changes to the config.xml file would not be respected in the Icenium simulator and as also mentioned in my previous post, this functionality currently does not work on Android devices. Until it is addressed, you would have to make an internal redirect to your desired page from index.html, just add the following meta to the <head> tag of index.html:

    <meta http-equiv="refresh" content="0; url=MainPage.html">

    Regards,
    Steve
    Telerik

    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Missed our first webinar, watch it here.
    Share feedback and vote for features on our Feedback Portal.
  5. Carlos
    Carlos avatar
    1 posts
    Member since:
    Jan 2014

    Posted 28 Jan 2014 Link to this post

    Hello.
    I was going crazy wondering why my changes weren't being applied until I found this post. Please consider updating the simulator to load the config.xml file properties for content. Thank you.
  6. Iva Koevska
    Admin
    Iva Koevska avatar
    286 posts

    Posted 30 Jan 2014 Link to this post

    Hello Carlos,

    This is indeed a good idea. Would you mind posting it is a feature suggestion in our feedback portal, so other users can vote for it and the team can evaluate it's added value for the product based on customer feedback.

    Thanks! 

    Regards,
    Iva Koevska
    Telerik

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top