Mitesh Makwana

Greenhorn
+ Follow
since Jul 17, 2018
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Mitesh Makwana

I solve my problem

I store the path of the image instead of Uri in shared preference
5 years ago




method



private String getRealPathFromURI(Context context, Uri contentUri) {

Cursor cursor = null;

try {

String[] proj = { MediaStore.Images.Media.DATA };

cursor = context.getContentResolver().query(contentUri, proj, null, null, null);

int column_index = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);

cursor.moveToFirst();

return cursor.getString(column_index);

} catch (Exception e) {

Log.e("Path", "getRealPathFromURI Exception : " + e.toString());

return "";

} finally {

if (cursor != null) {

cursor.close();

}

}

}



i am getting this error



E/path: getRealPathFromURI Exception : java.lang.SecurityException: Permission Denial: opening provider com.google.android.apps.photos.contentprovider.impl.MediaContentProvider from ProcessRecord{c3b0cec 9068:com.rayvatapps.launcher/u0a94} (pid=9068, uid=10094) that is not exported from UID 10066



E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: / (Permission denied)





please help me any suggestion would br helpfull
5 years ago

Mitesh Makwana wrote:output

getting this output

check

please suggest why i am getting this output

Any help would be highly appreciated.




after removing fitsSystemWindows=" true" from the style and putting fitsSystemWindows="true" to all of the tags, it worked.

5 years ago

John Joe wrote:Just wonder is the back button is the button in your drawable ? Your drawable named is R.drawable.ic_arrow_back_black_24dp, but the color is white.



no it is just a vector image pick from vector asset

Right click on drawable and select vector asset there you can find this material image. I just change color after picking the image
5 years ago

John Joe wrote:Please show us your code



because it's not allow me to post all code code posted on second link
5 years ago

Mitesh Makwana wrote:output

getting this output

code

please suggest why i am getting this output

Any help would be highly appreciated.

5 years ago
output

getting this output

check

please suggest why i am getting this output

Any help would be highly appreciated.
5 years ago

Mitesh Makwana wrote:

Tim Moores wrote:And what is that in this context? I look at the screen recording you posted and I see nothing that jumps out as obviously incorrect. Can you describe in words what should be happening, and what is happening instead?



some time recyclerview item comes out and showing upperside in  collapsingtoolbar

5 years ago

Tim Moores wrote:And what is that in this context? I look at the screen recording you posted and I see nothing that jumps out as obviously incorrect. Can you describe in words what should be happening, and what is happening instead?



some time recyclerview item comes out and showing upper in  collapsingtoolbar
5 years ago

Tim Moores wrote:What is a "suffeled view"?



means showing unproper output .
5 years ago
I am trying to show the layout properly but sometimes it's not showing properly I don't know what is happening i'll try but don't find any problem.

https://imgur.com/a/MgEOnOr output that i am getting sometimes

when i scroll it's work fine again please help me why I am getting this output sometimes

https://stackoverflow.com/questions/51380012/activity-showing-suffeled-view please check thils link also for code

I tried everything but i don't understand why is this happening.


 [1]: https://imgur.com/a/MgEOnOr
5 years ago