Skip to content

Snappy1

  • Home
  • Android
  • What
  • How
  • Is
  • Can
  • Does
  • Do
  • Why
  • Are
  • Who
  • Toggle search form

[FIXED] android – EuiccManager switchToSubscription

Posted on November 11, 2022 By

Solution 1 :

Subscription ID the the ID used by SubscriptionManager, which you can get from SubscriptionInfo.getSubscriptionId() or the getSubscriptionIds() method.

Unfortunately, the documentation for that class is quite sparse. But if you just need to know the subscription ID of your eSIM, you can use the adb command

adb shell dumpsys isub

which will show you all of the available subscriptions as well as the currently active ones.

Note also that downloadSubscription has a switchAfterDownload method, so you don’t need to get the subscription ID to switch to it manually, if you have the download operation immediately preceding it.

Problem :

I am prototyping an eSIM install/subscription use case by following the following doc: https://source.android.com/devices/tech/connect/esim-overview:

I have successfully download the profile that I can subscribe to it if I use the device settings app. However it fails silently if I try to subscribe to it using the following API:

mgr.switchToSubscription(1 /* subscriptionId */, callbackIntent);

Anyone has any pointer what is subscriptionId? or any pointer how to look for more info?

READ  [FIXED] android - Moving a View in a loop
Powered by Inline Related Posts
Android Tags:android, euiccmanager

Post navigation

Previous Post: [FIXED] React-native android build fails due to missing files in the gradle cache?
Next Post: Can I use Google storage instead of iCloud?

Related Posts

[FIXED] java – Is this the right code to reuse date and time method? Because I reuse it in three activities Android
[FIXED] unable to pass data from fragment to tablelayout using safe Args in android jetpack Android
[FIXED] android – Problem With ViewHolder In Androidx RecyclerView Android
[FIXED] android – There is chrases in some google related in Firebase Chraslytics Android
[FIXED] java – How to implement changes of the location and a rest button (Android Studio) Android
[FIXED] android – Kotlin – Type mismatch required collection found list Android

Archives

  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022

Categories

  • ¿Cómo
  • ¿Cuál
  • ¿Cuándo
  • ¿Cuántas
  • ¿Cuánto
  • ¿Qué
  • Android
  • Are
  • At
  • C'est
  • Can
  • Comment
  • Did
  • Do
  • Does
  • Est-ce
  • Est-il
  • For
  • Has
  • Hat
  • How
  • In
  • Is
  • Ist
  • Kann
  • Où
  • Pourquoi
  • Quand
  • Quel
  • Quelle
  • Quelles
  • Quels
  • Qui
  • Should
  • Sind
  • Sollte
  • Uncategorized
  • Wann
  • Warum
  • Was
  • Welche
  • Welchen
  • Welcher
  • Welches
  • Were
  • What
  • What's
  • When
  • Where
  • Which
  • Who
  • Who's
  • Why
  • Wie
  • Will
  • Wird
  • Wo
  • Woher
  • you can create a selvedge edge: You can make the edges of garter stitch more smooth by slipping the first stitch of every row.2022-02-04
  • you really only need to know two patterns: garter stitch

Recent Posts

  • Quel est le fromage qui porte le nom d’une commune de Côte d’Or et qui est produit en Haute-marne ?
  • Welches ist das beste Senioren Smartphone?
  • What is ISO benefit?
  • What do red bottom shoes represent?
  • Are ultrasonic cleaners safe for electronics?

Recent Comments

No comments to show.

Copyright © 2023 Snappy1.

Powered by PressBook Grid Dark theme