android - Can't kill SystemUI with activityManager.killBackgroundProcesses -
first question here , pretty knew android development excuse me. part of app add button can restart systemui, doing following code.
@override public void onclick(view v) { activitymanager activitymanager = (activitymanager)getapplicationcontext().getsystemservice(context.activity_service); activitymanager.killbackgroundprocesses("com.android.systemui"); }
i have gave application su permission following code
public process p; { try { p = runtime.getruntime().exec("su"); } catch (ioexception e) { e.printstacktrace(); } }
many in advance.
you should have permission kill_background_processes able call method.
su doesn't play role here, because using android's framework operation. if use busybox kill process, need su.
generally, not idea kill systemui, though.
Very Awesome post,keep updating more posts.
ReplyDeleteThank you....
android training
android app development course
Thank you for sharing your info. I truly appreciate your efforts -
ReplyDeleteHistogram Grayscale opencv python
how to insert unicode characters in mysql using php
how to display PDF in HTML using Javascript
Histogram Equalization OpenCV
Matplotlib pie chart
Password hash and verify in PHP