Search in sources :

Example 56 with Intent

use of android.content.Intent in project android-betterpickers by code-troopers.

the class ListSamples method activityIntent.

protected Intent activityIntent(String pkg, String componentName) {
    Intent result = new Intent();
    result.setClassName(pkg, componentName);
    return result;
}
Also used : Intent(android.content.Intent)

Example 57 with Intent

use of android.content.Intent in project cw-omnibus by commonsguy.

the class EU4You method onCountrySelected.

@Override
public void onCountrySelected(Country c) {
    String url = getString(c.url);
    if (details != null && details.isVisible()) {
        details.loadUrl(url);
    } else {
        Intent i = new Intent(this, DetailsActivity.class);
        i.putExtra(DetailsActivity.EXTRA_URL, url);
        startActivity(i);
    }
}
Also used : Intent(android.content.Intent)

Example 58 with Intent

use of android.content.Intent in project cw-omnibus by commonsguy.

the class EU4You method onCountrySelected.

@Override
public void onCountrySelected(Country c) {
    String url = getString(c.url);
    if (details != null && details.isVisible()) {
        details.loadUrl(url);
    } else {
        Intent i = new Intent(this, DetailsActivity.class);
        i.putExtra(DetailsActivity.EXTRA_URL, url);
        startActivity(i);
    }
}
Also used : Intent(android.content.Intent)

Example 59 with Intent

use of android.content.Intent in project cw-omnibus by commonsguy.

the class DownloaderDemo method doTheDownload.

public void doTheDownload() {
    Intent i = new Intent(this, Downloader.class);
    i.setData(Uri.parse("https://commonsware.com/Android/excerpt.pdf"));
    i.putExtra(Downloader.EXTRA_MESSENGER, new Messenger(handler));
    startService(i);
}
Also used : Intent(android.content.Intent) Messenger(android.os.Messenger)

Example 60 with Intent

use of android.content.Intent in project TakePhoto by crazycodeboy.

the class SimpleActivity method showImg.

private void showImg(ArrayList<TImage> images) {
    Intent intent = new Intent(this, ResultActivity.class);
    intent.putExtra("images", images);
    startActivity(intent);
}
Also used : Intent(android.content.Intent)

Aggregations

Intent (android.content.Intent)30598 PendingIntent (android.app.PendingIntent)4802 Test (org.junit.Test)2560 View (android.view.View)2527 Bundle (android.os.Bundle)2094 ComponentName (android.content.ComponentName)1706 TextView (android.widget.TextView)1660 Uri (android.net.Uri)1607 Context (android.content.Context)1506 ResolveInfo (android.content.pm.ResolveInfo)1397 PackageManager (android.content.pm.PackageManager)1125 ArrayList (java.util.ArrayList)1067 IntentFilter (android.content.IntentFilter)917 ImageView (android.widget.ImageView)904 ActivityNotFoundException (android.content.ActivityNotFoundException)859 File (java.io.File)823 RemoteException (android.os.RemoteException)786 DialogInterface (android.content.DialogInterface)752 IOException (java.io.IOException)742 SharedPreferences (android.content.SharedPreferences)665