Questions tagged [foldable-devices]

Mobile devices with a flexible, foldable Display. Even possible around corners.

Mobile devices with a flexible, foldable Display. Even possible around corners.

13 questions
2
votes
1 answer

How to disable resizeableActivity without disabling the support of foldable devices

In the android developers site they say: If you set resizeableActivity=false to disable multi-window mode but still want to support app continuity, add the following meta-data to the manifest of your element:
Ziad H.
  • 528
  • 1
  • 5
  • 20
1
vote
1 answer

How to enable "resizeableActivity" for only a singe Activity

I am using samsung's foldable device - Galaxy Z Fold3 5G I need to set resizeableActivity = true of only a single activity. I cannot set it in main tag as it will be applied to the whole app.
1
vote
0 answers

How to Build Apps with Fixed Ratio For Foldable Device

currently I'm working with React Native platform and I'd like to adjust my apps for foldable device. Instead of making my apps full screen, I rather make my apps look like Instagram on foldable device. Is there any way to publish fixed ratio apps so…
1
vote
1 answer

Support different screen sizes using android jetpack compose and also support foldable device posture like tabletop

I want to support devices like phone, tablets, foldables and tv. Will the following code work for that purpose ? class MainActivity : ComponentActivity() { override fun onCreate(savedInstanceState: Bundle?) { …
1
vote
1 answer

ActivitySplitLayoutBinding is unresolved; what is the required library?

I try to implement the code described in the "java with callbacks" section of the document in https://developer.android.com/guide/topics/large-screens/make-apps-fold-aware. But ActivitySplitLayoutBinding is unresolved. Here is an extract of my…
ema3272
  • 1,021
  • 2
  • 13
  • 28
1
vote
1 answer

Jetpack WindowManager not work on Huawei Mate Xs

In reference to https://learn.microsoft.com/en-us/dual-screen/android/platform/jetpack-window-manager, I initialized the window manager like this: wm = WindowManager(this, null) and called wm.registerDeviceStateChangeCallback The accept method…
1
vote
1 answer

Surface Duo React Native crashing with “Stub!” error

I'm playing around with trying to add the react-native-dualscreeninfo to my existing React Native project. However, when adding the gradle requirements to get it running (just the Kotlin version, and I've also added the maven for the SDK feed), I…
SFX
  • 169
  • 11
1
vote
3 answers

How to manage different layout on Configuration Changed in activity for foldable android device?

Created a demo for foldable devices. When the device is folded, I want to show one layout and when the device is unfolded I have different layout to show.then how to manage two layout according to Configuration Changed.? override fun…
0
votes
2 answers

How to handle device fold postures using the emulator in android studio

I'm trying to apply the Jetpack WindowManager library’s WindowLayoutInfo class, which provides information about foldable displays (flat, half_opened, etc), im following the codelab for adaptative uis (url 01), in android studio, i created an…
0
votes
1 answer

How can I stop regenerating fragment in activity on foldable phone?

I'm struggling to stop regenerating fragment when I fold foldable phone. This is the code generating fragment instance. class ExampleActivity: AppCompatActivity() { private var mapFragment: MapFragment? = null ... override fun…
0
votes
0 answers

How to create layouts for specific devices such as 8 fold-out?

I'm trying to create layouts for various screen sizes. I have used resource qualifiers to add sw600dp and sw720dp layouts, which work well with tablets in the emulator, but I want to make some specific layouts for foldable phones, starting with an 8…
netineti
  • 31
  • 5
0
votes
1 answer

How to detect the Android foldable/flip phone in Djagno

My project displays templates separately from PC/tablet and mobile. views.py ... from django_user_agents.utils import get_user_agent ... class indexView(View): def get(self, request, *args, **kwargs): ... user =…
JRR
  • 51
  • 1
  • 4
0
votes
1 answer

How can I recover my phone screen after testing foldable emulator?

Android Q(10) is coming. So, I am corresponding to the OS. So, I downloaded FoldableEmulator.apk here in the Samsung Developer website. After installing & granting the two permissions in the document, I opened the app on my device and a pop up comes…
c-an
  • 3,543
  • 5
  • 35
  • 82