• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

[App] Wait4Date

kanaiada2

Newbie
Sep 12, 2019
48
5
Coming soon... A better and more simple dating app...
 

Attachments

  • Screenshot_20190926-202932.png
    Screenshot_20190926-202932.png
    115.4 KB · Views: 125
  • Screenshot_20190926-202937.png
    Screenshot_20190926-202937.png
    227.2 KB · Views: 114
  • Screenshot_20190926-202944.png
    Screenshot_20190926-202944.png
    280.2 KB · Views: 107
  • Screenshot_20190926-202952.png
    Screenshot_20190926-202952.png
    129.7 KB · Views: 132
  • Screenshot_20190926-203004.png
    Screenshot_20190926-203004.png
    253.6 KB · Views: 112
  • Screenshot_20190926-203251.png
    Screenshot_20190926-203251.png
    596.2 KB · Views: 103
  • Screenshot_20190926-221947.png
    Screenshot_20190926-221947.png
    207.9 KB · Views: 107
The only bug remaining is that I need to ask for 'Storage Permission'.

This works well for me and might get you sorted as well...

Java:
if (getPermission()) {
  ...
}

// Check if storage permission has been granted. If not, request it.
private boolean getPermission() {
  if (Build.VERSION.SDK_INT >= 23) {
    if (ActivityCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED) {
      // True if permission granted exists.
      return true;
    } else {
      // We ask for storage permission if it doesn't exist.
      ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE}, WRITE_STORAGE);
      return false;
    }
  } else {
    // True for SDK < 23
    return true;
  }
}

// Check if user granted or denied storage permission when requested and
// run code for either situation. This method is optional, but useful.
@Override
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
  if (requestCode == WRITE_STORAGE) {
    if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {
      Toast.makeText(getApplicationContext(), "Permission Granted.", Toast.LENGTH_LONG).show();
    } else {
      Toast.makeText(getApplicationContext(), "Permission Denied!", Toast.LENGTH_LONG).show();
    }
  }
}

Manifest...

XML:
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
 
Upvote 0
Yeah for added security google introduced runtime permissions which must be explicitly seen and agreed to by the user.

There is a library...
https://github.com/nabinbhandari/Android-Permissions

I try not to use libraries when possible. With a library, if it's not updated, you will have to update it yourself.

Make sure to check the one I linked. It has not been updated since December and google has made some deprecations and changes since.
 
Upvote 0
I just created the update. It seems to work well.
I also avoided the camera permission by using a camera intent then immediately after, opening a gallery by intent which shows recent photos etc...
This bypasses that separate crazy thumbnail/full sized image code... Intent for result code...
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones