How to detect which application is set as default in android? - android

I am stuck with a problem. In the past, i set an application as default launcher on my android phone when the dialog popups up for selecting the default application and now i have forgot which application it was?
How can i detect which application has been set as default?
Any help appreciated.

Unless your aim is to do this programattically(I don't think you can, but I could be wrong) This would be a better fit at Android Stack Exchange
The easiest way will probably be to go into manage applications and find all of the home screen ones, select each of them and scroll down until you see the "Clear defaults" button. The one that is not greyed out is the one that is currently set for default.

Related

Android SoftKeyboard shortcut

I have a question. I wanted to develop an app that would add a shortcut to the keyboard (Samsung SoftKeyboard).
The shortcut should be accessible via the dots at the top right (see attachment).
I would like to add a circle ("floating") over my app, as shown in the picture on the right.
Something specific should then be carried out via this circle (but that's not the point yet).
I've done a little research, but don't really know what to look for.
I hope you can help me.
thanks in advance
Example
afaik there is no such possibility to add anything in there. it's another app with own custom settings and options, you can't edit such or change in any way. your last chance is possibility of published API/some communication way for that app, which would allow to add such actions, but I very doubt Samsung made such API for own keyboard app and allowed ANY 3rd-party app to mess in their software... (btw. that would be very insecure for user)

Using testcomplete to determine if a mobile app used the correct icon

I just started using TestComplete and have a technical question for the experts out there. My mobile app has an icon that changes based on state (pressed, not pressed, disabled, etc). What I would like to do is be able to have a keyword test (ideally) to determine if the app is displaying the correct icon. I can start the app and press the icon just fine so I believe I have the app instrumented correctly.
I would suggest using a region checkpoint to validate that the correct image matches the state of your button.
[https://support.smartbear.com/testcomplete/docs/testing-with/checkpoints/regions/creating.html][1]
Please let me know if this doesn't help!

how to permanently override android soft keys behaviour and display through

I am relatively new to android and want to create an application that permanently overrides androids basic softkey behaviour and view (for devices with soft keys).
Some functionalities I want to implement are changing the size of the softkeys window at the bottom, change its images, and possibly change its functionality.
For example, the user can set the size to of the softkey to be "large", "medium" or "small". And I can change the functionality of the back button to open say a particular application instead of going "back".
I'm basically looking for a high level answer as to how to do this, a basic direction of what I should read/study in order to be able to accomplish this. I realise this may require root access.
Please note that I want this behaviour to change not only in my application but I want the effect to exist on all applications. If this requires the application to be running atleast at the backend, that is fine.
After doing some decent amount of search, it seems I will have to make changes in the systemUI.apk, or possibly get its source code and modify it. Is this correct?
Thanks in advance.
I don't think even root is going to be enough for the type of changes you are describing. You're going to need to edit the Android source code and build your own system image.
Well you can't override system resources because they are part of the system image.
What you are looking for is called Home Application which can be developed like any other android app no need for root , you can find an example for it in your sdk samples.
Home Sample Application.
your app would be responsible to have UI components to send the user to all of the phone functionalities which includes:
Place for wegits
Place for apps listing (menue)
Access telephony functionality (call, phone history ...)
Access settings.

How to enable Animation programmatically in Android

When I used overridePendingTransition to translate from one activity to another activity it is working fine when AllAnimations are enable in DisplaySettings . But this Animation is not working when AllAnimations are disable . How to enable AllAnimations in DisplaySettings
You can't, but you can simply prompt people to start up the settings app so they can change it.
I don't think people will really want your app telling them the settings they choose themselves though. Just leave the animations, for the ones that actually want them and don't bother the ones that don't.

Is it possible to block Android market programatically?

I want to enable/disable the Android market programmatically for my kids app (with a checkbox). Is this possible? How?
Generally, no. You cannot affect the behaviour of other apps from your app. There are tricks that allow you to monitor what has been stated and you can bring your own app in the foreground to sort of 'block' it, but this is neither supported, nor guaranteed to work on all devices and Android versions.
To disable the play store, do as you would with any other app if you were going to delete it, however in replace of the delete buttin wil be a disable button.
If you do not want to disable it all together, you can open the app, click menu, and then settings, and then half way down on the list you are abe to set a passcode for purchases.
EDIT
I know hat you said programmatically, however this could still be a solution as to what you may be looking for instead as a workaround.

Categories

Resources