Material on Fragments and PreferenceFragment - android

I am developing an app which requires heavy use of fragments and preferencefragments. But as these things are new to Android, I can not find any good resource to study these except developer.android.com.
developer.android.com provides a good insight, but still after reading preferenceactivity and preferencefragment from there I am a lil bit lost.
So please share some good reference on these topics. (any nice video will be extremely helpful)

Check out this YouTube video to understand Fragments:
Fragments for All: Android Open 2011
I hope it makes you understand fragments. You can also check this video tutorial:
Android 3.0 Activity Fragments Demo

Related

Which one to use with tabhost: FragmentActivity or TabActivity?

I'm beginner in android development. When searching the web I have found that it is possible to make tabs by having the separate activities for each tab or have fragments instead. I would like to know more about theory so, my question is where it will be appropriate to use fragments and where activities? I'm curious because there might be some considerable differences for example in memory, performance or UI. Hope that I'm clear and will appreciate any help.
After reading articles on developer site, particularly page below, I have found that TabActivity is deprecated. They advice to use FragmentActivity and with the help of v4 support library it can be implemented in older version of android.
https://developer.android.com/reference/android/app/TabActivity.html

Introduction screens in Google Apps

I just bought a new phone and I noticed, opening for the first time Gmail and other G apps, some quite cool introduction screens.
I was wondering how this is implemented..
It doesn't look like just a simple ViewPager with fragments.
Could someone please give me an help?
I can't find any information online but those about ShowcaseView which is not what I'm looking for.
I developed a library which does exactly that: https://github.com/rubengees/introduction
And yes, it is done with a ViewPager with Fragments, but with a fairly complex layout.
Another library I have found also does it with a Viewpager: https://github.com/PaoloRotolo/AppIntro

Why Group Activity is Deprecated

I am Searching for the answer of my questions
Why Group Activity is deprecated?
I did not find any proper answer. My second question is
Why we have to use Fragment instead of Group Activity?
I need answer of these question in detail.
You can get your detailed answer by reading The Android 3.0 Fragments API blog. One of the relevant point is:
Embedded Activities via ActivityGroup were a nice idea, but have always been difficult to deal with since Activity is designed to be an independent self-contained component instead of closely interacting with other activities. The Fragment API is a much better solution for this, and should be considered as a replacement for embedded activities.
You can also look at Is it advised to build all apps using fragments? question. Hope it helped.

Book, tutorials or sources for creating rich/complex interface (android)

Pretty much the title. I'm new in android development. So, I'm interesting about developing rich application, but cannot find a good tutorials. I would be realy appreciated if someone guide me some resources for start.
Maybe there is some open source project where I can find helpful information?
Thank you
UPD1
Is there some guide from start to end where explained how to make an application such a twitter app? Or any other kind of complex and start to end described application?
I would recommend starting here. The Google UI guidelines. It explains the different API for creating UI elements and also gets into pros/cons about icons, menus, fonts and so on.
http://developer.android.com/design/index.html
http://appinventor.mit.edu/explore/sites/teach.appinventor.mit.edu/files/MIT%20App%20Inventor%20Development%20Overview_0.pdf
http://cs.usfca.edu/~wolber/appinventor/bookSplits/ch4NoTexting.pdf
These are some of the links that i found very useful for complex android app development.

Android - first launch interactive tutorial

I'm writing a new app for android and I would like to implement also a first launch tutorial. In particular, the tutorial has to be interactive. Basically, after a user registers to the service, a minimum settings will be required.
I'd like something like today we have into Google Apps, like Sheets, Docs and so far. The exception there is that those tutorials have the aim to explain how the app works. Here I want to have something where user can input some data.
I was looking at ShowcaseView but seems to be deprecated and old in style.
So here the question is: what is the best way to implement that? ViewPager?
I also had a look to this other question, but it did not help too much.
Any advice is really appreciated.
EDIT: I have found this other nice alternative. AppIntro It seems what I was looking for. :)
There are few I found by quick searching Github:
https://github.com/Seishin/showcaseview-android
https://github.com/worker8/TourGuide
https://github.com/amlcurran/ShowcaseView
I'm pretty sure you can find the right one for you ;)
You can do it in several ways that really depends on you and your app. Basically you can create a "Boarding" experience with ViewPager that will go thru the main screen of your app (with static images for example) where you explain the user what goes on in your app. The other way way is an interactive tutorial as the user already landed into your app - you can achieve this with something like Showcase (I'm pretty sure that there are libs on GitHub that are still maintained).
I would recommend Roman Nuriks Wizard Pager code on Github as a starting point. It's not so much a library as a sample code showing you how to do what you want.
The general approach is to use a ViewPager with some form of navigation buttons to move the user forwards and backwards through the pager Fragments.
https://github.com/romannurik/Android-WizardPager

Categories

Resources