Is LoaderManager class in Android deprecated for API 30? - java

I'm relatively new to Android development and learning from Udacity. In the course they are using the LoaderManager class which I found difficult to understand so I went to the docs where I found that the class is deprecated, but its can still be used from AndroidX. I then went there which told that support for this class is not available. I'm pretty much confused as to whether the class is deprecated or not. If not, can someone suggest some good documentation to learn about using LoaderManager?

Mostly documentation from developer site and quick documentation of Android Studio will answer most of your quesitons/problems. For example when I was learning SQLite i learnt also using LoaderManager. After some times I decided to use SQLite for an app with LoaderManager but as you already mentioned it's deprecated (android.support.v4.app.FragmentActivity.getSupportLoaderManager()).
So I looked on quick documentation and found my answer with in seconds. If you call that method and move your mouse on it, Android Studio shows quick documentation (if you enabled quick documentation) and guides you. So according to quick documentation that method is deprecated and it suggests: use LoaderManager.getInstance(this).
In brief documentation from developer site, quick documentation of Android Studio and this site can answer all your questions. If you're learning new things I suggest read also developer's documentation and read quick documentation while practicing because other sources (like Udacity or videos) may not be detailed or may not be up to date.

Related

Google App Engine - Early Look at Java Language Support tutorial

Recently I have started playing with google app engine and eclipse trying to create a simple java app. The problem is that the "guestbook" example given today in the official GAE website is is slightly different, more complicated and I struggle to remake the example on this video which you most probably already have seen:
http://www.youtube.com/watch?v=P3GT4-m_6RQ
If anyone have seen this code on some other website or know any other resources such as books, journals, articles, etc. that will help me to recreate the example on my own, this would be much appreciated.
This is the best for any beginner.
https://developers.google.com/appengine/docs/java/gettingstarted/

Going from Java desktop programming to Android Application Developement

I know similar questions have been asked before but i think this is slightly different. for about a year Ive been learning Java. I have been building a few applications on the desktop using my-eclipse and swing GUI. Now i want to start programming for the android. I understand how to do what i want in Java but it all seems very different on android. Does anyone know of any good tutorials or videos out there with step by step instructions showing examples of android applications so that i can learn and build off of them? Most of my programs are simple and for the most part i just need to understand how to interact with the interface (IE the buttons, label or text views i think they call them and so on). I've searched all day and I cant find anything good.
I found this quite use full apart from the tutorials from the developers site.
If you are looking for advanced tutorials , you can try here.
for the most part , once you are trying a specific application , a google search could get you a relevant tutorial.
goodluck.
ps. It helps to read dev guide before you begin to write programs for android.
You should have a look at the Android API demos. They include a lot of simple examples which access special problems/tasks.
A more complex 'productive' application is the Android app for the I/O conference. It's Open Source - so you can have a look 'inside'.
the Android developers site has a great dev guide and tutorials to try out. the dev guide can be found here. The tutorials can be found here.
I highly recommend "Android Programming Tutorials" by Mark Murphy - http://commonsware.com/AndTutorials/. I found the step-by-step tutorials to be very helpful, and it does focus on teaching Android development rather than Java.

Developing Android outside of the SDK

It seems as if every Android application I really want to make is impossible to make with the current SDK. It doesn't give me access to certain things I would like to work with. This is an example of one of these things.
I know it is possible since I've seen apps in the market that do things that the SDK cannot do. My basic question is can someone point me in the direction of how to create such an application. I've searched around, but all of the links I've found are for developing with the SDK. A simple link to a tutorial that can show me how to access Android elements that aren't available through the SDK would be great.
Thanks.
You will not find a tutorial on it because the NDK is in flux..
What I have found is ..
One of the Eclipse CDT has blog posts on how to setup NDK projects in Eclipse.
The people who know Android Embedded C and frameworks are usually on certain IRc channel.
Plenty of code documentation..
Google search for android jni wrapper blog posts.
But keep this in mind several areas require state management as hey interact with hardware buffers in a certain way..ie audio..video..etc.

Android development resources for a Java newbie

I've got one of those newfangled Android phones and want to do some app development for it and am looking for guides. I haven't really found anything that looks promising for both an Android newbie and a Java newbie though. I know PHP and code in it professionally as well as a basic smattering of some other languages so any 'for dummies' resource is probably not for me.
Are there any advisable books, resource sites or tutorials that focus on both these aspects (rather than one or the other) that assume you know nothing but not treat you like an idiot?
Thanks.
First of all, start with Google's own documentation. Its basic but a good start.
http://developer.android.com/guide/topics/fundamentals.html
Then you may wish to progress via various books.
I would recommend the set of books written by a Mark Murphy who is a regular on stack overflow. They are digital downloads and are kept up to date. Checkout http://commonsware.com/
For Java, since you already understand programming, I would recommend Sun's tutorial
http://java.sun.com/docs/books/tutorial/
For Android I agree with Tom but also recommend the notepad tutorial:
http://developer.android.com/guide/tutorials/notepad/index.html
I'm also in the same boat, except I'm a .net developer trying to pick up Android. The best place to start seems to be the Google getting started. I've not found any other large resources for Android, but IBM have a couple of good articles, particularly this run-down on working with XML with Android.
http://www.ibm.com/developerworks/opensource/library/x-android/index.html#download
Also, here's an excellent book with some great examples:
http://www.amazon.com/Android-Wireless-Application-Development-Conder/dp/0321627091

Android coverflow

I'm writing an application for android and would like to have an itunes like coverflow preview.
Is there anything in the api that I can use or do I have to build it from scratch?
I've created a basic coverflow widget it can be found here:
http://www.inter-fuser.com/2010/01/android-coverflow-widget.html
There is no built-in coverflow widget, the closest thing is probably the Gallery widget. Still I'd be surprised if someone hadn't tried something of the sort yet, and you might find some code floating around the internet. Google has some mentions of coverflow on Android, though I haven't checked it out in any detail.
This is not provided by default however there is:
http://code.google.com/p/android-coverflow/
For latest versions (3.1+) of the sdk there is a sample provided during Google I/O 2 years ago. It shows a 3D coverflow which could be an alternative to a coverflow. (It's widely used in apps like Google Music and News app).
Demo here.
Source code here.
I made a coverflow widget from scratch. It doesn't use any deprecated components.
You can find it here:
http://applm.github.io/ma-components/

Categories

Resources