phonegap dialog android

1,038 views
Skip to first unread message

dinesh

unread,
Jan 25, 2011, 1:49:08 AM1/25/11
to phonegap, dinesh....@gmail.com
Hi




My app is running fine before adding

super.setStringProperty("loadingDialog", "Title,Message");

After adding i got javascript execution exceeded timeout error and
the screen is black
UI is not display.


How to solve this problem

Bryce Curtis

unread,
Jan 25, 2011, 10:35:13 AM1/25/11
to phonegap
The following works for me:

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
super.setStringProperty("loadingDialog", "Title,Message");
this.loadUrl("file:///android_asset/www/index.html");
}

The setStringProperty() was added in release 0.9.3

dinesh kumar

unread,
Jan 26, 2011, 12:29:19 AM1/26/11
to phon...@googlegroups.com

I use the same syntax even then i do not get it to work for me.

This is the code i have written to my app

public class Demo extends DroidGap {


@Override
    public void onCreate(Bundle savedInstanceState) {
       
        super.onCreate(savedInstanceState);
       
        // LoadUrl timeout value in msec (default of 20 sec)
        super.loadUrlTimeoutValue = 60000;
       
        //Set properties for activity 
         
        // load splash.jpg image from the resource drawable directory
        super.setIntegerProperty("splashscreen", R.drawable.launcher_image);
       
        //show loading dialog
        super.setStringProperty("loadingDialog", "WhiteLabel App,Loading...");
        super.loadUrl("file:///android_asset/www/index.html");
     }
}

This is the code i have written. when i moved to phonegap-0.9.2 to phonegap-0.9.3  i got the error
onReceivedError: Error code=-6 Description=The connection to the server was unsuccessful. URL=file:///android_asset/www/index.html

That's why i changed the loadUrlTimeoutValue to 60000(instead of 20000). Then the  app works on phonegap-0.9.3.

when i try to add the progress dialog all the scripts are executed successfully but i got the error

In jquery-1.4.4.js: Line 33 : JavaScript execution exceeded timeout.  But all the script is executed successfully

and display black screen UI is not displayed.




--
You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en

For more info on PhoneGap or to download the code go to www.phonegap.com

Reply all
Reply to author
Forward
0 new messages