what's the best practice for Android application preference's User interface? - iphone

Hi I want to port my iPhone app to Android.
in Iphone the Settings provide a unified UI for application preferences.
I have read http://developer.android.com/guide/topics/data/data-storage.html about SharedPreferences, but there is no UI
What should I do in Android?
Thanks

but there is no UI
Sure there is. It is called a PreferenceActivity. You define it using a preference XML resource. Here is a sample project showing a simple case for this.

Look up PreferenceActivity. It allows you create a UI very quickly using XML that matches the general preference look and feel of Android.

Related

How can I implement disabled application settings?

How can I implement disabled application settings ?
I saw this feature in Nike Running application.
I searched a lot about this feature, but couldn't find a possible solution.
There is no tutorial or no reference found in apple site and in the internet.
Any Ideas ? Thanks in advance guys...
You can't do that. Apple has made some special settings for things included in iOS, like the Nike +iPod setting.
You can only use the Settings.bundle which is read by the settings app and then allows the user to change some settings.
You could do this if you implemented your settings inside your App. A Static Cell TableViewController is all you need. Just keep track of the settings using NSUserDefaults (standard place to store these settings) and implement the View yourself. I personally like settings inside the application rather than being implemented as part of the OS's settings.

Settings view in an application in iPhone

I am pretty new to iPhone dev. I want to create a Settings page in my application. In Android i use preferences to fill the required Settings page. Is there anything like that for iPhone dev, or should i create every section like a normal UI.
BR,
Suppi
See Implementing Application Preferences in the iOS Developer Library. This will give you all the information you need and some best practices to follow.
You could also use something like InAppSettingsKit which works in an almost identical fashion but will allow you to present your app preferences in-app as well as via the Settings.app.
If you want to make a "settings page" in Settings app, you should look at Settings.bundle with NSUserDefaults.

Launch iPhone setting screen from Application?

I am developing an application where i want that upon a press of button iPhone settings screen should open.
Is there any restriction from apple to access it?
Is it possible or not,If yes then how?
No you can't do that. However as an alternative you can use This Framework to mimmick the settings app, so that you can set your settings from the official settings app, or from a in app settings page.
No, it's not possible using public API's.
However there exists a number of frameworks that allows you to access the settings bundle directly from within your application. Take a look at this SO question for more information.

iPhone + Android App to view Blog

What would be the best way to write an app for the iPhone OS and the Android OS that allows access to a web blog (posted on blogspot.com)? Are there ways to manipulate the incoming data from the website to fit the UI of the phones, or will I have to re-do a lot of the blogs?
Any help would be nice! And thank you in advance!
The easiest way in both would be to integrate the browser in the web app but perhaps restrict it to the blog.
For example, your app would open and have its own UI, but displaying the actual blog content would be done in an integrated browser (such as a WebView in Android).
Doing it this way isn't the best as it wouldn't be the best experience for the user, but it has the added benefit of keeping all the blog's design and extras, as well as javascript functionality.
"Manipulating incoming data from the website" (otherwise known as scraping) would be tricky for modern blogs since they usually contain so much customised content and are nowadays more like websites with blogs than just regular blogs.
I guess your best bet is to use Phonegap open source framework.
Since it basically creates local webapps and both platforms have very similar browser capabilities this should be a good fit for your intended application.

Create application setting in Settings app

I am very new to iPhone programming and I was wondering how could I create a separate section for my application in the Settings.app? Like what the Facebook or BeejiveIM or JellyCar apps do. Would I have to declare this dynamically, or could I use Interface Builder?
You accomplish this by creating a Settings.bundle in your project. Inside the Settings.bundle, you define the settings (names, types, defaults, etc) you are interested in. When the app is installed, the OS will handle creating the pages in the Settings app for you.
The process is described here.
There's the InAppSettingsKit: http://github.com/steipete/InAppSettings
Aiming to match the settings from the settings with the ones in your app.