You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/11/08 08:54:20 UTC

[GitHub] [cordova-android] odai-alali commented on issue #841: android.support.v4.app.Fragment/androidx.app.Fragment support

odai-alali commented on issue #841: android.support.v4.app.Fragment/androidx.app.Fragment support
URL: https://github.com/apache/cordova-android/issues/841#issuecomment-551442427
 
 
   Hello @exxbrain 
   
   Is there any reason for closing this issue? Is there any plans to implement this feature?
   
   using `android.support.v7.app.AppCompatActivity`/ `androidx.appcompat.app.AppCompatActivity` will allow using Fragments and mixing cordova and native components and open a wide range of possibilities for us developers.
   
   check this out https://github.com/ReallySmallSoftware/cordova-plugin-android-fragmentactivity
   
   CordovaActivity (webView) is implemented as Fragment in this plugin and added to the MainActivity. I am working on an Augmented Reality feature in the app I am developing and I need to replace the webview with a ArFragment dynamically to run the AR experience. Using another activity is not an option since the app is run in Kiosk Mode and the main activity is locked.
   
   Additionally, this new feature is required since `android.app.Activity.getFragmentManager` is [deprecated in API 28](https://developer.android.com/reference/android/app/Fragment.html#getFragmentManager())

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org