Category : photo

I used Picasso but photos don’t show. But text is showing in activity. Here the codes Upload Activity In this activity, I am uploading photos to Firebase. public class UploadActivity extends AppCompatActivity { EditText description; ImageView imageView; FirebaseDatabase firebaseDatabase; DatabaseReference myRef; private FirebaseAuth mAuth; private FirebaseAuth.AuthStateListener mAuthListener; private StorageReference mStorageRef; Uri selected; @Override protected void ..

Read more

I have created an app which clicks picture and saves it in phone storage. Here is the code which saves the picture in phone. Camera.PictureCallback mCall = new Camera.PictureCallback() { @Override public void onPictureTaken(byte[] data, Camera camera) { Uri uriTarget = getContentResolver().insert//(Media.EXTERNAL_CONTENT_URI, image); (Media.EXTERNAL_CONTENT_URI, new ContentValues()); OutputStream imageFileOS; try { imageFileOS = getContentResolver().openOutputStream(uriTarget); imageFileOS.write(data); imageFileOS.flush(); ..

Read more