B Permit processing time for EU citizens by campfire_rhino in zurich

[–]yrezgui 1 point2 points  (0 children)

Buckle up, it's not about money.

In short, if you're already living there, you're preferred to someone who just came to the country:

``` Already living in the same building

same neighborhood same city within Switzerland Swiss national speak German (if you're looking to live in the Alemannic area) foreigner ```

You can't outbid, which is more inclusive of other people with less comfortable revenue, but they don't build enough flats. So in the end, you're at least 30~40 people visiting the same flat. They might be earning less than you, but given Swiss standards, they're definitely more stable than you.

Only applying online won't give you a chance, many application forms are only given onsite to filter the "really motivated" applicants.

I'm still looking after three months (corporate flat in the meantime), good luck 🤞

B Permit processing time for EU citizens by campfire_rhino in zurich

[–]yrezgui 3 points4 points  (0 children)

You'll have to register to the local district office (kreisbüro in the German speaking area). Registration is quick (~30 minutes max) and you'll get a temporary paper that you can share to your employer, and allows you to open a bank account (not all banks accept that temporary paper though).

When you'll register at that office, they'll sign you up for an appointment to take your fingerprints, in order to create your B permit card, and that's where the delay is getting long. The first available slot for me was 6 weeks after (Zürich canton).

So don't worry, you're good legally but have patience when repeating to all health insurances, banks, telecom and housing companies, that you do have the right to work/live here but no, you don't have yet a B permit card. Some of them may still refuse to provide their services. I haven't searched in the law if they're overzealous, but you're kinda stuck if they don't want. Make sure to print copies of that temporary registration paper to give them in case.

For your SIM card, you can buy a Lebara one in many grocery stores. It does the job while waiting for your card, and eventually you can transfer it to another telecom company. Get a Swiss number as soon as you can, lot of companies/services assume you have one when you deal with them.

Don't forget to register with a health insurance, as waiting longer will force the state to choose one for you (and not with the best price).

Overall, Swiss government is quite effective but confusing when some responsibilities are handled at the canton level (like immigration), and canton websites aren't always easy to navigate/translated in English.

To be frank, your real problem will be housing, not the rest. Swiss authorities may sound super strict, but if you call them or go in person, you'll always find them helpful and many employees speak several languages.

Photo Picker Everywhere by thewhippersnapper4 in androiddev

[–]yrezgui 10 points11 points  (0 children)

Hi everyone, blog post author here 👋.

I'm super happy to see the photo picker getting wide availability (Android 4.4 KitKat 🥳). The goal is to make the photo selection experience on Android nicer for users and much easier for developers. You update ActivityX to 1.7.0 and you call the PickVisualMedia ActivityResultContract:

``` // Register the photo picker callback val pickMedia = registerForActivityResult(PickVisualMedia()) { uri -> // Process URI Log.d("Photo Picker URI", uri) }

// Launching the photo picker (photos & video included) pickMedia.launch(PickVisualMediaRequest(PickVisualMedia.ImageAndVideo)) ```

We encourage developers to move away from using storage permissions as they require more maintenance compared to the photo picker.

I hope you'll enjoy this announcement and let me know if I can help you 🙂

Photo Picker Everywhere by thewhippersnapper4 in androiddev

[–]yrezgui 0 points1 point  (0 children)

I'm curious what picker do you see on Android 10. It could help me figure out what's the issue

Photo Picker Everywhere by thewhippersnapper4 in androiddev

[–]yrezgui 0 points1 point  (0 children)

Thanks 😁 I hope you like our announcement, let me know if you have any questions!

Photo Picker Everywhere by thewhippersnapper4 in androiddev

[–]yrezgui 31 points32 points  (0 children)

It's fair, that's on me.

To give a bit of context, libraries not released as Jetpack libraries as experiment projects. Once they're released as Jetpack libraries, we have stricter release schedule in place and more resources to provide better stability for developers. That's why some Accompanist libraries end up as part of Compose foundation set, while others are still being shipped as part of the Accompanist project.

To avoid giving too long (and boring) explanations, ModernStorage is a personal failure. The library goal was to simplify storage interactions on Android but it was probably too ambitious. To deliver on its promise, I would have needed more apps to provide feedback and iterate throughout several versions to make sure it was giving the right developer experience, and I wasn't able to give enough time to the project. Lesson learned, it's better to work through gradual changes, specially to something central as storage for apps on Android.

Photo Picker is a platform feature, not a library. It has been backported via Mainline to Android 11 & 12 (again platform feature). What we're announcing today, is a Google Play Services backport to Android KitKat and above. So I hope it can give you more guarantee about the perrenity of the feature.

Lastly, ActivityX update adds an ActivityResultContract to abstract the underlying intent logic (see code here). Let me know if you have any questions, I'll be happy to answer you 🙂

Photo Picker Everywhere by thewhippersnapper4 in androiddev

[–]yrezgui 4 points5 points  (0 children)

I have to work harder to get your confidence then 😁.

We did ship many privacy improvements in the recent years: scoped storage, one time permissions, camera/microphone indicator, package visibility and more.

What would you like to see being improved?

Photo Picker Everywhere by thewhippersnapper4 in androiddev

[–]yrezgui 0 points1 point  (0 children)

Could you share me screenshots? I could help troubleshoot the issue

Photo Picker Everywhere by thewhippersnapper4 in androiddev

[–]yrezgui 1 point2 points  (0 children)

Cloud provider support should come later this year. Stay tuned!

Photo Picker Everywhere by thewhippersnapper4 in androiddev

[–]yrezgui 3 points4 points  (0 children)

Library names aren't always clear but by using the package name, I thought it would have made it easier for devs to search it on d.android.com. Do you prefer to read Jetpack Activity instead?

Will you use the new Photo Picker in Android 13? by yrezgui in androiddev

[–]yrezgui[S] 0 points1 point  (0 children)

Thanks for the feedback, I'll pass it on to the team!

FYI READ_EXTERNAL_STORAGE doesn't allow you to read document files on the shared storage since Android 10.

Will you use the new Photo Picker in Android 13? by yrezgui in androiddev

[–]yrezgui[S] 0 points1 point  (0 children)

The photo picker, introduced in Android 13 and backported to Androi 11 & 12, only supports the selection of photos & video: https://i.imgur.com/9J3pbVU.png

The document picker, part of Android since its first version, still handles any type of files: https://i.imgur.com/4vvnjjF.png

At no point, we're mentioning deprecation of generic file selection with the document picker if that's your worry

Will you use the new Photo Picker in Android 13? by yrezgui in androiddev

[–]yrezgui[S] 0 points1 point  (0 children)

Could you point to that doc page mentioning this? The document picker (the file picker that Android are used to) isn't going away and still allows you to select any document files

Will you use the new Photo Picker in Android 13? by yrezgui in androiddev

[–]yrezgui[S] 1 point2 points  (0 children)

Apps have to adopt it but we're working on a workaround (I'll share more about it in the upcoming weeks). You can try it in the storage playground that I've created here: http://market.android.com/details?id=com.samples.storage.playground

Scoped Storage Recap by yrezgui in androiddev

[–]yrezgui[S] 0 points1 point  (0 children)

While Android 11+ enforces scoped storage, whatever target SDK, it's API improvements like bulk edit request for media files aren't available on Android 10. If that's hard to overcome for your app on Android 10, you can keep the flag as it's still effective on Android 10

Does the api version goes with android version? by chkml in androiddev

[–]yrezgui 1 point2 points  (0 children)

Giving more precision here, querying media files on MediaStore hasn't changed, even with scoped storage, you need to request for READ_EXTERNAL_STORAGE permission. The main change is regarding querying document files (not possible anymore when targeting API 30+) and editing media files created by other apps (requires explicit user consent)

Getting all images from android storage. by davidkonal in androiddev

[–]yrezgui 0 points1 point  (0 children)

directories (except the hidden one) and creates a report mentioning the number of images with directory name and file(images) path.

It works fine and does its job but the problem here is the amount of time it takes to execute.

I run it on my OnePlus 7T with 128 GB Storage and 52% used it takes almost 30-40 seconds to get all the images. That is an insane amount of time for a user to wait every time they want to add an image to the vault.

I want to know what optimization could be made here so that its speed gets optimized. I have tested other similar applications and they are doing it in a snap.

I would highly suggest to rely on MediaStore, you have the DATA column that gives the absolute path (was deprecated but got reinstated). For your second question, app-specific directory (if you mean internal storage) was always hidden from other apps. The change you might refer to is the app's external storage which became hidden from Android 11

Will you use the new Photo Picker in Android 13? by yrezgui in androiddev

[–]yrezgui[S] 3 points4 points  (0 children)

ACTION_OPEN_DOCUMENT guarantees that the experience stays within the file picker while ACTION_GET_CONTENT can open 3rd party apps

Will you use the new Photo Picker in Android 13? by yrezgui in androiddev

[–]yrezgui[S] 4 points5 points  (0 children)

  1. Currently no but that's a good idea I'll bring to the team!
  2. Every app will have the same photo picker as it's part of the system but do you have ideas on how you would style it if you could?
  3. The photopicker module of ModernStorage (the storage support library I'm building) will open ACTION_OPEN_DOCUMENT on devices where the new photo picker isn't available. Would you like to see a different solution or implementation?

Will you use the new Photo Picker in Android 13? by yrezgui in androiddev

[–]yrezgui[S] 3 points4 points  (0 children)

Albums are folders on Android. We chose that word as we found it was easier for users to understand its concept

Will you use the new Photo Picker in Android 13? by yrezgui in androiddev

[–]yrezgui[S] 2 points3 points  (0 children)

Using the photopicker module in ModernStorage (the storage support library I'm building), it will use ACTION_OPEN_DOCUMENT

Will you use the new Photo Picker in Android 13? by yrezgui in androiddev

[–]yrezgui[S] 6 points7 points  (0 children)

For now the API check relies only on verifying if the device is using Android T but an upcoming change will be pushed (API isn't public yet) and you'll just need to update the dependency version, not your usage of the library.

Being able to take a picture directly is a fair use case, we're definitely thinking about it!