Example usage for android.content Intent putExtras

List of usage examples for android.content Intent putExtras

Introduction

In this page you can find the example usage for android.content Intent putExtras.

Prototype

public @NonNull Intent putExtras(@NonNull Bundle extras) 

Source Link

Document

Add a set of extended data to the intent.

Usage

From source file:com.android.music.TrackBrowserFragment.java

@Override
public boolean onContextItemSelected(MenuItem item) {
    switch (item.getItemId()) {
    case PLAY_SELECTION: {
        // play the track
        int position = mSelectedPosition;
        MusicUtils.playAll(getActivity(), mTrackCursor, position);
        return true;
    }/*from  w w  w.  j  ava2  s.  c o  m*/

    case QUEUE: {
        long[] list = new long[] { mSelectedId };
        MusicUtils.addToCurrentPlaylist(getActivity(), list);
        return true;
    }

    case NEW_PLAYLIST: {
        Intent intent = new Intent();
        intent.setClass(getActivity(), CreatePlaylist.class);
        startActivityForResult(intent, NEW_PLAYLIST);
        return true;
    }

    case PLAYLIST_SELECTED: {
        long[] list = new long[] { mSelectedId };
        long playlist = item.getIntent().getLongExtra("playlist", 0);
        MusicUtils.addToPlaylist(getActivity(), list, playlist);
        return true;
    }

    case USE_AS_RINGTONE:
        // Set the system setting to make this the current ringtone
        MusicUtils.setRingtone(getActivity(), mSelectedId);
        return true;

    case DELETE_ITEM: {
        long[] list = new long[1];
        list[0] = (int) mSelectedId;
        Bundle b = new Bundle();
        String f;
        if (android.os.Environment.isExternalStorageRemovable()) {
            f = getString(R.string.delete_song_desc);
        } else {
            f = getString(R.string.delete_song_desc_nosdcard);
        }
        String desc = String.format(f, mCurrentTrackName);
        b.putString("description", desc);
        b.putLongArray("items", list);
        Intent intent = new Intent();
        intent.setClass(getActivity(), DeleteItems.class);
        intent.putExtras(b);
        startActivityForResult(intent, -1);
        return true;
    }

    case REMOVE:
        removePlaylistItem(mSelectedPosition);
        return true;

    case SEARCH:
        doSearch();
        return true;
    }
    return super.onContextItemSelected(item);
}

From source file:com.dmsl.anyplace.UnifiedNavigationActivity.java

private void loadSelectBuildingActivity(GeoPoint loc, boolean invisibleSelection) {

    Intent placeIntent = new Intent(UnifiedNavigationActivity.this, SelectBuildingActivity.class);
    Bundle b = new Bundle();

    if (loc != null) {
        b.putString("coordinates_lat", String.valueOf(loc.dlat));
        b.putString("coordinates_lon", String.valueOf(loc.dlon));
    }//from  w ww.  j a v  a  2  s.c  o m
    b.putSerializable("mode",
            invisibleSelection ? SelectBuildingActivity.Mode.INVISIBLE : SelectBuildingActivity.Mode.NONE);
    placeIntent.putExtras(b);

    // start the activity where the user can select the building he is in
    startActivityForResult(placeIntent, SELECT_PLACE_ACTIVITY_RESULT);
}

From source file:de.vanita5.twittnuker.util.Utils.java

public static void openStatuses(final Activity activity, final List<ParcelableStatus> statuses) {
    if (activity == null || statuses == null)
        return;/* w ww  .j  a v  a 2 s  .com*/
    final Bundle extras = new Bundle();
    extras.putParcelableArrayList(EXTRA_STATUSES, new ArrayList<ParcelableStatus>(statuses));
    final Uri.Builder builder = new Uri.Builder();
    builder.scheme(SCHEME_TWITTNUKER);
    builder.authority(AUTHORITY_STATUSES);
    final Intent intent = new Intent(Intent.ACTION_VIEW, builder.build());
    intent.putExtras(extras);
    SwipebackActivityUtils.startSwipebackActivity(activity, intent);
}

From source file:org.ednovo.goorusearchwidget.SearchResults_resource.java

/**
 * @function name : createVideoLayout/*w  ww .j  av  a  2  s  . co m*/
 * 
 *           This function is used to add 5 more resources in horizontallist
 *           view.
 * 
 * @param 5 list(resUrls, resTitles, resCategory, resDescription,
 *        resGooruOid);
 * 
 * @return void
 * 
 * 
 */

public void createVideoLayout(List<String> resincUrls, List<String> resincTitle, List<String> resincCategory,
        List<String> resincDescription, List<String> resincGooruid) {

    LinearLayout scrollChild = (LinearLayout) findViewById(R.id.layoutVideo);
    int size = resincUrls.size();
    Log.i("Size to check :", "" + size);
    int intial = 0;
    if (videoresGooruOid.size() > 4) {
        intial = videoresGooruOid.size() - 5;
    } else {
        videoRight.setVisibility(View.GONE);
    }

    Log.i("intial", "" + intial);
    for (int i = 0; i < size; i++) {
        resourcelayout = LayoutInflater.from(this).inflate(R.layout.resource_view, null);
        TextView title = (TextView) resourcelayout.findViewById(R.id.textViewTitle);
        title.setText(nullCheck(resincTitle.get(i), "None Added"));

        TextView category = (TextView) resourcelayout.findViewById(R.id.textViewSource);
        category.setText(nullCheck(resincCategory.get(i), "None Added"));

        TextView descr = (TextView) resourcelayout.findViewById(R.id.textViewDescription);
        descr.setText(nullCheck(resincDescription.get(i), "None Added"));

        FetchableImageView image = (FetchableImageView) resourcelayout.findViewById(R.id.imgViewRes);
        image.setImage(resUrls.get(i), R.drawable.resourcedefault);

        resourcelayout.setTag(intial);
        imageViewCategory = (ImageView) resourcelayout.findViewById(R.id.imageViewCategory);
        imageViewCategory.setImageDrawable(getResources().getDrawable(R.drawable.video_ico));
        intial++;
        scrollChild.addView(resourcelayout, new LinearLayout.LayoutParams(250, 180));
        resourcelayout.setPadding(10, 0, 10, 0);
        resourcelayout.setOnClickListener(new View.OnClickListener() {

            public void onClick(View v) {

                int s = (Integer) v.getTag();
                Log.i("Size  completeGooruOid :", "" + videoresGooruOid.size());
                // Flurry Log
                flag_isPlayerTransition = true;
                resourceType = "Video";
                resourceGooruId = videoresGooruOid.get(s);

                Intent intentResPlayer = new Intent(getBaseContext(), ResourcePlayer.class);
                Bundle extras = new Bundle();
                extras.putInt("key", s);
                extras.putString("token", token);
                extras.putString("searchkey", searchKeyword);
                extras.putStringArrayList("goor", videoresGooruOid);
                intentResPlayer.putExtras(extras);
                startActivity(intentResPlayer);

            }
        });
    }

}

From source file:org.ednovo.goorusearchwidget.SearchResults_resource.java

/**
 * @function name :createslideLayout//from  w  w w .j a v a2 s.co m
 * 
 *           This function is used to add 5 more resources in horizontallist
 *           view.
 * 
 * @param 5 list(resUrls, resTitles, resCategory, resDescription,
 *        resGooruOid);
 * 
 * @return void
 * 
 * 
 */
// slide
public void createslideLayout(List<String> resincUrls, List<String> resincTitle, List<String> resincCategory,
        List<String> resincDescription, List<String> resincGooruid) {

    LinearLayout scrollChild = (LinearLayout) findViewById(R.id.layoutSlide);
    int size = resincUrls.size();
    Log.i("Size to check :", "" + size);
    List<String> resTempincGooruid = new ArrayList<String>();
    resTempincGooruid = resincGooruid;
    int intial = 0;
    if (slideresGooruOid.size() > 4) {
        intial = slideresGooruOid.size() - 5;
    } else {
        slideRight.setVisibility(View.GONE);
    }
    Log.i("intial", "" + intial);
    for (int i = 0; i < size; i++) {
        resourcelayout = LayoutInflater.from(this).inflate(R.layout.resource_view, null);
        TextView title = (TextView) resourcelayout.findViewById(R.id.textViewTitle);
        title.setText(nullCheck(resincTitle.get(i), "None Added"));

        TextView category = (TextView) resourcelayout.findViewById(R.id.textViewSource);
        category.setText(nullCheck(resincCategory.get(i), "None Added"));

        TextView descr = (TextView) resourcelayout.findViewById(R.id.textViewDescription);
        descr.setText(nullCheck(resincDescription.get(i), "None Added"));

        FetchableImageView image = (FetchableImageView) resourcelayout.findViewById(R.id.imgViewRes);
        image.setImage(resUrls.get(i), R.drawable.resourcedefault);

        resourcelayout.setTag(intial);
        imageViewCategory = (ImageView) resourcelayout.findViewById(R.id.imageViewCategory);
        imageViewCategory.setImageDrawable(getResources().getDrawable(R.drawable.slides_ico));
        intial++;

        scrollChild.addView(resourcelayout, new LinearLayout.LayoutParams(250, 180));
        resourcelayout.setPadding(10, 0, 10, 0);
        resourcelayout.setOnClickListener(new View.OnClickListener() {

            public void onClick(View v) {
                int s = (Integer) v.getTag();
                Log.i("Size  completeGooruOid :", "" + slideresGooruOid.size());

                // Flurry Log
                flag_isPlayerTransition = true;
                resourceType = "Slide";
                resourceGooruId = slideresGooruOid.get(s);

                Intent intentResPlayer = new Intent(getBaseContext(), ResourcePlayer.class);
                Bundle extras = new Bundle();
                extras.putInt("key", s);
                extras.putString("token", token);
                extras.putString("searchkey", searchKeyword);
                extras.putStringArrayList("goor", slideresGooruOid);
                intentResPlayer.putExtras(extras);
                startActivity(intentResPlayer);
            }
        });
    }

}

From source file:org.ednovo.goorusearchwidget.SearchResults_resource.java

/**
 * @function name :createexamLayout//from   ww w . j a va 2s.  co m
 * 
 *           This function is used to add 5 more resources in horizontallist
 *           view.
 * 
 * @param 5 list(resUrls, resTitles, resCategory, resDescription,
 *        resGooruOid);
 * 
 * @return void
 * 
 * 
 */

// exam
public void createexamLayout(List<String> resincUrls, List<String> resincTitle, List<String> resincCategory,
        List<String> resincDescription, List<String> resincGooruid) {

    LinearLayout scrollChild = (LinearLayout) findViewById(R.id.layoutExam);
    int size = resincUrls.size();
    Log.i("Size to check :", "" + size);
    List<String> resTempincGooruid = new ArrayList<String>();
    resTempincGooruid = resincGooruid;
    int intial = 0;
    if (examresGooruOid.size() > 4) {
        intial = examresGooruOid.size() - 5;
    } else {
        examRight.setVisibility(View.GONE);
    }
    Log.i("intial", "" + intial);
    for (int i = 0; i < size; i++) {
        resourcelayout = LayoutInflater.from(this).inflate(R.layout.resource_view, null);
        TextView title = (TextView) resourcelayout.findViewById(R.id.textViewTitle);
        title.setText(nullCheck(resincTitle.get(i), "None Added"));

        TextView category = (TextView) resourcelayout.findViewById(R.id.textViewSource);
        category.setText(nullCheck(resincCategory.get(i), "None Added"));

        TextView descr = (TextView) resourcelayout.findViewById(R.id.textViewDescription);
        descr.setText(nullCheck(resincDescription.get(i), "None Added"));

        FetchableImageView image = (FetchableImageView) resourcelayout.findViewById(R.id.imgViewRes);
        image.setImage(resUrls.get(i), R.drawable.resourcedefault);

        resourcelayout.setTag(intial);
        imageViewCategory = (ImageView) resourcelayout.findViewById(R.id.imageViewCategory);
        imageViewCategory.setImageDrawable(getResources().getDrawable(R.drawable.exam_ico));
        intial++;

        scrollChild.addView(resourcelayout, new LinearLayout.LayoutParams(250, 180));
        resourcelayout.setPadding(10, 0, 10, 0);
        resourcelayout.setOnClickListener(new View.OnClickListener() {

            public void onClick(View v) {
                int s = (Integer) v.getTag();
                Log.i("Size  completeGooruOid :", "" + examresGooruOid.size());

                // Flurry Log
                flag_isPlayerTransition = true;
                resourceType = "Exam";
                resourceGooruId = examresGooruOid.get(s);

                Intent intentResPlayer = new Intent(getBaseContext(), ResourcePlayer.class);
                Bundle extras = new Bundle();
                extras.putInt("key", s);
                extras.putString("token", token);
                extras.putString("searchkey", searchKeyword);
                extras.putStringArrayList("goor", examresGooruOid);
                intentResPlayer.putExtras(extras);
                startActivity(intentResPlayer);

            }
        });
    }

}

From source file:org.ednovo.goorusearchwidget.SearchResults_resource.java

/**
 * @function name : createlessonLayout/*from   www . ja  v a  2 s .  c o  m*/
 * 
 *           This function is used to add 5 more resources in horizontallist
 *           view.
 * 
 * @param 5 list(resUrls, resTitles, resCategory, resDescription,
 *        resGooruOid);
 * 
 * @return void
 * 
 * 
 */
// lesson
public void createlessonLayout(List<String> resincUrls, List<String> resincTitle, List<String> resincCategory,
        List<String> resincDescription, List<String> resincGooruid) {

    LinearLayout scrollChild = (LinearLayout) findViewById(R.id.layoutLesson);
    int size = resincUrls.size();
    Log.i("Size to check :", "" + size);
    List<String> resTempincGooruid = new ArrayList<String>();
    resTempincGooruid = resincGooruid;
    int intial = 0;
    if (lessonresGooruOid.size() > 4) {
        intial = lessonresGooruOid.size() - 5;
    } else {
        lessonRight.setVisibility(View.GONE);
    }
    Log.i("intial", "" + intial);
    for (int i = 0; i < size; i++) {
        resourcelayout = LayoutInflater.from(this).inflate(R.layout.resource_view, null);
        TextView title = (TextView) resourcelayout.findViewById(R.id.textViewTitle);
        title.setText(nullCheck(resincTitle.get(i), "None Added"));

        TextView category = (TextView) resourcelayout.findViewById(R.id.textViewSource);
        category.setText(nullCheck(resincCategory.get(i), "None Added"));

        TextView descr = (TextView) resourcelayout.findViewById(R.id.textViewDescription);
        descr.setText(nullCheck(resincDescription.get(i), "None Added"));

        FetchableImageView image = (FetchableImageView) resourcelayout.findViewById(R.id.imgViewRes);
        image.setImage(resUrls.get(i), R.drawable.resourcedefault);

        resourcelayout.setTag(intial);
        imageViewCategory = (ImageView) resourcelayout.findViewById(R.id.imageViewCategory);
        imageViewCategory.setImageDrawable(getResources().getDrawable(R.drawable.lesson_ico));
        intial++;

        scrollChild.addView(resourcelayout, new LinearLayout.LayoutParams(250, 180));
        resourcelayout.setPadding(10, 0, 10, 0);
        resourcelayout.setOnClickListener(new View.OnClickListener() {

            public void onClick(View v) {
                int s = (Integer) v.getTag();
                Log.i("Size  completeGooruOid :", "" + lessonresGooruOid.size());

                // Flurry Log
                flag_isPlayerTransition = true;
                resourceType = "Lesson";
                resourceGooruId = lessonresGooruOid.get(s);

                Intent intentResPlayer = new Intent(getBaseContext(), ResourcePlayer.class);
                Bundle extras = new Bundle();
                extras.putInt("key", s);
                extras.putString("token", token);
                extras.putString("searchkey", searchKeyword);
                extras.putStringArrayList("goor", lessonresGooruOid);
                intentResPlayer.putExtras(extras);
                startActivity(intentResPlayer);

            }
        });
    }

}

From source file:org.ednovo.goorusearchwidget.SearchResults_resource.java

/**
 * @function name :createwebsiteLayout/* ww w.j av a2s  . c  o  m*/
 * 
 *           This function is used to add 5 more resources in horizontallist
 *           view.
 * 
 * @param 5 list(resUrls, resTitles, resCategory, resDescription,
 *        resGooruOid);
 * 
 * @return void
 * 
 * 
 */
// website
public void createwebsiteLayout(List<String> resincUrls, List<String> resincTitle, List<String> resincCategory,
        List<String> resincDescription, List<String> resincGooruid) {

    LinearLayout scrollChild = (LinearLayout) findViewById(R.id.layoutWebsite);
    int size = resincUrls.size();
    Log.i("Size to check :", "" + size);
    List<String> resTempincGooruid = new ArrayList<String>();
    resTempincGooruid = resincGooruid;
    int intial = 0;
    if (websiteresGooruOid.size() > 4) {
        intial = websiteresGooruOid.size() - 5;
    } else {
        websiteRight.setVisibility(View.GONE);
    }
    Log.i("intial", "" + intial);
    for (int i = 0; i < size; i++) {
        resourcelayout = LayoutInflater.from(this).inflate(R.layout.resource_view, null);
        TextView title = (TextView) resourcelayout.findViewById(R.id.textViewTitle);
        title.setText(nullCheck(resincTitle.get(i), "None Added"));

        TextView category = (TextView) resourcelayout.findViewById(R.id.textViewSource);
        category.setText(nullCheck(resincCategory.get(i), "None Added"));

        TextView descr = (TextView) resourcelayout.findViewById(R.id.textViewDescription);
        descr.setText(nullCheck(resincDescription.get(i), "None Added"));

        FetchableImageView image = (FetchableImageView) resourcelayout.findViewById(R.id.imgViewRes);
        image.setImage(resUrls.get(i), R.drawable.resourcedefault);

        resourcelayout.setTag(intial);
        imageViewCategory = (ImageView) resourcelayout.findViewById(R.id.imageViewCategory);
        imageViewCategory.setImageDrawable(getResources().getDrawable(R.drawable.website_ico));
        intial++;

        scrollChild.addView(resourcelayout, new LinearLayout.LayoutParams(250, 180));
        resourcelayout.setPadding(10, 0, 10, 0);
        resourcelayout.setOnClickListener(new View.OnClickListener() {

            public void onClick(View v) {
                int s = (Integer) v.getTag();
                Log.i("Size  completeGooruOid :", "" + websiteresGooruOid.size());

                // Flurry Log
                flag_isPlayerTransition = true;
                resourceType = "Website";
                resourceGooruId = websiteresGooruOid.get(s);

                Intent intentResPlayer = new Intent(getBaseContext(), ResourcePlayer.class);
                Bundle extras = new Bundle();
                extras.putInt("key", s);
                extras.putString("token", token);
                extras.putString("searchkey", searchKeyword);
                extras.putStringArrayList("goor", websiteresGooruOid);
                intentResPlayer.putExtras(extras);
                startActivity(intentResPlayer);

            }
        });
    }

}

From source file:org.ednovo.goorusearchwidget.SearchResults_resource.java

/**
 * @function name :createhandoutLayout// w ww  .  j ava  2  s  .  c  om
 * 
 *           This function is used to add 5 more resources in horizontallist
 *           view.
 * 
 * @param 5 list(resUrls, resTitles, resCategory, resDescription,
 *        resGooruOid);
 * 
 * @return void
 * 
 * 
 */
// handout
public void createhandoutLayout(List<String> resincUrls, List<String> resincTitle, List<String> resincCategory,
        List<String> resincDescription, List<String> resincGooruid) {

    LinearLayout scrollChild = (LinearLayout) findViewById(R.id.layoutHandout);
    int size = resincUrls.size();
    Log.i("Size to check :", "" + size);
    List<String> resTempincGooruid = new ArrayList<String>();
    resTempincGooruid = resincGooruid;
    int intial = 0;
    if (handoutresGooruOid.size() > 4) {
        intial = handoutresGooruOid.size() - 5;
    } else {
        handoutRight.setVisibility(View.GONE);
    }
    Log.i("intial", "" + intial);
    for (int i = 0; i < size; i++) {
        resourcelayout = LayoutInflater.from(this).inflate(R.layout.resource_view, null);
        TextView title = (TextView) resourcelayout.findViewById(R.id.textViewTitle);
        title.setText(nullCheck(resincTitle.get(i), "None Added"));

        TextView category = (TextView) resourcelayout.findViewById(R.id.textViewSource);
        category.setText(nullCheck(resincCategory.get(i), "None Added"));

        TextView descr = (TextView) resourcelayout.findViewById(R.id.textViewDescription);
        descr.setText(nullCheck(resincDescription.get(i), "None Added"));

        FetchableImageView image = (FetchableImageView) resourcelayout.findViewById(R.id.imgViewRes);
        image.setImage(resUrls.get(i), R.drawable.resourcedefault);

        resourcelayout.setTag(intial);
        imageViewCategory = (ImageView) resourcelayout.findViewById(R.id.imageViewCategory);
        imageViewCategory.setImageDrawable(getResources().getDrawable(R.drawable.handouts_ico));
        intial++;

        scrollChild.addView(resourcelayout, new LinearLayout.LayoutParams(250, 180));
        resourcelayout.setPadding(10, 0, 10, 0);
        resourcelayout.setOnClickListener(new View.OnClickListener() {

            public void onClick(View v) {
                int s = (Integer) v.getTag();
                Log.i("Size  completeGooruOid :", "" + handoutresGooruOid.size());

                // Flurry Log
                flag_isPlayerTransition = true;
                resourceType = "Handout";
                resourceGooruId = handoutresGooruOid.get(s);

                Intent intentResPlayer = new Intent(getBaseContext(), ResourcePlayer.class);
                Bundle extras = new Bundle();
                extras.putInt("key", s);
                extras.putString("token", token);
                extras.putString("searchkey", searchKeyword);
                extras.putStringArrayList("goor", handoutresGooruOid);
                intentResPlayer.putExtras(extras);
                startActivity(intentResPlayer);

            }
        });
    }

}

From source file:org.ednovo.goorusearchwidget.SearchResults_resource.java

/**
 * @function name :createtextbookLayout/*from w w  w.  j ava  2s.c o  m*/
 * 
 *           This function is used to add 5 more resources in horizontallist
 *           view.
 * 
 * @param 5 list(resUrls, resTitles, resCategory, resDescription,
 *        resGooruOid);
 * 
 * @return void
 * 
 * 
 */
// textbook
public void createtextbookLayout(List<String> resincUrls, List<String> resincTitle, List<String> resincCategory,
        List<String> resincDescription, List<String> resincGooruid) {

    LinearLayout scrollChild = (LinearLayout) findViewById(R.id.layoutTextbook);
    int size = resincUrls.size();
    Log.i("Size to check :", "" + size);
    List<String> resTempincGooruid = new ArrayList<String>();
    resTempincGooruid = resincGooruid;

    int intial = 0;
    if (textbookresGooruOid.size() > 4) {
        intial = textbookresGooruOid.size() - 5;
    } else {
        textbookRight.setVisibility(View.GONE);
    }
    Log.i("intial", "" + intial);
    for (int i = 0; i < size; i++) {
        resourcelayout = LayoutInflater.from(this).inflate(R.layout.resource_view, null);
        TextView title = (TextView) resourcelayout.findViewById(R.id.textViewTitle);
        title.setText(nullCheck(resincTitle.get(i), "None Added"));

        TextView category = (TextView) resourcelayout.findViewById(R.id.textViewSource);
        category.setText(nullCheck(resincCategory.get(i), "None Added"));

        TextView descr = (TextView) resourcelayout.findViewById(R.id.textViewDescription);
        descr.setText(nullCheck(resincDescription.get(i), "None Added"));

        FetchableImageView image = (FetchableImageView) resourcelayout.findViewById(R.id.imgViewRes);
        image.setImage(resUrls.get(i), R.drawable.resourcedefault);

        resourcelayout.setTag(intial);
        imageViewCategory = (ImageView) resourcelayout.findViewById(R.id.imageViewCategory);
        imageViewCategory.setImageDrawable(getResources().getDrawable(R.drawable.textbook_ico));
        intial++;

        scrollChild.addView(resourcelayout, new LinearLayout.LayoutParams(250, 180));
        resourcelayout.setPadding(10, 0, 10, 0);
        resourcelayout.setOnClickListener(new View.OnClickListener() {

            public void onClick(View v) {
                int s = (Integer) v.getTag();
                Log.i("Size  completeGooruOid :", "" + textbookresGooruOid.size());

                // Flurry Log
                flag_isPlayerTransition = true;
                resourceType = "Textbook";
                resourceGooruId = textbookresGooruOid.get(s);

                Intent intentResPlayer = new Intent(getBaseContext(), ResourcePlayer.class);
                Bundle extras = new Bundle();
                extras.putInt("key", s);
                extras.putString("token", token);
                extras.putString("searchkey", searchKeyword);
                extras.putStringArrayList("goor", textbookresGooruOid);
                intentResPlayer.putExtras(extras);
                startActivity(intentResPlayer);

            }
        });
    }

}