Click here to Skip to main content
15,885,757 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have this inside my .js file:
C#
body.delegate('.project_type', 'click', function () {
                var cur_id = jQuery('.project_url').find('p').html();
                Android.NavigateToProjectOverview();
            });



I want to pass cur_id to
Android.NavigateToProjectOverview();
to handle it in android.

Here is my Android code:
@JavascriptInterface
		public void NavigateToProjectOverview(String id){		
			Intent intent = new Intent(ProjectListActivity.this, ScanCamActivity.class);
			intent.putExtra("FileName", "");
			 intent.putExtra(EXTRAS_KEY_ACTIVITY_ARCHITECT_WORLD_URL, "www"
					 + File.separator + "studio"
					 + File.separator + "ModTarget" 					  
					 + File.separator + "index.html");			
			startActivity(intent);	
		}
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900