Cannot append and edit AndroidManifest via config.xml for Cordova
I am trying to use
config.xml to edit the
AndroidManifest.xml file and I can't seem to get these two to co-exist (if I remove one or the other, then the one that wasn't removed is applied).
<platform name="android"> <edit-config file="AndroidManifest.xml" mode="merge" target="/manifest/application"> <application android:allowBackup="false" android:fullBackupContent="false" /> </edit-config> <config-file parent="/manifest/application" target="AndroidManifest.xml"> <activity android:configChanges="orientation|keyboardHidden" android:name="com.manateeworks.ScannerActivity" android:theme="@android:style/Theme.NoTitleBar.Fullscreen"> </activity> </config-file> </platform>
Technically, I only really want the
fullBackupContent attributes to be set. The activity is being added in because I'm using a plugin that adds it; but when I put the
edit-config in my
config.xml it clobbers the addition of that activity.
What am I doing wrong?
See also questions close to this topic
Jenkins Android build fails - can't build libwebviewchromium.so
A bit of advice or idea is needed.
I am trying to build Android 5.1.1 Lollipop with Jenkins. But it fails to build libwebviewchromium.so:
... out/target/product/generic/obj/GYP/shared_intermediates/blink/bindings/core/v8/V8SVGNumber.cpp:55: error: undefined reference to 'blink::SVGNumberTearOff::setValue(float, blink::ExceptionState&)' out/target/product/generic/obj/STATIC_LIBRARIES/third_party_WebKit_Source_core_webcore_generated_gyp_intermediates/SVGElementFactory.cpp:383: error: undefined reference to 'blink::SVGMetadataElement::create(blink::Document&)' external/chromium_org/third_party/WebKit/Source/core/svg/SVGNumberTearOff.h:45: error: undefined reference to 'blink::SVGNumberTearOff::SVGNumberTearOff(WTF::PassRefPtr<blink::SVGNumber>, blink::SVGElement*, blink::PropertyIsAnimValType, blink::QualifiedName const&)' collect2: error: ld returned 1 exit status make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/libwebviewchromium_intermediates/LINKED/libwebviewchromium.so] Error 1
At the same time, when I try to build it manually, it succeeds:
. build/envsetup.sh set_stuff_for_environment lunch sh1_qemu_eng make clean make -j24
I wonder how it comes that the same operation can be successful when using a console and fail when using Jenkins. Could you please share your ideas with me?
P.S. The build machine has 24GB of RAM and 15GB swap file, and a 512 GB SSD flash disk (62% available). The OS is Ubuntu 14.04LTS, 64 bit.
$ free -m total used free shared buffers cached Mem: 24021 22079 1942 75 4778 8768 -/+ buffers/cache: 8532 15488 Swap: 16036 345 15691
NestedScrollView Recyclerview scrolls by itself
I have a NestedScrollView which contain RecyclerView ,the RecyclerView auto scrolling , How to stop this?
i try add "android:descendantFocusability="blocksDescendants" parent but not working
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:descendantFocusability="blocksDescendants" android:orientation="vertical"> <androidx.recyclerview.widget.RecyclerView android:id="@+id/recyclerView_list_cases" android:layout_width="match_parent" android:layout_height="wrap_content"/> </LinearLayout> </androidx.core.widget.NestedScrollView>
2D array tiles/tilemap and circle object collision
I used the 2 dimentional array to create a game tile map. I tried AABB collision with square but I'm not satisfied with the results as the movement is not smooth in my opinion. So I created a circle shape/indicator beneath my character. How can i do collision detection between 2d array tiles and circle object?
ionic cordova emulate ios exited with code 1
I am trying to run my ionic app on the iOS emulator and it was working the other day, but then I updated to the latest xcode.
cordova run ios --listreturns a long list of devices (redacted for this post)
Available ios devices: Available ios virtual devices: ... iPhone-6, 9.3 iPhone-6-Plus, 12.1 ...
The command I am running to start the build is
ionic cordova emulate ios --target="iPhone-6-Plus, 12.1" --verbose
but I do not see any clear errors in terminal other than
An error occurred while running subprocess cordova. cordova emulate ios --verbose --target "iPhone-6-Plus, 12.1" exited with exit code 1.
One line above that says:
No scripts found for hook "before_deploy". /Applications/MAMP/htdocs/gb-dosing-calculator/platforms/ios/build/emulator/GB Dosing Calculator.app/Info.plist file not found.
but I dont think that is the issue. If I browse to
GB Dosing Calculator.xcodeprojfile and run the app in xcode, the emulator and app launch fine.
Cordova Windows Platform
I am trying to develop a cross platform windows desktop application. I went through different sites and found that Apache's Cordova platform is best to develop a cross platform hybrid application.
I understand that Cordova can be used to develop WIndows 8.1/ windows 10 store apps, but can I use Cordova platform to develop windows desktop application?
Can you have multiple WebViews communicate to one another within the same application?
I need to build a Cordova application where there is a running JS service that runs in the browser (e.g. session/token management) as the user navigates the UI. That being said, there are some links in the UI that direct users outside of the given context. That is, it directs them to an external resource, where the original JS context is lost and that JS running code stops executing, etc.
What are some solutions around this?
1) I was thinking of having the JS code running in a separate WebView so the WebView serving the UI can direct users to external resources, but the WebView in the background continues executing the necessary code. If this is a viable solution, how can the two WebViews communicate with one another since the UI WebView would need to retrieve data from the running process?
2) Is there some alternative solution to this where a full WebView is not needed but rather a JS worker of some sort that is able to make AJAX requests and provide data to the UI WebView? Keep in mind that this process cannot ever be closed.
3) Instead of writing the running process in JS, implement it as native code (across ios and Android) to ensure it's always running in the background. This is viable, however, it would require a full re-write of the logic and also have different solutions across platforms.
Ionic Angular 5. Star rating system
I am building an app on ionic. I have some numbers available for rating/reviews. I want to show/convert them as stars and present it in my UI. Is there any library available for this in Angular 5?
Ionic Angular – just parts of the component are visible
I have an ionic angular app which has the following structure:
I'm loading the front part via
loadChildrenand each tab as well. I have followed the tab angular example from ionic trough the CLI. From what I can see is that a not necessary
router-outletis created and the specific lazy loaded module doesn't have the correct height set.
Here is a part of my project: https://next.plnkr.co/edit/EvQtFhHv2v8oEMCksoKK?p=catalogue&utm_source=legacy&utm_medium=banner&utm_campaign=next
Updated Plunker: https://next.plnkr.co/edit/VgyyF5a1SeXG4iuU