In the Preferences app, Safari's settings page contains buttons labeled "Clear History" or "Clear Cache". The Mail App's settings page contains a big red "Delete Account" button.
Is there a way to create such a settings page with buttons for my app? I checked Apple's documentation and didn't find an element type for such buttons.
Sadly I think you're out of luck - unless you jailbreak. To create the Settings page for your app you create a plist rather than actually coding the view itself. This brings certain restrictions such as the inability to add a button. The one core thing you can't do is to execute any code from the Settings app - all you can do is change a set of preferences.
The closest you can get is to add a switch with the label "Clear History on next starup" and check whether the user has set this whenever you start the app. Then set the settings so that the switch is set to Off.
AppStore apps — You can't. Even if you can add a button, no code can be run, making this useless.
Jailbroken apps — Use a PreferenceBundle and create a PSButtonCell specifier. See http://www.iphonedevwiki.net/index.php?title=Preferences_specifier_plist.
Related
I have a listView.builder inside my Language screen, and i want to save preferences when the language is selected, a checkmark will appear next to.
Language localization work perfectly and also the listView with a radio button checkmark. but when i close the page and come back, the checkmark go back to default language even the current language is still the what user choose.
So, should i load the current language everytime the Language screen is open or should I use Shared preferences to store the checkmark position?
You can use two options:
Save it in Shared preferences.
Save it in your database.
This option is very good in the situation when you have a mobile app and web.
Because it saves profile parameters globally.
Another option that I like is to simply use system locale parameters.
If a user has English language on his phone my application is the same.
But this option is not for web only for mobile applications.
I have an AccessibilityService that will break if the user turns it on and off through the Android system user interface. I only want the user to be able to disable/enable AccessibilityService through my own Activity which will handle shutting it on and off correctly.
I never encountered this feature before until I tested my app on newer devices. On Android 11 devices there is suddenly an option to toggle "Accessibility Shortcut". This will add a button at the bottom corner the navigation buttons OR it will allow the user to toggle the AccessibilityService by holding both volume buttons at the same time. For my app, it say's it will add the toggle near the navigation buttons.
How do I remove this option?
I am running into the exact same problems. Users tend to enable all switch button they see without reading explanation or videos. Since accessibility shortcut interfere in a bad way with the accessibility service, they got a non working experience.
It seems at first sight there is no option for developpers to hide the option for their accesibility services...
I am building iOS app for promo. The client asked that people using it should never quit it, so I got an idea.
When people are trying to quit, they would be asked to enter the password, otherwise it's impossible. Is there a solution to this?
I would appreciate any help, thanks!
Here are the steps to easily disable the home button :
Launch the Settings app from the Home screen of your iPhone or iPad Tap on General.
Scroll down towards the bottom of the screen and tap on
Accessibility.
Under the Learning section, tap on Guided Access.
If it's not already, turn the toggle next to Guided Access to the On
position, then choose a passcode.
After having deployed your application on the device, open it and triple tap the home button.
Set your options and then tap on start.
You can leave the guided access mode by triple tapping the home button again, it will ask you for the passcode you set before.
Here is a link for more details (and illustrated with photos)
What you are doing is not possible I guess. See for quitting any app the user can simply press the big quit button on the ipad or iphone and then the app would go into the background nevertheless.
You can't prevent the user from quitting. If you try to prevent it, the OS will terminate the app directly. With iOS 4.0, you can have tasks that are allowed to complete in the background.
Check this out.
For an overview about running tasks.
How can I BY CODE add a web shortcut to iPhone HomeScreen?
There is no API to do this. Your best bet is to do what many web apps do: create something that points at the part of the toolbar where the add to homescreen button exists. And pray Apple doesn't change the position of that button any time soon.
How can I change the FBML tabs Icon from the default one to a custom one, please?
It does have an icon with the new layout and it looks terrible.
Found this video about changing your own app's icon: http://www.youtube.com/watch?v=eIcG5VekxM0
But that doesn't apply to the FBML tab (since it is not my app).
As far as I know, FBML tabs doesn't have an icon, just text.
Maybe do you want to change your facebook app icon that appears on the user's app menu on the sidebar?
If it's this, you can change it on the app settings, there are two images to upload: one will appear on the permissions dialog and the other is the 16x16px that I've mentioned before.
I don't exactly have an answer but because my question is exactly the same as yours, I thought I'd add on here. But do tell me if I shouldn't be doing this and I'll remove it immediately.
I see ChickFilA uses customised icons for their tabs. Wonder if they developed their own app(s) thus the ability to customise the icon(s), or if there really is a way to customise FBML icons.
There's no icon for FBML tabs. But there's an icon for an application based Facebook tab. Here's how.
Create a Facebook app that can be integrated as a tab (Choose Page Tab Type as FBML)
E.g. Chick Fila created Spicy Biscuit app http://www.facebook.com/#!/ChickfilA?sk=app_119130604778515 that actually was later rendered as a Facebook tab (named Spicy Biscuit)
When you create an app, you can add an icon.
Submit your app to the Facebook app directory (Your application must have at least 5 total users or 10 monthly active users before you can submit it)
Now, go to the application page. E.g. Chick-fila Spicy Buscuit http://www.facebook.com/apps/application.php?id=167096109994873
Click Add to my page. Add it to the page you want to the tab embedded.
Done.