Changeset 14547
- Timestamp:
- 04/11/13 17:04:59 (12 years ago)
- Location:
- issm/trunk-jpl/src/mobile/android
- Files:
-
- 6 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/mobile/android/ISSM/src/gov/nasa/jpl/issm/VideoActivity.java
r14527 r14547 11 11 public class VideoActivity extends Activity { 12 12 13 String SrcPath = "rtsp://v 5.cache1.c.youtube.com/CjYLENy73wIaLQnNSFpiQoeuyBMYDSANFEIJbXYtZ29vZ2xlSARSBXdhdGNoYI-SyfPGoqqyUQw=/0/0/0/video.3gp";13 String SrcPath = "rtsp://v8.cache8.c.youtube.com/CjYLENy73wIaLQkL_ysv0M5QKhMYDSANFEIJbXYtZ29vZ2xlSARSBXdhdGNoYI-SyfPGoqqyUQw=/0/0/0/video.3gp"; 14 14 15 15 /** Called when the activity is first created. */ -
issm/trunk-jpl/src/mobile/android/ISSM_APP/AndroidManifest.xml
r14528 r14547 32 32 android:name="gov.nasa.jpl.issm.VideoActivity" 33 33 android:screenOrientation="portrait" 34 android:label="@string/title_video_issm" > 35 </activity> 36 <activity 37 android:name="gov.nasa.jpl.issm.AboutActivity" 38 android:screenOrientation="portrait" 39 android:label="@string/title_activity_issm" > 40 </activity> 41 <activity 42 android:name="gov.nasa.jpl.issm.TeamActivity" 43 android:screenOrientation="portrait" 34 44 android:label="@string/title_activity_issm" > 35 45 </activity> -
issm/trunk-jpl/src/mobile/android/ISSM_APP/bin/AndroidManifest.xml
r14528 r14547 32 32 android:name="gov.nasa.jpl.issm.VideoActivity" 33 33 android:screenOrientation="portrait" 34 android:label="@string/title_video_issm" > 35 </activity> 36 <activity 37 android:name="gov.nasa.jpl.issm.AboutActivity" 38 android:screenOrientation="portrait" 39 android:label="@string/title_activity_issm" > 40 </activity> 41 <activity 42 android:name="gov.nasa.jpl.issm.TeamActivity" 43 android:screenOrientation="portrait" 34 44 android:label="@string/title_activity_issm" > 35 45 </activity> -
issm/trunk-jpl/src/mobile/android/ISSM_APP/project.properties
r14537 r14547 12 12 13 13 # Project target. 14 target=android-1 614 target=android-15 -
issm/trunk-jpl/src/mobile/android/ISSM_APP/res/values/strings.xml
r14472 r14547 4 4 <string name="hello_world">Hello world!</string> 5 5 <string name="menu_settings">Settings</string> 6 <string name="title_video_issm">ISSM Sample Video</string> 7 <string name="about">ISSM is the result of a collaboration between the Jet Propulsion Laboratory and University of California at Irvine. Its purpose is to tackle the challenge of modeling the evolution of the polar ice caps in Greenland and Antarctica. \n\tISSM is funded by the NASA Cryosphere and MAP (Modeling Analysis and Prediction) programs, JPL R&TD(Research, Technology and Development) and the National Science Foundation. Our main collaborators are:MSSMat Laboratory of École Centrale Paris, Argonne National Laboratory and the Department of Geology of University of Buffalo, NY.\n\tAs synthesized in the last Intergovernmental Panel on Climate Change (IPCC) Assessment Report AR4,future changes in the Greenland and Antarctic ice sheet mass, particularly due to changes in ice flow,are a major source of uncertainty that could increase sea level rise projections.\n\tTo remedy this problem, large scale ice flow models are necessary that can accurately model the evolution of Greenland and Antarctica in a warming climate. In order to achieve this goal,and improve projections of future sea level rise, ISSM relies on state of the art technologies,developed in synergy with the Research and Technology Development (R&TD) at JPL.</string> 6 8 <string name="title_activity_issm">ISSM</string> 7 9 <string name="color_prompt">Pick a Color Map</string> -
issm/trunk-jpl/src/mobile/android/ISSM_APP/src/gov/nasa/jpl/issm/MenuPage.java
r14528 r14547 2 2 3 3 import android.app.Activity; 4 import android.app.AlertDialog; 4 5 import android.net.Uri; 5 6 import android.os.Bundle; … … 9 10 import android.widget.Button; 10 11 import android.widget.PopupWindow; 12 import android.content.DialogInterface; 11 13 import android.content.Intent; 14 import android.widget.TabHost; 15 import android.widget.TextView; 16 import android.widget.TabHost.TabContentFactory; 17 import android.widget.TabHost.TabSpec; 12 18 /////////////////////////////////////////////////////////////////////////// 13 19 public class MenuPage extends Activity … … 58 64 public void onClick(View v) 59 65 { 60 LayoutInflater layoutInflater = (LayoutInflater)getBaseContext().getSystemService(LAYOUT_INFLATER_SERVICE); 61 View popupView = layoutInflater.inflate(R.layout.popuptext, null); 62 final PopupWindow popupWindow = new PopupWindow( popupView, 400,600, true); 63 popupWindow.showAtLocation(popupView, Gravity.CENTER, 0, 0); 64 Button dismiss = (Button)popupView.findViewById(R.id.dismiss); 65 dismiss.setOnClickListener(new Button.OnClickListener() 66 { 67 public void onClick(View v) 68 { 69 popupWindow.dismiss(); 70 } 71 }); 66 //LayoutInflater layoutInflater = (LayoutInflater)getBaseContext().getSystemService(LAYOUT_INFLATER_SERVICE); 67 //View popupView = layoutInflater.inflate(R.layout.popuptext, null); 68 //final PopupWindow popupWindow = new PopupWindow( popupView, 400,600, true); 69 //popupWindow.showAtLocation(popupView, Gravity.CENTER, 0, 0); 70 //Button dismiss = (Button)popupView.findViewById(R.id.dismiss); 71 //dismiss.setOnClickListener(new Button.OnClickListener() 72 //{ 73 //public void onClick(View v) 74 // { 75 //popupWindow.dismiss(); 76 //} 77 //}); 78 Intent i = new Intent(MenuPage.this, AboutActivity.class); 79 startActivity(i); 72 80 } 73 81 }); 74 // navigate to website82 //Show Team Website 75 83 Button visitus = (Button) findViewById(R.id.visitus); 76 84 visitus.setOnClickListener(new View.OnClickListener() … … 78 86 public void onClick(View v) 79 87 { 80 String url = "http://issm.jpl.nasa.gov/"; 81 Intent i = new Intent(Intent.ACTION_VIEW); 82 i.setData(Uri.parse(url)); 88 //String url = "http://issm.jpl.nasa.gov/"; 89 //Intent i = new Intent(Intent.ACTION_VIEW); 90 //i.setData(Uri.parse(url)); 91 //startActivity(i); 92 93 Intent i = new Intent(MenuPage.this, TeamActivity.class); 83 94 startActivity(i); 84 95 } … … 95 106 }); 96 107 } 97 //------------------------------------------------------------------------------------- 108 //------------------------------------------------------------------------------------- 109 110 @Override 111 public void onBackPressed() { 112 new AlertDialog.Builder(this) 113 .setMessage("Are you sure you want to exit?") 114 .setCancelable(false) 115 .setPositiveButton("Yes", new DialogInterface.OnClickListener() { 116 public void onClick(DialogInterface dialog, int id) { 117 MenuPage.this.finish(); 118 } 119 }) 120 .setNegativeButton("No", null) 121 .show(); 122 } 98 123 } 99 124 /////////////////////////////////////////////////////////////////////////////////////////
Note:
See TracChangeset
for help on using the changeset viewer.