Package android.content

Examples of android.content.Intent


   

    private final class JpegPictureCallback implements PictureCallback {
        public void onPictureTaken(byte [] jpegData, android.hardware.Camera camera) {
          DetectFaces.setJpegData(jpegData);
          startActivity(new Intent("jjil.app.facedetect.detectfaces"));
          stopPreview();
          //finish();
        }
View Full Code Here


              is.close();
              } catch (Exception ex) {
                    ex.printStackTrace();
                      System.err.print("Exception: " + ex.toString()); //$NON-NLS-1$ //$NON-NLS-2$        
              }
              startActivity(new Intent("jjil.app.facedetect.preview"));
          finish();
            }
          };
          t.start();
       } catch (Exception ex) {
View Full Code Here

        switch (keyCode) {
            case KeyEvent.KEYCODE_CAMERA:
            case KeyEvent.KEYCODE_DPAD_CENTER:
            case KeyEvent.KEYCODE_FOCUS:
            case KeyEvent.KEYCODE_BACK:
                startActivity(new Intent("jjil.app.facedetect.preview"));
                finish();
                return true;
       }
       return super.onKeyDown(keyCode, event);
    }
View Full Code Here

      settings.setOnMenuItemClickListener(new OnMenuItemClickListener()
      {

      public boolean onMenuItemClick(MenuItem item)
      {
        Intent i = new Intent();
        i.setClass(getApplicationContext(), EditPreferencesActivity.class);
        MainActivity.this.startActivity(i);
        return true;
      }
       
      });
View Full Code Here

  private ClientSettings settings;
  private LocationManager locationManager;
 
  static public Intent getIntent(Context ctx)
  {
    Intent i = new Intent();

    ComponentName component = new ComponentName(ctx, BackgroundService.class);

    i.setComponent(component);

    return i;
  }
View Full Code Here

{
 
    protected void openWebBrowser(String url)
    {
      Log.i(this.getClass().getName(), "about to launch browser, url: " + url);
      Intent i = new Intent(Intent.ACTION_VIEW);
      i.setData(Uri.parse(url));
      startActivity(i);
    }
View Full Code Here

        }
      }
    }

    passwordString = null;
    Intent intent = new Intent(LoginActivity.this, SecretsListActivity.class);
    startActivity(intent);
    Log.d(LOG_TAG, "LoginActivity.handlePasswordClick done");
  }
View Full Code Here

        break;
      case R.id.list_access: {
        // TODO(rogerta): maybe just stuff the index into the intent instead
        // of serializing the whole secret, it seems to be slow.
        Secret secret = secretsList.getSecret(cmenuPosition);
        Intent intent = new Intent(this, AccessLogActivity.class);
        intent.putExtra(EXTRA_ACCESS_LOG, secret);
        startActivity(intent);
        break;
      }
      case R.id.list_copy_password_to_clipboard:
      case R.id.list_copy_username_to_clipboard: {
View Full Code Here

    SaveService.secrets = secrets;
    SaveService.cipher = cipher;
    SaveService.salt = salt;
    SaveService.rounds = rounds;

    Intent intent = new Intent(context, SaveService.class);
    context.startService(intent);
  }
View Full Code Here

            public void onItemClick(AdapterView<?> parent, View view,
                    int position, long id) {
                switch (position) {
                    case 0:
                        startActivity(new Intent(MainActivity.this, Fundamentals.class));
                        break;
                    case 1:
                        startActivity(new Intent(MainActivity.this, CanvasActivity.class));
                        break;
                    case 2:
                        startActivity(new Intent(MainActivity.this, CameraActivity.class));
                        break;
                    case 3:
                        startActivity(new Intent(MainActivity.this, ConfigActivity.class));
                        break;
                }
                //Toast.makeText(getApplicationContext(), ((TextView) view).getText(),
                //       Toast.LENGTH_SHORT).show();
            }
View Full Code Here

TOP

Related Classes of android.content.Intent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.