I am creating an app in which you need to update your profile by uploading your image through gallery or through camera. I am not able to figure out how to display option of choosing gallery or camera on clicking quickcontactbadge icon and at the end find the image URL so as to pass in the Web Service URL in order to register the user.
<QuickContactBadge
android:id="@+id/profilepicbadge"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignBottom="@+id/username"
/>
And image path need to be passed in
Bitmap icon = BitmapFactory.decodeResource(getResources(), R.drawable.contact_default);
in place of R.drawable.contact_default
No comments:
Post a Comment