Setting default App - android

My app have feature to send a mail. If user use this he will be prompted to open google-mail-app or another mail-app. But this selection haven't checkbox to set the current user option to default.
Is it possible to extend the selection with a default-checkbox?
I know this checkbox from another application such navigation.
thx

It's not possible to hardcode this into an application, however the user can do the following:
Tap the Menu button on your phone and
select the Android Settings option.
Scroll down to the Applications
section and tap it. On the next
screen, tap Manage Applications and
then the All tab on the subsequent
screen. Scroll down the list of apps
until you see the old browser listed
and tap that entry. On the next screen
look for the "Launch by default"
section and hit the Clear defaults
button.
Source: http://lifehacker.com/5637923/change-the-default-application-for-any-android-phone-task

Related

Automate default settings through Android app

How can automate below mentioned manual setup?
I want to create android app that make below setup automatically, when i click on launching icon(every time when launch app).
a. Enable GPS Satellite
Go to Settings
Go to “Location Services”
Make sure that “use wireless networks” is not ticked.
Make sure that “use GPS satellites” is ticked.
Make sure that “Location and Google Search” is ticked.
b. Change “Google Settings”.
Come to main screen of Tab.
search for “Google Settings”
Go to “Location”
Make sure that “Access location” is ticked.
c. Enable Location in browser settings.
Make sure you are on main screen of Tablet.
Click on Internet Browser
Make sure browser is open (in many case login screen of “Renaissance” will come).
Click on Menu button of tablet. (one of the 3 buttons on tablet. Left of middle button
Make sure a menu list is open.
Click on settings (last option of menu). This will open the settings screen of browser.
Click on Privacy and Security section
Click on “Clear Catch”, “Clear History”, “Clear All Cookie data”, “Clear form data” & “Clear location access”
Make sure that “Turn on Location” option is Tick.
d. Clear junk browser data
Make sure you are on main screen of Tablet.
Click on settings
Go to “Application Manager”
From the list of application displayed on Right Side of screen, select Chrome.
Now you will find 3 options here:
Force Stop
Uninstall Updates
Clear data
Click on “Clear data”
Click on “Clear Catch”.
Please suggest needful.
You can't develop application like that. Those settings are too sensitive to allow application manipulate with them. All you can do is just check if some provider is turned on/off and navigate user to manually change it. You have to do it manually.

Give user choice of setting default home page

I'm looking for a way to present the user a choice of setting the home page programmatically.
What I want is for my app to ask the user to pick their choice every time it starts up. Is there a way to do this? Or is there a work around for this?
Thank you
The only thing you can do is bring up the home screen. If the user has not already chosen a default home screen, and there is more than one home screen installed on the device, the chooser will let the user choose a default. The user is welcome to not choose a default as well, as it is their device, not yours.

How to implement a secret menu

For the sake of testing a feature that I don't want to release yet to the general public, I would like to implement a "secret" menu or menu item.
By "secret" I don't mean truly secret but more of a hidden or invisible menu, accessible to the developer (me) only, by entering a code or some other mechanism.
It's not the end of the world if an end-user finds about it and attempts to use it ("They made it idiot proof, but I found a workaround."). I just don't want to fail the unsuspecting innocent lay end-user, by providing a feature that isn't fully tested yet.
Any suggestions on how to go about this? (Android 2.2 and up only)
compare e.g. the Android Id of the device and if it matches your dev phone unlock the menu
let your app check if another app (some empty dummy) is installed and unlock the menu based on that info.
you can add an Activity to your code / manifest that is not triggered by any code. You can still start it via adb shell am start -n com.your.package/.SecretThing (that activity could simply set a shared preference that unlocks the menu)
you could trigger a menu if you listen to some secret broadcast you send with adb shell am broadcast -a your.secret.broacast.ACTION_SECRET
if you have a device that has a keyboard implement a key listener that only triggers the menu if you enter some secret word (still forward key events to the system)
if your app has access to location then hide the menu if your are e.g. not at home.
add some always visible menu item that triggers a password protected screen (not a good idea but it works)
One approach I've used a couple of times is to pop up a PIN entry form when the user triple-taps a particular part of the screen. You enter the PIN, you get through to the developer screen.
Do you want to have the menu on your development phones only or do you want to get to the menu on any phone?
Here's 3 options I can think of.
1) You could have a file with some arbitrary string key code in it, and the existence of the file and key turns the feature on.
2) You could log screen presses, on your buttons and a combination of this launches the pass code screen.
3) If you have an options menu, with a more section you could burry the pass screen there. Or if you have an about screen, long pressing a logo could launch the pass screen.
I need a secrete menu too, Well I'm going to implement it on login screen , enter device time in EditText field and press cancel.

Adding an item in existing frameWork setting option list android

Hie all,
I created one homeScreen Application and it working fine for me . one thing what i am seeing is every time i click on the HOME button it list me the native home application and the third party application which i installed in it . the below figure explains the context
this is somewhat an extra work to user to select the home screen every time he presses the home screen. so what i was thinking is that to give the option for user in the settings->display seetings-> so that he can choose the application which he want .
as i ve access to complete android file system and i can create my own image and test in the development boards . The problem here is i am unable to add item to the existing settings code . or u can suggest me the other solution. i tried with the Display settings class in mydroid.
You can not change system settings (i.e. alter the menu) via code on normal (non-rooted) Android devices.
User can set the default action by ticking "Use by default for this action." on selector screen. From then on user will not be asked to select the action, instead the default action will be invoked.

Hide application from menu and show when we want to

I want to hide my app from main menu, when user want to, s/he can see their app.
To hide the app I've removed the launcher category, and for now the app get hidden but now I don't understand how can the user launch the app. I've read somewhere that using a key combination (on the DialerPad) one can show the main screen of activity. How is this done?
Any other ideas of launcher an app when a launcher is not present?
Yes you can hide your application icon but only on rooted devices or system signed apps.....the solution will be to first disable your application using shell command pm disable com.yourapppackagename and then enable it back using **pm enable com.yourapppackagename** this will first disable your app removing app icon from device and then enabling back your app will bring back the app icon only in device menu and not on homescreen. if you want to disable and then enable on user choice then you may create a toggle button such as when off then disable your app and when on then enable your app.It will definatly work i have already worked on something similar

Categories

Resources