Changeset 17673


Ignore:
Timestamp:
04/08/14 13:43:46 (11 years ago)
Author:
toanqngu
Message:

Update the URL source path for online mode

Location:
issm/mobile/android/ISSM_APP
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/mobile/android/ISSM_APP/project.properties

    r17423 r17673  
    1212
    1313# Project target.
    14 target=android-18
     14target=android-19
  • issm/mobile/android/ISSM_APP/src/gov/nasa/jpl/issm/ISSMWebActivity.java

    r17658 r17673  
    2222
    2323        // URL of the index page of the ISSM web application
    24         // private String srcPath =
    25         // "http://issm.jpl.nasa.gov/externalicelab/index.html";
     24        private String srcPath = "http://issm.jpl.nasa.gov/externalicelab/html/index.html";
    2625        private String offPath = "file:///android_asset/externalicelab/index.html";
    2726        private final String KEY = "mode";
    2827        private String issmFolder = "";
    2928        private int MODE;
    30         private String srcPath = "http://www.csupomona.edu/~lannguyen/ISSM_WEB/html/index.html";
     29        // private String srcPath =
     30        // "http://www.csupomona.edu/~lannguyen/ISSM_WEB/html/index.html";
    3131        private WebView myWebView;
    3232
     
    3636                requestWindowFeature(Window.FEATURE_NO_TITLE);
    3737                setContentView(R.layout.activity_issmweb_online);
    38                 // getActionBar().setCustomView(R.layout.actionbar_top_web);
    39                 // getActionBar().setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM);
    4038                MODE = getIntent().getExtras().getInt(KEY);
    41 
    42                 // Button webHome = (Button) findViewById(R.id.web_home);
    43                 // webHome.setOnClickListener(new OnClickListener() {
    44                 //
    45                 // @Override
    46                 // public void onClick(View v) {
    47                 // if (MODE == 0) {
    48                 // myWebView.loadUrl(srcPath);
    49                 // } else {
    50                 // myWebView.loadUrl(offPath);
    51                 // }
    52                 // }
    53                 //
    54                 // });
    55                 //
    56                 // Button webRefresh = (Button) findViewById(R.id.web_refresh);
    57                 // webRefresh.setOnClickListener(new OnClickListener() {
    58                 //
    59                 // @Override
    60                 // public void onClick(View v) {
    61                 // myWebView.loadUrl(myWebView.getOriginalUrl());
    62                 // // Log.i("srcUrl: ", srcPath);
    63                 // // Log.i("newUrl: ", myWebView.getOriginalUrl());
    64                 // }
    65                 //
    66                 // });
    67 
    68                 // final ProgressDialog loading = new ProgressDialog(this);
    69                 // loading.setMessage("Loading page...");
    70                 // loading.setCancelable(false);
    71                 // loading.show();
    7239
    7340                myWebView = (WebView) findViewById(R.id.issmWeb);
     
    7946                                        if (url.startsWith("http")
    8047                                                        && !url.contains("http://thwaites.jpl.nasa.gov/fastcgi/visl-solve.py?callbacks")) {
    81                                                 // myWebView.setVisibility(View.INVISIBLE);
    8248                                                myWebView.stopLoading();
    8349                                                new AlertDialog.Builder(ISSMWebActivity.this)
Note: See TracChangeset for help on using the changeset viewer.