Disable multi finger touch in my app [duplicate]

For case: you have multiple buttons and you want make selected only one button. In parent (NOT ROOT, just parent of child) of buttons, in its xml params add android:splitMotionEvents=”false” And that’s it. Example: <LinearLayout android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:orientation=”horizontal” android:splitMotionEvents=”false” <———–!!! > <Button android:id=”@+id/button_main_1″ android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:text=”button1″ /> <Button android:id=”@+id/button_main_2″ android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:text=”button2″ /> <Button android:id=”@+id/button_main_3″ … Read more

Run custom ROM on Android Emulator

Yeah, why not. We can flash a third-party ROM on Android AVD. But first you must know the following things: 1. The Android Emulator is itself a device, like your Moto G or Xperia 2. Every ROM is device-specific (supports a device-specific Kernel) (on many sites/blogs you got information like you have to replace system.img file … Read more

React-native: Images not showing in android device; but shows perfectly in emulator

The problem was with my bundle packaging command. As @luwu said in his comment, I checked this, and surprised that there is no difference with mine. Then only I noticed a message while running the command “Assets destination folder is not set, skipping…” That message was bit confusing since bundle was already created in the … Read more

This app won’t run unless you update Google Play services error

In the Android SDK Manager, you must install “Google APIs (x86 System Image)” under “Android 4.4.2 (API 19)”. Quit Eclipse and restart it. Then create a new android virtual device in AVD manager and choose “Google APIs x86 (Google Inc.) – API Level 19” as target. Check “Use Host GPU” to ensure the drawing of … Read more

How to speed up unzipping time in Java / Android?

I don’t know if unzipping on Android is slow, but copying byte for byte in a loop is surely slowing it down even more. Try using BufferedInputStream and BufferedOutputStream – it might be a bit more complicated, but in my experience it is worth it in the end. BufferedInputStream in = new BufferedInputStream(zin); BufferedOutputStream out … Read more