ralfgehrer / androidcamerautil Goto Github PK
View Code? Open in Web Editor NEWA util project to take pictures on Android devices utilizing the camera intent.
License: Apache License 2.0
A util project to take pictures on Android devices utilizing the camera intent.
License: Apache License 2.0
de.ecotastic.android.camerautil.lib.CameraIntentHelperActivity
line number 379.
Cursor no close.
Hey,
I am using this library.
Its working fine. I have integrated in my activity.
Now i want to use this library in fragment.
Can you help me, how can i use with this library within fragment?
Thanks
Hey,
Great job.
Could you extended your lib to work also in the Gallery?
Hi, for some reason onCanceled() is getting called each time after taking the picture. The image file isn't being saved either.
What allow this parameter in BitmapHelper.java ? (maxLengthOfEdge) When I set it to 3000, it rotate my photo wrongly.. Thanks in advance !
Phone: Samsung Galaxy Nexus
OS: Android 4.1.2
Steps:
09-07 17:46:56.007 2595-2595/de.ecotastic.android.camerautil.sample E/AndroidRuntime﹕ FATAL EXCEPTION: main
java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=100, result=-1, data=Intent { act=inline-data (has extras) }} to activity {de.ecotastic.android.camerautil.sample/de.ecotastic.android.camerautil.sample.CameraIntentActivity}: java.lang.NullPointerException
at android.app.ActivityThread.deliverResults(ActivityThread.java:3141)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:3184)
at android.app.ActivityThread.access$1100(ActivityThread.java:130)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1243)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4745)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at de.ecotastic.android.camerautil.sample.util.BitmapHelper.readBitmap(BitmapHelper.java:115)
at de.ecotastic.android.camerautil.sample.CameraIntentActivity$2.onPhotoUriFound(CameraIntentActivity.java:57)
at de.ecotastic.android.camerautil.lib.CameraIntentHelper.onPhotoUriFound(CameraIntentHelper.java:354)
at de.ecotastic.android.camerautil.lib.CameraIntentHelper.onCameraIntentResult(CameraIntentHelper.java:319)
at de.ecotastic.android.camerautil.lib.CameraIntentHelper.onActivityResult(CameraIntentHelper.java:207)
at de.ecotastic.android.camerautil.sample.CameraIntentActivity.onActivityResult(CameraIntentActivity.java:113)
at android.app.Activity.dispatchActivityResult(Activity.java:5192)
at android.app.ActivityThread.deliverResults(ActivityThread.java:3137)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:3184)
at android.app.ActivityThread.access$1100(ActivityThread.java:130)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1243)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4745)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at dalvik.system.NativeStart.main(Native Method)
Why you try to get the photo 1st in MediaStore and 2nd in the intent result, and not first in the intent result? Wouldn't be more appropriate?
Hello, I'm impressed by the number of devices supported by this library. I was wondering if you were interested in migrating this library to Gradle especially since the Eclipse ADT plugin is no longer in active development by Google.
Migrating to Gradle would simplify integration for those using AS and it could make it easier to adapt the library to use the Appcompat support library since it seems many developers will be using it for backwards compatibility.
A pull request would be made based on this branch: https://github.com/snapwire-media/AndroidCameraUtil/tree/gradlelized
I'm trying to pick video and trying to show the video
but the issue is on some samsung device video gets rotated.
Can you help me how can I resolve the issue?
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.