How to invoke an android application that runs on top of all application without intervening any touch event \ key press
Date : March 29 2020, 07:55 AM
Any of those help Finally, figured out how to make it work. Somehow its working for me. The 3D Rubik cube is running fine all over the place :) . OK.. Lets get to the point... Most of the changes I made is in "Kube.java" file. The Original Kube class used to extend activity. Now it actually extends service. Now it is KubeService. For this we need to provide body for two functions onBind() and onDistroy(). public IBinder onBind(Intent intent)
{
return null;
}
public void onDestroy()
{
super.onDestroy();
if (mView != null)
{
((WindowManager)getSystemService("window")).removeView(mView);
mView = null;
}
Log.v(TAG, "service stopped.");
}
public void onCreate()
{
Log.v(TAG, "onCreate");
super.onCreate();
GLWorld myGLWorld = makeGLWorld();
mView = new GLSurfaceView(this);
mRenderer = new KubeRenderer(myGLWorld, this);
mView.setEGLConfigChooser(8, 8, 8, 8, 16, 0);
mView.setRenderer(this.mRenderer);
mView.getHolder().setFormat(PixelFormat.TRANSLUCENT); //many alpha bits
//mView.getHolder().setFormat(PixelFormat.TRANSPARENT); // at least 1 alpha bit
//mView.getHolder().setFormat(PixelFormat.RGBA_8888);
WindowManager localWM = (WindowManager)getBaseContext().getSystemService("window");
WindowManager.LayoutParams localLP = new WindowManager.LayoutParams(
WindowManager.LayoutParams.MATCH_PARENT,
WindowManager.LayoutParams.MATCH_PARENT,
WindowManager.LayoutParams.TYPE_SYSTEM_OVERLAY,
WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE |
WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE,
PixelFormat.TRANSLUCENT);
localLP.setTitle("KubeService");
localWM.addView(mView, localLP);
Log.v(TAG, "service started.");
}
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
<service android:enabled="true"
android:name=".kube.KubeService">
</service>
Intent kubeIntent = new Intent().setClassName("PACKAGE_NAME", "PACKAGE_NAME.kube.KubeService");
startService(kubeIntent);
|
fast Variable blur or blur library in android
Date : March 29 2020, 07:55 AM
it should still fix some issue Due to its optimization for speed, this algorithm is not well suited to be adapted for a varying radius. You can still use it if you take a different approach: The principle is that you create multiple temporary maps each with an increasing (uniform) blur radius and then blend two of them together based on how big the radius at that point should be. Let's say you prepare 3 temp maps, one with radius 4, one with 8 and one with 16. Now you want a blur radius of 12 at one pixel. What you do is you blend map 2 and 3 with about 50%. The more temp maps you use the better the quality, but 3 (plus the original unblurred map) are usually sufficient.
|
Android RenderScript blur fails to blur texts
Date : March 29 2020, 07:55 AM
I hope this helps you . If the text is part of a Bitmap it will be blurred for sure when you apply ScriptIntrinsicBlur to that Bitmap, since the Gaussfilter applied to the Bitmap is just an smoothed averaging of pixel values, irrespective of the content. Therefore I assume that the text you want to blur is not part of the Bitmap you pass to ScriptIntrinsicBlur, but remains in some other Layout element.
|
Blur and un-Blur selected portion of image on finger touch in Android
Date : March 29 2020, 07:55 AM
|
After update the android chrome version 65, application does not works, Sencha touch and cordova android
Date : March 29 2020, 07:55 AM
Hope this helps Edit: this is a known chrome 65 bug which is marked to be fixed in chrome 67. Edit 2: Confirmed to be fixed on Chrome 67. You will need to update "Android System WebView" on Android devices to get the fix. Ext.Msg.defaultAllowedConfig.showAnimation = false;
Ext.Msg.defaultAllowedConfig.hideAnimation = false;
var iframe = document.createElement('iframe');
var iframeStyle = iframe.style;
iframeStyle.setProperty('visibility', 'hidden', 'important');
iframeStyle.setProperty('width', '0px', 'important');
iframeStyle.setProperty('height', '0px', 'important');
iframeStyle.setProperty('position', 'absolute', 'important');
iframeStyle.setProperty('border', '0px', 'important');
iframeStyle.setProperty('zIndex', '-1000', 'important');
document.body.appendChild(iframe);
var iframeDocument = iframe.contentDocument;
iframeDocument.open();
iframeDocument.writeln('</body>');
iframeDocument.close();
var testElement = iframeDocument.createElement('div');
testElement.style.setProperty('position', 'absolute', 'important');
iframeDocument.body.appendChild(testElement);
testElement.style.setProperty("transform", "translateX(0) translateY(0) translateZ(0) rotate(0) rotateX(0) rotateY(0) rotateZ(0) skewX(0) skewY(0) scaleX(1) scaleY(1) scaleZ(1)");
var computed = window.getComputedStyle(testElement).getPropertyValue("transform");
alert(computed);
|