Beispiel #1
0
 @Override
 public void onClick(View v) {
   switch (v.getId()) {
     case id.actionbar_right:
       Account account = AccountProxy.getInstance().getCurrentAccount();
       String url =
           NetworkClient.getWebSitePath(
               NetworkClient.URL_SUBSCRIBE_WEB_CENTRE, account.getAccessToken());
       Log.v("SubscribeController", url);
       TemporaryData.save(Constants.TEMPORARYDATA_KEY_URL, url);
       TemporaryData.save(
           Constants.TEMPORARYDATA_KEY_TITLE, getResources().getString(R.string.indicator_number));
       ActivityWebViewContainer.callMe(getActivity());
       break;
     case R.id.actionbar_title:
       break;
     default:
       break;
   }
 }
Beispiel #2
0
  public void jumpToWebSite(String uri) {

    String webSite = NetworkClient.getWebSitePath(uri);
    Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(webSite));
    getActivity().startActivity(intent);
  }