Status Update
Comments
ni...@gmail.com <ni...@gmail.com> #2
Branch: androidx-master-dev
commit d46999fa005b4726287814ea0f8abe30cf189a01
Author: Jeremy Woods <jbwoods@google.com>
Date: Tue May 26 15:36:06 2020
Clean up ActivityResultCaller implementation
Instead of using two separate anonymous classes to be returned by the
register methods, lets clean it up by using an internal class and only
doing the implementation once.
Test: Tested in app
Bug: 156875743
Change-Id: Ia63dd0dce4ecd7115ea93168f889e119738e3352
M activity/activity-ktx/api/1.2.0-alpha06.txt
M activity/activity-ktx/api/current.txt
M activity/activity-ktx/api/public_plus_experimental_1.2.0-alpha06.txt
M activity/activity-ktx/api/public_plus_experimental_current.txt
M activity/activity-ktx/api/restricted_1.2.0-alpha06.txt
M activity/activity-ktx/api/restricted_current.txt
M activity/activity-ktx/src/main/java/androidx/activity/result/ActivityResultCaller.kt
ma...@gmail.com <ma...@gmail.com> #3
Branch: androidx-master-dev
commit 55c784def8b9942026075af6fc659b551732ef44
Author: Jeremy Woods <jbwoods@google.com>
Date: Tue May 26 08:45:51 2020
Add getContract to ActivityResultLauncher
Intents provide a way to check if the intent can be handled by any
Activity components and the ActivityResultLauncher should provide
the ability to do something similar.
This change adds a getContract API to ActivityResultLauncher that gives
the returns the contract used to register the launcher. This means that
users can create an Intent from their contract and make all of their
desired checks.
Test: ActivityResultLauncherTest
Bug: 156875743
RelNote: "ActivityResultLauncher now allows you to get the
ActivityResultContract that was used to register the launcher."
Change-Id: I64f536f2b3dde3e87cea884c6b9c111e5efe26ed
M activity/activity-ktx/build.gradle
M activity/activity-ktx/src/androidTest/AndroidManifest.xml
A activity/activity-ktx/src/androidTest/java/androidx/activity/result/ActivityResultCallerTest.kt
M activity/activity-ktx/src/main/java/androidx/activity/result/ActivityResultCaller.kt
M activity/activity/api/1.2.0-alpha06.txt
M activity/activity/api/current.txt
M activity/activity/api/public_plus_experimental_1.2.0-alpha06.txt
M activity/activity/api/public_plus_experimental_current.txt
M activity/activity/api/restricted_1.2.0-alpha06.txt
M activity/activity/api/restricted_current.txt
M activity/activity/src/androidTest/java/androidx/activity/result/ActivityResultLauncherTest.kt
M activity/activity/src/main/java/androidx/activity/result/ActivityResultLauncher.java
M activity/activity/src/main/java/androidx/activity/result/ActivityResultRegistry.java
M fragment/fragment/src/main/java/androidx/fragment/app/Fragment.java
re...@gmail.com <re...@gmail.com> #4
This has been fixed internally and will be available in the Activity 1.2.0-alpha06 release.
To address this the ActivityResultLauncher
now gives access to the ActivityResultContract
.
With the contract, you can create the intent and use it to call resolveActivity()
directly:
launcher.contract.createIntent(context, input).resolveActivity(packageManager)
tu...@gmail.com <tu...@gmail.com> #5
Keep in mind that due to the resolveActivity()
will return null unless you add the specific <queries>
elements to your manifest.
As per that doc, the alternative is to catch the ActivityNotFoundException
yourself by wrapping your launch()
call in a try
/ catch
, just like if you were using startActivityForResult()
yourself.
ka...@gmail.com <ka...@gmail.com> #6
sl...@gmail.com <sl...@gmail.com> #7
gi...@gmail.com <gi...@gmail.com> #8
But at least Google is looking at these bugs, thanks, Google.
ed...@gmail.com <ed...@gmail.com> #9
ke...@gmail.com <ke...@gmail.com> #10
og...@gmail.com <og...@gmail.com> #11
th...@gmail.com <th...@gmail.com> #12
fi...@algures.net <fi...@algures.net> #13
ja...@gmail.com <ja...@gmail.com> #14
I would really like to support more advanced bulk album management than is possible through the website. Especially with the Google drive integration coming to an end.
to...@merly.org <to...@merly.org> #15
wi...@gmail.com <wi...@gmail.com> #16
gr...@gmail.com <gr...@gmail.com> #17
ma...@gmail.com <ma...@gmail.com> #18
cl...@gmail.com <cl...@gmail.com> #19
[Deleted User] <[Deleted User]> #20
re...@gmail.com <re...@gmail.com> #21
an...@gmail.com <an...@gmail.com> #22
ri...@gmail.com <ri...@gmail.com> #23
But I can't see how this can be an issue. If it's restricted to albums that the app created, then there's no risk at all.
It would also be good to be able to remove items from an album that the app has created (again, without removing the actual item)
ma...@gmail.com <ma...@gmail.com> #24
It's also not very explicit in the documentation - I wouldn't have started on my reorg project if I had seen this earlier.
gi...@gmail.com <gi...@gmail.com> #25
ch...@gmail.com <ch...@gmail.com> #26
ab...@gmail.com <ab...@gmail.com> #27
ju...@gmail.com <ju...@gmail.com> #28
ju...@gmail.com <ju...@gmail.com> #29
ma...@lohr.net <ma...@lohr.net> #30
@Google: Any comment on this?
ig...@gelado.cat <ig...@gelado.cat> #31
bi...@gmail.com <bi...@gmail.com> #32
ct...@gmail.com <ct...@gmail.com> #33
al...@gmail.com <al...@gmail.com> #34
ev...@gmail.com <ev...@gmail.com> #35
ma...@maremoto.com <ma...@maremoto.com> #36
Maybe that could be solved also if they would allow the action when the type of users allowed to authenticate are internal.
I think this won't be solved. The reason for @Google to avoid this action exceeds the conceptual or the programmatic issues. It is probably that they doesn't want a corporation to use Google Photos Mobile App as a part of an internal software solution.
If this is the reason, Google should have in account that this does not avoid that we use Google Photos App for the same goals. They are only getting their user angry (almost when we are paying big amounts of money for Google Suite for example).
Please, take this in account and at least answer us. We are waiting for you to give some solution or tell us if you wont solve it.
Thank you all.
tc...@gmail.com <tc...@gmail.com> #37
ma...@gmail.com <ma...@gmail.com> #38
fr...@gmail.com <fr...@gmail.com> #39
ca...@kellcomnet.us <ca...@kellcomnet.us> #40
ni...@gmail.com <ni...@gmail.com> #41
ro...@gmail.com <ro...@gmail.com> #42
wd...@gmail.com <wd...@gmail.com> #43
om...@gmail.com <om...@gmail.com> #44
st...@gmail.com <st...@gmail.com> #45
What sort of API is this?
Just allow me to manage my own data!!!!!!!!
go...@gmail.com <go...@gmail.com> #46
dn...@gmail.com <dn...@gmail.com> #47
This is a valuable part of the api, which would allow developers to code apps that do many things end-users would like a lot.
pu...@gmail.com <pu...@gmail.com> #48
an...@gmail.com <an...@gmail.com> #49
ay...@gmail.com <ay...@gmail.com> #50
lu...@gmail.com <lu...@gmail.com> #51
ge...@gmail.com <ge...@gmail.com> #52
This API is basically useless without this. Spent a day only to realize these APIs only let you control data created by the app and not pre-existing data.
This should be made extremely clear on the Google API Page. I lost a day :(
I really hope Picasa would come back .. Google Photos is so limiting.
ph...@gmail.com <ph...@gmail.com> #53
c'est réellement pénible cette restriction
déjà qu'il ne soit pas possible d'appliquer { 'sharedAlbumOptions': {'isCollaborative': True, 'isCommentable': True }} sur ces vieux albums Picasa !
à croire que Google pense que je dois faire cela manuellement ...
jo...@googlemail.com <jo...@googlemail.com> #54
sa...@gmail.com <sa...@gmail.com> #55
ea...@gmail.com <ea...@gmail.com> #56
ak...@gmail.com <ak...@gmail.com> #57
....without it this api cannot be used to manage any existing photos :(
ak...@gmail.com <ak...@gmail.com> #58
ma...@gmail.com <ma...@gmail.com> #59
bo...@gmail.com <bo...@gmail.com> #60
si...@gmail.com <si...@gmail.com> #61
al...@gmail.com <al...@gmail.com> #62
o....@gmail.com <o....@gmail.com> #63
me...@gmail.com <me...@gmail.com> #64
el...@gmail.com <el...@gmail.com> #65
ri...@rilhia.com <ri...@rilhia.com> #66
ji...@gmail.com <ji...@gmail.com> #67
[Deleted User] <[Deleted User]> #68
th...@gmail.com <th...@gmail.com> #69
me...@clgr.io <me...@clgr.io> #70
me...@clgr.io <me...@clgr.io> #71
mi...@gmail.com <mi...@gmail.com> #72
Any chance of a formal response?
se...@gmail.com <se...@gmail.com> #73
pi...@gmail.com <pi...@gmail.com> #74
12...@gmail.com <12...@gmail.com> #75
This is likely to be a driver for me to look for a better place to store my photos if I can't manipulate them with API and Google Drive sync doesn't work anymore.
ba...@gmail.com <ba...@gmail.com> #76
jo...@gmail.com <jo...@gmail.com> #77
kr...@gmail.com <kr...@gmail.com> #78
xu...@gmail.com <xu...@gmail.com> #79
jp...@gmail.com <jp...@gmail.com> #80
jo...@gmail.com <jo...@gmail.com> #81
I feel they don't want to make it easy to upload all of our organized albums until after they relinquish on the free storage deal.
no...@gmail.com <no...@gmail.com> #82
+1
Is there any update on this?
The current Library API does not allow users or developers to manage/organize their existing pictures and existing albums in any meaningful way. Users essentially have read-only access to their own existing media via this API (we can change descriptions).
The Google Drive API allows
Some transparency would go a long way here.
es...@gmail.com <es...@gmail.com> #83
ra...@rr7.com <ra...@rr7.com> #84
le...@gmail.com <le...@gmail.com> #85
at...@gmail.com <at...@gmail.com> #86
we...@gmail.com <we...@gmail.com> #87
fr...@gmail.com <fr...@gmail.com> #88
sn...@gmail.com <sn...@gmail.com> #89
an...@gmail.com <an...@gmail.com> #90
ni...@gmail.com <ni...@gmail.com> #91
ji...@gmail.com <ji...@gmail.com> #92
sh...@gmail.com <sh...@gmail.com> #93
an...@gmail.com <an...@gmail.com> #94
je...@gmail.com <je...@gmail.com> #95
je...@geerdink.xyz <je...@geerdink.xyz> #96
Alternatively being able to tag images would be great, but probably a greater security concern.
12...@gmail.com <12...@gmail.com> #97
ph...@gmail.com <ph...@gmail.com> #98
bu...@gmail.com <bu...@gmail.com> #99
am...@gmail.com <am...@gmail.com> #100
do...@gmail.com <do...@gmail.com> #101
[Deleted User] <[Deleted User]> #102
sr...@gmail.com <sr...@gmail.com> #103
at...@gmail.com <at...@gmail.com> #104
ka...@gmail.com <ka...@gmail.com> #105
ab...@gmail.com <ab...@gmail.com> #106
ki...@gmail.com <ki...@gmail.com> #107
ba...@gmail.com <ba...@gmail.com> #108
kr...@gmail.com <kr...@gmail.com> #109
sa...@u.northwestern.edu <sa...@u.northwestern.edu> #110
br...@gmail.com <br...@gmail.com> #111
rr...@gmail.com <rr...@gmail.com> #112
ca...@gmail.com <ca...@gmail.com> #113
ro...@gmail.com <ro...@gmail.com> #114
it...@gmail.com <it...@gmail.com> #115
to...@gmail.com <to...@gmail.com> #116
ka...@gmail.com <ka...@gmail.com> #117
dp...@gmail.com <dp...@gmail.com> #118
wa...@gmail.com <wa...@gmail.com> #119
vi...@gmail.com <vi...@gmail.com> #120
i was going crazy from all the time i spent trying to debug my code only to find out that the problem wasnt my code but these artificial limitations imposed on us by google and that its literally impossible to sort stuff like that, that has been uploaded by another app
pls fix asap, been waiting for over a year now
dm...@gmail.com <dm...@gmail.com> #121
vi...@gmail.com <vi...@gmail.com> #122
es...@gmail.com <es...@gmail.com> #123
At the moment, it is impossible to organize existing photos, your OWN photos, into albums using the API. There are many use cases for such a functionality, many of which have already been outlined in the comments above. But especially for libraries that include thousands of photos, this limitation makes it impossible to use Google Photos effectively for many people. I'm already a paying customer, but the unresponsiveness from Google is making me seriously consider moving on to a different service where I can at least organize my photos despite lacking in other features.
Any update on this issue, even a simple explanation as to why it's not possible would be appreciated.
mp...@gmail.com <mp...@gmail.com> #124
TBH I have no idea why someone would use so stripped service.
Also - they want your pictures, but they don't want you to take control over them - even downloading them in batches is blocked, so you can't go somewhere else easily.
Cheers for all of you, I'm unfollowing this topic, because I'm tired of constant "+1" emails which won't change a thing. I'm here from the beginning and it has been years. Nothing.
re...@weteling.com <re...@weteling.com> #125
Why isnt the api returning the full listof media items. It doenst make any sense.
da...@gmail.com <da...@gmail.com> #126
+1
I'd like to take control back to my content and be able to retrieve all of it via the API.
vi...@gmail.com <vi...@gmail.com> #127
ve...@gmail.com <ve...@gmail.com> #128
My opinion is that Google Photos is for photos that you want to continue to have access to from any location, or photos that you want to share with other people or devices (photo frame anyone?). Not some random set of all photos that I took with my phone under poor lighting (rather than my professional grade camera). So please let me manage "MY" photos the way "I" want.
+1
Maybe this feature was implemented for security purposes. How about allowing the user to have an API/End User key that allows them "FULL" access to photos in their account. I understand the concept of API keys for an app that would be generally available to the public. Still the User (who might be giving you money monthly for storage) should have a say in giving full access.
de...@psencik.cz <de...@psencik.cz> #129
na...@gmail.com <na...@gmail.com> #130
+1
dv...@gmail.com <dv...@gmail.com> #131
Built an application to maintain my photo collection, then when I'm what I think is almost the finish line, I get the rug pulled out from under me. This restriction is frustrating and seems nonsensical to me.
ko...@kalmaz.com <ko...@kalmaz.com> #132
mo...@gmail.com <mo...@gmail.com> #133
Unbelievable..
sh...@gmail.com <sh...@gmail.com> #134
ma...@marenjo.com <ma...@marenjo.com> #135
ju...@gmail.com <ju...@gmail.com> #136
As many others, I would like to have an opportunity to reorganize my existing media library through API, as it's impossible to select thousands of items by filename through the web UI.
ar...@gmail.com <ar...@gmail.com> #137
ar...@gmail.com <ar...@gmail.com> #138
1595 days since opening (4 years, 4 months).
What does it take to get Google to fix a bug?
vi...@gmail.com <vi...@gmail.com> #139
ky...@gmail.com <ky...@gmail.com> #140
So sad that Google Photos, the leading one of the photos app market is not fixing these kind of basic problems. So, do we have to use other apps?
al...@gmail.com <al...@gmail.com> #141
ma...@gmail.com <ma...@gmail.com> #142
ky...@gmail.com <ky...@gmail.com> #143
je...@gmail.com <je...@gmail.com> #144
ak...@gmail.com <ak...@gmail.com> #145
to...@gmail.com <to...@gmail.com> #146
to...@gmail.com <to...@gmail.com> #147
no...@gmail.com <no...@gmail.com> #148
no...@gmail.com <no...@gmail.com> #149
I spend a few hours on a script that:
- Lists all items in my local folder that I marked for deletion.
- Fetches all images from the Photo's api.
- Filtering images received from the api, matching my local "delete" list.
- Creates a new album "to delete" on the api.
(as means of a workaround of the api not supporting a "delete" command) - Tried to add all filtered images to the new "to delete" album.
(And this is where it failed)
The error returned is way to generic. It says "Request contains an invalid media item id." Where it could/should say something like "No permission to handle media not created by this application" or something that actually gives a clue about the issue.
Why not provide an extra scope That could be placed in the "Your restricted scopes" section that clearly states to the user that managing ALL images is allowed with this scope (including deletion?) That would make it all so much easier, especially for personal projects.
pe...@gmail.com <pe...@gmail.com> #150
pa...@gmail.com <pa...@gmail.com> #151
ar...@gmail.com <ar...@gmail.com> #152
ag...@gmail.com <ag...@gmail.com> #153
Google wont give away their power over our data.
Unless a major power forces them. Meanwhile, look for alternative decent providers.
bi...@gmail.com <bi...@gmail.com> #154
sj...@gmail.com <sj...@gmail.com> #155
sj...@gmail.com <sj...@gmail.com> #156
ma...@gmail.com <ma...@gmail.com> #157
mp...@gmail.com <mp...@gmail.com> #158
ma...@gmail.com <ma...@gmail.com> #159
ha...@gmail.com <ha...@gmail.com> #160
th...@gmail.com <th...@gmail.com> #161
de...@gmail.com <de...@gmail.com> #162
Its been over 4 years, but no updates.
sa...@gmail.com <sa...@gmail.com> #163
Just add a special permission.
I don't even care if it's just available for devs.
so sad this getting entirly ignored :'(
ha...@gmail.com <ha...@gmail.com> #164
je...@gmail.com <je...@gmail.com> #165
I'm glad I finally found this thread but understand what my issue was.
Less glad to discover that dozens of us are stuck in the same impasse.
That's really too bad.
Any suggestion on a free hosting service that would do what Google Photos does. i.e. organizing albums in a nice fashion, easily searchable, scrollable, etc...?
Description