How can I root my Samsung J2?
I have tried several apps such as kingoroot, even Odin to flash twrp onto my device. But it never seems to work! I can't even flash custom recovery using adb and fastboot!
Can anyone please help? Thanks!
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?