Questions tagged [android-photos]

51 questions
0
votes
0 answers

How to take a photo without switching to the camera application?

I'm trying to create an Android application that when you receive a text message with a particular command performs actions such as taking a picture, sending an image or recording a sound. I made the part that reacts to the command received from an…
0
votes
0 answers

How to open media browser directly to photo gallery?

I want to create an Android Gallery/Photos viewer that lets the user PICK a profile picture. Based on all the examples I looked at, this is my code for doing so. val galleryIntent = Intent(Intent.ACTION_GET_CONTENT,…
Bungles
  • 1,969
  • 2
  • 25
  • 54
0
votes
1 answer

How to start gallery app from an android app?

I am trying to open the gallery app from my android application. I want to just open the gallery app and not other apps with like fotos. I have tried intent.setAction(Intent.ACTION_GET_CONTENT); intent.setType("image/*"); and …
0
votes
1 answer

How to customize ACTION_IMAGE_CAPTURE?

Is it possible to use ACTION_IMAGE_CAPTURE and customize some parts of the code? If yes, how? I would like to add some Toast in the code. I know that there is the method onActivityResult to add some actions at the moment of the end of the…
user7867367
0
votes
0 answers

How can I differentiate if a picture is made fron the internal or external camera

Hello I am trying to make an app and I need to differentiatie if a photo has been tanken forn the internal or external camera of my smartphone. I need this because my smartphone rotates the photos in one or another direction depending on which…
0
votes
2 answers

Android cannot open photo with intent

I'm trying to open my photo with intent to view it in my phone's default gallery app, but when I do so, my app flashes and reloads without providing any errors. I'm trying to open my photo like this: Uri uri = FileProvider.getUriForFile(context,…
thousight
  • 1,134
  • 1
  • 14
  • 39
0
votes
3 answers

Java android pick a photo from gallery for a folder

I don't know how I can pick a photo from gallery from one folder : Now I have this : private void galleryIntent() { Intent intent = new Intent(); intent.setType("image/*"); intent.setAction(Intent.ACTION_GET_CONTENT);// …
0
votes
2 answers

Picture Intent Zero Length Image

What am I doing wrong here? I'm trying to call the intent to get a picture in full size: takePictureIntent private void takePictureIntent(int request) { final Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); if…
Jumpa
  • 4,319
  • 11
  • 52
  • 100
0
votes
2 answers

How can you load image string paths and image files with picasso and glide?

So no matter what I do, neither picasso and glide can load an image File OR an image string path into an imageview. I've tried. here is my code: @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { …
TheQ
  • 1,949
  • 10
  • 38
  • 63
0
votes
1 answer

Want to make photo in Android, but it automatically downscales the photo to 160x160px

Hello fellow programmers. My problem: Every time I made a photo, Android automatically scales it down to 160x160px. I don't know why. Here is my code: Here I set all the preferences for the camera: public void ChosenPhoto(String extra) { …
0
votes
0 answers

Gallery not showing photos from SD card

We're building some gallery app. Recently some users complain that they can't see some folders from their sd card (they can't see it on the stock gallery too). We check with them and see that there is no .nomedia file in the folder. We also check on…
shem
  • 4,686
  • 2
  • 32
  • 43
0
votes
1 answer

Photo turns 90 degress when viewing

In my app the user has the opportunity to take pictures and then view it in an ImageView. The problem is the image when viewing the photo turns 90 dregrees (if i take in portrait it appears in landscape). What am i doing wrong?? Taking photo: Intent…
0
votes
2 answers

Loading photos from Mysql in Android app

The photos don't appear into my app. My code for load it is the following: private static final String TAG = "ERROR"; private static final int IO_BUFFER_SIZE = 4 * 1024; public static Bitmap loadBitmap(String url) { Bitmap bitmap = null; …
CapAm
  • 217
  • 3
  • 18
0
votes
0 answers

Is it possible to upload photo using foursquare api in Android app?

I am trying to upload a photo to a venue using the Foursquare API in an Android app. But I get FileNotFoundException at httpsUrlConnection.getInputStream. Is it possible to upload photo to venue using foursquare api? If so, how can I do that?
0
votes
2 answers

Android Application crash - Null Pointer Exception

I'm developing a simple app which captures an image from camera and saves it to storage. I cannot figure out what is wrong here...when user takes a picture and accept it, the app crashes. @Override protected void onCreate(Bundle savedInstanceState)…
Kfir
  • 157
  • 1
  • 3
  • 11