Taking a photo with android and displaying metadata

后端 未结 1 1195
鱼传尺愫
鱼传尺愫 2021-01-24 12:55

I am writing an app that takes a photo and then displays the image with its metadata, this is what I have so far:

    

        
相关标签:
1条回答
  • 2021-01-24 13:27

    In fact you are not defining imgFile or location in onActivityResult().

    Also you need to import Location:

    import android.location.Location;
    

    And need to get the location from a LocationManager obtained from:

    Context.getSystemService(Context.LOCATION_SERVICE);
    
    0 讨论(0)
提交回复
热议问题