I was doing the HelloTabWidget tutorial
http://developer.android.com/resources/tutorials/views/hello-tabwidget.html
and getting errors on the "TabHost tabHost = getTabHost();" statement. I thumbed threw the stackOverflow notes and it seems a few people were having the same problem, and a few received responses along the lines of "Note: Tabactivitity deprecated in latest versions, consider learning Fragments" and discovered I can use ... the v4 support library which provides a version of the Fragment API that is compatible down to DONUT. although I haven't quiet figured out how to do this.
My question is - If the function is deprecated, and causing newbies problems, shouldn't the tutorials be updates to use the new functions? Is their a polite/politically correct way to let the people in charge of the tutorials know that an update may be in order? Or maybe new tutorials exist, and I'm just looking at an old URL?
shouldn't the tutorials be updates to use the new functions
Who exactly are you asking this to? Us? Why would we know why google hasn't updated their docs/tutorials.
is their a polite/politically correct way to let the people in charge
of the tutorials know that an update may be in order?
I'm very sure that they know. They probably have more important things to do. There are TONS of tutorials around the internet. They don't need to update all their tutorials.
Or maybe new tutorials exist, and I'm just looking at an old URL?
Search google. There's TONS of blogs that will give you lots of examples. Including here at stack overflow.
Related
I am getting this exception in the designer:
Exception raised during rendering: No tab known for tag null
I have the same EXACT code as this guy -
Android FragmentTabHost : No tab known for tag null
his only answer was "use an older deprecated class" - TabHost instead of FragmentTabHost which is the one that I understood you need to use instead of...
I am a beginner to Android and to Java, but i've been a programmer for many years in .NET, and i find it really hard to find good solutions to very basic problems that came from apparently the only 3 tutorials for fragments out there (just like the one stated above)
So basically here are my questions so far:
From what i understood so far, the only way to actually make a menu to your Android application is to make it a single Activity app with fragments, if this is true, how should i keep track of my fragments if FragmentTagHost is not fully working yet? I found references for ActionBarSherlock - his latest version is using a lot of deprecated classes too
What are the best practices with using a single activity + fragments, and where can i find good helpful examples to get me going to achieve the ui i want to make?
Are there other third party solutions that can help along like ActionBarSherlock?
I am using the Eclipse ADT, would you recommend a different IDE?
Thanks a lot
PS - please don't refer me to the android developer tutorials, i've been thru them, and they are like learning the abc's while i need to make sentences and trying to find good sources for that, i am saying that because i found plenty of good questions on here that were just answered with "here is the really basic tutorial, go do that"
Find AndroidApiDemos project in the samples folder of SDK http://developer.android.com/tools/samples/index.html
There you can find FragmentTabs demo which is what you need, i assume
As for 3. Yes, there are a lot of different solutions. Previously in PlayStore was a good app with different UI patterns and links to the opensource projects implementing them com.groidify.uipatterns. Hope you can find it via google somewhere such as now it is not available
I'm working on application which needs to implement In App-Billing payments and I was searching more info about it and find a library written by someone else and I'm curious about it. Is it good to be used and if anyone here already tried it. It seems like it's not so complicated to understand,but I just want to hear some information can I used it and is it stable enough. Here is the project code which I find :AndroidBillingLibrary.
So any suggestions / advices and information about that library is welcomed. Or anything else which will help me to understand more clearly in app-billing process in android (except the documentation in android.com) will be really great!
Thanks for any kind of help!
It very clearly states on the tin: 'This library is a very early release and it should not be used as production code'. So if you want to use it, you will have to understand how it works to be able to fix it when it breaks. You might as well write your own.
Read the official documentation, study the dungeons sample, try to understand and if you get stuck, post specific questions. Otherwise, just hire someone to do it for you.
Is "AndroidAnnotations" reliable? I've searched it but couldn't find many articles on it(reviews or tutorials).
I've been considering using this library in my project which already has quite lots of users. Before adopting it, I need a good reputation on it. So my concerns mainly are,
Are there famous products using this library?
Can I say it's stable enough to adopt it for my big project?
Will it be maintained well? (bug fixes, etc)
Thanks in advance.
I am the lead developer of AndroidAnnotations. Let's answer your questions:
Can you rely on AndroidAnnotations?
I think so. AndroidAnnotations is a compile time framework which generates code. The generated code is readable java code, which means that if you need to understand what happens, you can. No magic happening at runtime => you are in control.
We try to maintain a list of external articles / tutorials here.
Are there famous products using this library?
Let's be honest: I don't know. Matthias Kaeppler from Qype talked about AndroidAnnotations at DroidCon London 2011. The frontpage lists the applications that we know for sure are using it. I know there are way more people using it because they ask for enhancements and report bugs, but they usually don't let us know when they publish an app. And of course, the idea of "writing clean and maintainable Android code" is not yet very common in the Android community.
Can I say it's stable enough to adopt it for my big project?
We are using it in our own apps, and we find it perfectly stable. So I would answer yes, but I think you should just try it :-) . Download the 2.2 RC2 (will be released stable soon), follow the instructions and see for yourself. You can do progressive enhancement, and start enhancing only one or two activities. See how it fits you, and let us know if anything goes wrong. And if you do release an app with AndroidAnnotations on the Android market, please let us know, we'll update the front page.
Will AndroidAnnotations be maintained?
Yes, it will. Although it started as a personal project, AndroidAnnotations is now sponsored by a company, eBusiness Information. This company employs people (including me) to work on AndroidAnnotations, with the aim of making it a major Open Source Android framework.
As you can see here and there, we are adding a lot of new features for the 2.2 release. And you won't find a lot of open Defects in the issues, because we concentrate on fixing any bug before adding new features.
I am starting getting to know android renderscript and i've read everything that is on the android developer site, but it seems that there is not enough documentation, examples.. I was wondering if there is maybe a book that also has a part with explanation and some renderscript examples. I want to learn about it in depth, so if someone can provide links for books, examples, tutorials (anything would be of great help) i will appreciate it. Thank u in advance!!!
We are working on this documentation gap and plan to have updated docs within the next few weeks; however, it will still be a work in progress. If you have specific things that you want to do, let us know. In the meantime, there are samples packaged with the SDK that might help you get started: http://developer.android.com/resources/samples/RenderScript/index.html
I've posted a couple of RenderScript articles/tutorials on my blog. If they're of use, let me know. I've been debating whether I should make more, but it's tough to gauge interest in RenderScript.
There's very little documentation on Renderscript at this moment in time. Google has published a few posts about it, including the following on the Android Developers Blog, but apart from that, the information available is very limited.
http://android-developers.blogspot.com/2011/02/introducing-renderscript.html
http://android-developers.blogspot.com/2011/03/renderscript.html
Some documentation is also available here:
http://developer.android.com/guide/topics/renderscript/index.html
You can also find some examples here:
http://code.google.com/p/renderscript-examples/
The Android team has promised to add more documentation at some point in time, and I'm hopeful we'll get some more information when Ice Cream Sandwich launches.
New to Android. Trying to find docs that show what Android classes expect to elicit changes. For example, to make a keyboard always visible, I could find some info searching Google, but not directly in the docs of the SDK. Is there a source for more comprehensive docs on how Android works not just from the individual class level, but how it boots up and what to do to make small tweaks for an app.
I don't know if this would be what you're looking for, but here's some information on packages and classes
http://developer.android.com/reference/android/inputmethodservice/package-summary.html
I've been teaching myself Android for about a month now and the best reference I've found so far is the Android Developer site, especially under the References and Resources pages.
Hopefully that helps a little bit. Sorry I couldn't be of more help.