never uninstall my application? - android

can i set any setting for can't uninstall my application by user?is it possible in android code?
Thanks All

No, that is not possible, never was possible, never will be possible. And thank God for that.

You obviously wanna make a trojan/virius for android.
And the answer is no unless you making a custom firmware.

Related

Is it Possible to Create a Flutter App which has no Interface?

I would like to know if it is possible to create a flutter app which has no interface and just runs in the background like a background Activity. If yes, how can I accomplish that?
To summarize what Martin Marconcini wrote in his comment: No this is not possible.
But why? Because if it would be possible it could be used for spyware, viruses and similar.

Automatic update of notifications when system language is changed

My questions are basically for AOSP code (Android version 4.3).
Questions:
1) When we change system language, already generated notifications are not updated to new language. Is it a bug in Android. If yes, why they are not supporting it(any major problem as such).
Is there any plan for supporting this?
2) If automatic updates are not supported by android, what is the best possible way of doing it?
Awaiting for positive reply on this.
Thanks,
Mayank
Updated answer.
No, it is not a bug and is working as intended I suppose.
Notification text is dynamic and there is no way the OS will know how to translate it automatically. The best thing to do is let the app handle it. I don't think it will be supported.. No at least anytime soon.
Best way is to override the onConfigurationChanged method and update all your notifications from within the method.

In android Servic to track which application has focus

In android, is it possible to track which apk/ application is on the top/have focus.
This work to be done by a service. I don't have much knowledge regd this.
Thanks in advance.
ActivityManager.getRunningTask
RunningTaskInfo.topActivity
ComponentName.getPackageName
is that clear?

is there a list of websites which have rest api

I want to develop some application for android, but struggled to decide what it should do :)
Is there a collection/list of web-sites which have REST api? So I can implement in in my app
and make use of it?
thanks!
Try taking a look at http://www.programmableweb.com/apis. I'm sure there others out there as well, but that's what I'm familiar with.

Is it possible to remove permissions from an Android application?

I am new to Android. I've been looking for a way to remove a permission of other app. For example, I don't want an app to send SMS. Is it possible?
Thanx in advance.
Thanx for the replies.
Actually, I am in middle of coding where I want to restrict the manifest permission of other application.
Since, these kind of applications exist in market, then this is possible. Any more help or any reference would be so helpful.
thanx again.
You need to be rooted for that, and there are already programs on the market that allow you to do it, for example LBE Privacy Guard
NOTE: This program doesn't work with Android 'Jelly Bean' at the moment
Welcome to stackoverflow. As far as I know, what you want to do is not possible without rooting your phone.
This site is a Q&A-site for specific programming questions. A suggestion is that you try it out for yourself, and when you've stumbled upon a specific problem with your code you can ask a question here. That way you'll have a much easier time getting answers! Good luck!

Categories

Resources