why hierarchyview doesn't work for my android app? [closed] - java

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
I have ran my android app in debug mode (eclipse).
I then ran sdk/tools/viewhierarchy
my device is detected, but it doesn't have an expanding arrow.
what am i doing wrong?

For security reasons, Hierarchy Viewer only works on developer versions of the Android platform.
You can use Hierarchy Viewer with your app on any device by adding ViewServer to your app.

Hierarchy viewer works only on emulators and on rooted devices.

Related

Disable notifications from other apps [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
i want to disable notifications coming from other apps like Facebook and other apps.
I know it is possible because the Notifications Off app has this functionality.
Actually, you could achieve this (for API level 18+) with the new NotificationListenerService and the appropriate permissions.
You can use getActiveNotifications() to get the list of current notifications in the device, and then cancelNotification() to close them individually or cancelAllNotifications() to remove them all at once.
So you could be notified (heh) as soon as a notification arrives, then dismiss it if it's from one of these "blocked" applications.
You can't, unless you have root or your code runs with system/phone app process id. The app you linked to in your question requires root.
In case you have root and are not afraid to use reflection to access hidden methods, you can examine how App Settings enables/disables notifications for a package.

Code for programatically factory reset android device [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
I need help, I want to factory reset my device using code in an application
you can not do it directly. What you can do is launch an Intent to open the settings where the option is located
You would have to use the DevicePolicyManager and include permissions in the AndroidManifest.xml
refer this link....

Hiding Navigation bar [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
How can I hide the navigation bar in an Android app?
My tablet uses Android 4.1.2
Thanks!
This is not recommended by design guidelines, however if you are definitely sure you need to do it, you can refer to this post: https://developer.android.com/training/system-ui/navigation.html

How to close all the apps when "my app" starts [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I am a novice android developer and this may sound a bit silly, but I want to close all the running apps when my app starts, is it possible in Android ? If yes, Please guide me how to do it.
Luckily you cannot do that on non-rooted devices now.

Android 4.2 changes to Android 3.0 under Project in Eclipse [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
Yesterday when I imported my App it showed Android 4.2 But when I loaded my app it shows Android 3.0. Now my application is having an issue with the manifest. Any idea why?
It does not happen in general, i have also faced this few time in my early days. it might a problem because of eclipse or unintentional mistake. Don't worry about this too much.
Right click on your project ->> Properties ->> Android ->> select android 4.2 ->> ok
it will resolve the issue.

Categories