Comments (4)
already added, see the sample code https://github.com/AizazAZ/Android-Ultra-Photo-Selector/blob/master/src/com/photoselector/ui/PhotoSelectorActivity.java
from android-ultra-photo-selector.
Can run the example?
from android-ultra-photo-selector.
Intent intent = new Intent(context, activity);
intent.putExtra(PhotoSelectorActivity.KEY_MAX, maxImage);
context.startActivityForResult(intent, requestCode);
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if (resultCode != RESULT_OK)
return;
if (requestCode == SELECT_IMAGE_CODE) {// selected image
if (data != null && data.getExtras() != null) {
@SuppressWarnings("unchecked")
List<PhotoModel> photos = (List<PhotoModel>) data.getExtras().getSerializable("photos");
if (photos == null || photos.isEmpty()) {
UIHelper.ToastMessage(this, R.string.no_photo_selected);
} else {
Intent intent = new Intent(this, YourOwnLogic.class);
Bundle b = new Bundle();
b.putSerializable("album_pojo", albumPojo);
b.putSerializable("photos", (Serializable) photos);
intent.putExtras(b);
startActivity(intent);
finish();
}
}
}
from android-ultra-photo-selector.
thanks 👍
from android-ultra-photo-selector.
Related Issues (14)
- Add information about licensing HOT 1
- Please use UTF-8
- Code License HOT 1
- Use camera and take photo?
- Use this library java.lang.UnsupportedOperationException: Unknown URI: content://media/external/images/media
- Use this library java.lang.SecurityException
- 没有实现SavedInstanceState,数据一下就丢失了。
- Usage HOT 1
- Memory cache required HOT 3
- Image thumbnail required HOT 3
- 没用缩略图 HOT 1
- PhotoSelectorActivity.KEY_MAX problem HOT 2
- Image disappears after setColorFilter use glide load image HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-ultra-photo-selector.