How to access gmail attachment data in my app

前端 未结 2 1082
死守一世寂寞
死守一世寂寞 2020-12-10 17:09

I have an app that uses a specifically created binary (.gcsb) file type. These files are kept in a folder on the sdcard.

At the moment they are moved on and off usin

2条回答
  •  心在旅途
    2020-12-10 18:09

    nwm01223' answer is correct! A small addendum: His answer only works for ACTION_VIEW. if you add

    Uri uri = null;
    if(Intent.ACTION_VIEW.equals(action)){
        uri = intent.getData();
    } else if(Intent.ACTION_SEND.equals(action)){
        uri = (Uri) intent.getParcelableExtra(Intent.EXTRA_STREAM);
    }
    

    it will also work for ACTION_SEND

提交回复
热议问题