I have developed an android Contact application (To view, edit, delete and call contacts)
How can I set an app as default in android programmatically ?
please help me,
Thanks in Advance.
There's no notion of a "default contacts app", if your app can handle certain intents (for example adding a new contact) Android will show an app selector dialog to the user asking which app they choose to complete the action, the user can also select that app to be used automatically in the future.
If your app is also a Phone app, then there is a way to ask the user to make it the default Phone app, see: Replace default phone APP
If you're referring to the "Contacts" app launcher on the user's homescreen, there's no way to make it launch your own app, you need the user to manually remove the existing launcher and drag your app to their homescreen in its place.
Related
Is there a way to create a link from a responsive website that would open and add an event to the app installed on a mobile phone or tablet?
For example, this event on a responsive website. Whenever the "Add to Calendar" button is clicked on a mobile device, the event needs to be added to an installed app, be it in iOS or Android. Also if there are numerous apps installed like Google Calendar, Outlook, and/or iCal, the device should show a prompt to the user asking what app should be used if there are no default app selected.
I could do this by generating an .ics file on click but that would mean more taps and navigation for a user. Any help or comments would be appreciated.
Thank you.
Want to add my Android app icon to a contact screen (in the regular contacts display), so when a user checks out the contact he / she can press it to automatically start the function for that user.
A good example of this practice is WhatsApp, which adds its icon to a contact so you can press it and immediately start messaging a user (if there's a WhatsApp account associated with it).
Does anyone know how to use the API to do this?
Please I need some help with this.
What I want is to remove all apps from cache when, for example, press a button.
Let's say that I have opened Whatsapp, Gmail , Fb and my Custom App. When pressed a button from my custom app, I want to clean all the apps that I opened before (Whatsapp, Gmail, Fb).
Is it possible?
Thanks.
Hi I'm trying to develop an app that detect app launch, many app like app lock, smart app lock e.g
1-user clicks on "contact" app (for example)
2-my app detects launch of an app
3-my app confirms it is the "contact" app
4- my app opens a view over the top, asking for a password
5-user enters a password, if correct, my app disappears, leaving the "contact" app on top
i am see lot of answers that advise to read log but READ_LOGS permission is not work with jelly bean.
Can any body help me? i don't understand how it possible?
Any pointers would help. thanks for any help
I'm working on an app which has a share button. On click of share i'll show the standard share screen like below,
I want to know, if it is possible to track if user click on this screen. For example, if user clicks on facebook, i want to know that user selected facebook for sharing.
I want to know, if it is possible to track if user click on this screen
No, unless you create your own chooser activity.
For example, if user clicks on facebook, i want to know that user selected facebook for sharing.
That is only possible if you create your own chooser activity, rather than use the system-supplied one. You can create such an activity using PackageManager and queryIntentActivities().
From this dialog this is not possible. It is possible to put this sharing into the actionbar with a ShareActionProvider.
With ActionBarSherlock this will work on all devices down to Android 2.2. Now you can check wich app was chosen for tracking. Have a look at the ShareActionProviderSample from Actionbarsherlock