Alright. I first wanna apologize for creating another question as I did come across a few things on Google but i am just not fully understanding the things I've found. The three links i found are Make your application a device administrator and Android developer website and this
I completely understand the whole XML part but the part I'm not grasping is where do i put the code i want to run? Like i am trying to place the device into standby mode after executing some code. I know i need to use PowerManager but in order to do this i need to make my app an administrator. Also in the first link i'm not sure what this means startActivityForResult(intent, REQUEST_ENABLE); and why the REQUEST_ENABLE is underlined in red giving Cannot be resolved to a variable error and in the tutorial there was nothing mentioned about creating REQUEST_ENABLE variable or method or class or anything.
Thanks everyone in advanced for helping me wrap my head around this!
Related
my goal is to get a video from a usb connected device (an easycap video grabber) displayed. There is already an android app that does exactly that. However i need to add some buttons and some extra functions to it. So i came to the idea of displaying the app that already exists inside my app. Is that possible in any way?
I already tried to decompile the existing app to edit the code a bit but i didn't get anything to work with.
Do you have any other idea? If you know how to program that please let me know what i need to achieve that.
Thank you!
This cannot be done due to security reasons in the Android OS itself.
Android provides a security layer called the Sandbox in which the OS assigns a User ID for each app, so that an app will not have permission to access resources from another app.
I'm looking for a way to programmatically favorite an android app. I need to do this either in Java or in Android Shell. It doesnt matter if the method requires SU/Root or not.
By favoriting an app I mean adding a quick launch icon to the "footer" of the home screen.
Thank you very much in advance. I've spend hours on this problem and I cant seem to find an answer.
I am looking for some help, not being spoon feed source code (which from some of the threads I have read on this forum wouldn't happen anyway). I am really just wanting to know if what I have conjured up in my head is even possible or not, and if it is if I could get pointed in the right direction. So, I am looking to add a "view", doesn't really matter what type the concept would be the same for all of them, to appear when receiving or placing a phone call. You know the one that has the little droid waving at you or a photo, etc. The only thing is that I would only want like the top 30px to be this "view".
For instance, you receive a phone call and at the top of your screen on top of the receiving call window is a TextView with a note about this person (i.e. - he stinks).
The only thing I have been able to come up with so far is that I would have to bring up a layout that was either invisible or gone, but have yet to figure it out as of yet.
Am I barking up the right tree or do I need to find a different tree to sniff. Any and all help would be appreciated.
I honestly don't know the answer to this, but if it were possible then presumably you would have to have your own custom Activity launch in response to an incoming phone call event. This Activity of your own would replace the standard system phone application. So I did a search on here and the most vaguely related previous questions I could find within a short time are these:
Is it possible to write a new "phone" activity, and if yes then how?
Launch an activity at end of a phone call on Android
Answers on those seem to suggest the phone would need to be rooted before you could replace the standard phone app for receiving calls.
Is it possible to make Android be able to run only one app? It seems that making a custom ROM might be the option.Can anyone point me to the right direction?
Numerous answers and questions on this already. Basically you have the following options:
Creating you own rom.
Creating your own launcher application.
The best solution is definitely 1, but it's much more complicated. Making your own launcher application could be a solution but it would never be perfect, there would always be ways for the user to get back to normal Android, so if you can't accept that then you need to make your own rom.
As I know, we can add our app specific menu entries in iPhone's Settings menu. I want to know how same can be done in Android? I am developing for Android 1.6 using Eclipse Galileo. Please guide me.
Probably the closest thing to what you seek is the Account Authenticator feature. For more information see this question and look for the android:accountPreferences attribute. This allows your preference Activity to show up in the Accounts area of Settings.
Apart from that, while it's difficult to prove a negative, I've analyzed the Settings source code for Jelly Bean and I'm pretty certain this is impossible. To see for yourself, examine the onBuildHeaders() method in the Settings.java file. The headers array is maintained internally to the Settings Activity and the only flexibility seems to be the Account mechanism mentioned above.
Read the details information from here .
Nice one example here.
Use android:settingsActivity in your Manifest. It works for Livewallpaper or Input Method. You can't use it for everything or for your particular App.
You will find this good for you.Check this
this will let you know many options to customize your App
Have a Look # this linkPreferenceActivity .