Moving over to ActionBarSherlock - Java for Android App Development

Hi xda-developers!
This is my first post so I'm sure you will be swift to tell me if I'm doing it wrong!
I have an app that currently uses a Tab activity to navigate between activities. However I want to convert all of this to be able to implement an ActionBar using fragments. What is the quickest and easiest way to do this? Or are there any good resources out there to help?
Many thanks
NoahDev

I wouldn't use ActionBarSherlock.
Google released their own library:
Some more info: http://android-developers.blogspot.de/2013/08/actionbarcompat-and-io-2013-app-source.html

nikwen said:
I wouldn't use ActionBarSherlock.
Google released their own library:
Some more info: url
Click to expand...
Click to collapse
Thanks I'll look into this! Will all my activities need changing to Fragments still?

noahdev said:
Thanks I'll look into this! Will all my activities need changing to Fragments still?
Click to expand...
Click to collapse
EDIT: I'm looking into it and there doesn't seem to be much difference. Why wouldn't people use actionbarsherlock?

The activities need to be converted to fragments. This needs some coding time (but not too much, after doing one the rest will be straightforward) but also it's the best solution.
And I would use ActionBarCompat instead of ActionBarSherlock.

ABS works fine though?

out of ideas said:
ABS works fine though?
Click to expand...
Click to collapse
Im struggling to understand all the hostility towards it!
Sent from my GT-I9100 using xda app-developers app

ActionbarCompat get official updates from Google. That's the advantage.
However, it does not provide a PreferenceActivity with an ActionBar and contains some bugs which will hopefully be fixed in the next version.

Related

[App] Beta testers wanted: Free Windows mobile App

Hi all,
We're a new here. We wanted to extend our app to Windows Mobile/Pocket PC and need about 50 beta testers.
Download free here: http://bit.ly/Cm8Dd
We would prefer to discuss here in this forum since you are already registered here, simply reply below.
More info here and here.
Please note, this is NOT a live app just yet and is meant for beta testing only.
This app will be 100% free-to-use once launched.
Thanks all!
how about telling us some info about the app first
What does the program do?
burtcom said:
how about telling us some info about the app first
Click to expand...
Click to collapse
Sorry about that here's some info:
http://www.getjar.com/products/27618/PinStackMobileReader
Sounds interesting, downloading now.... and will report back.
tvrtim said:
What does the program do?
Click to expand...
Click to collapse
Allows you to follow smartphone news. As well as searches the web for news based on any keywords of your choice and pushes news to you as it comes out.
You can also add URL's from any site for example:
http://forum.xda-developers.com/external.php?forumids=260 would subscribe you to pushed updates from this forum.
Code:
http://forum.xda-developers.com/external.php?forumids=260
tvrtim said:
Sounds interesting, downloading now.... and will report back.
Click to expand...
Click to collapse
Thanks much
I have it installed. I cannot add anything to the feeds like blogs or anything like that. It is very nice to look at but it is not finger friendly. Could you please tell me how to add blogs and or rss feeds or is that the part that isn't live. Is there anything specific that you want feedback on?
Thanks
ptfdmedic said:
I have it installed. I cannot add anything to the feeds like blogs or anything like that. It is very nice to look at but it is not finger friendly. Could you please tell me how to add blogs and or rss feeds or is that the part that isn't live. Is there anything specific that you want feedback on?
Thanks
Click to expand...
Click to collapse
You should be able to find this under the "My Feeds" Tab.

[Q] Linked contacts name priority

On my Vibrant (2.1), when multiple iterations of a contact are linked, you can select in each field where there is conflicting information (i.e. Bob Jones on Facebook, Robert Jones on Google Contacts) which takes precedence in the contact display. On my Nexus S, I have been unable to figure out how to do this.
I'm hoping this is due to my own ignorance and not because the feature has been removed. Can anyone instruct me on the way to set these preferences in Gingerbread? Your help would be most appreciated!
Anyone? No one?
I don't think you can change that on stock android. That was something Samsung added on your vibrant.
Mm. That possibility had occurred to me, but I didn't want to believe it. >.>
Ah, well.
I feel your pain. Click on the entry you want it to appear in the list, and edit, then join it with others.
E.g. you have Robert in your Google contacts and Bob on Facebook. If you want your contact to say Robert, then click on Robert and join it with bob.
If you want it to say Bob, then click on Bob and join it with Robert.
Hope this helps.
Sent from my Nexus S using XDA App
Ah, nice. Not as intuitive as the TouchWiz solution, but it works! Thank you kindly, good sir.
zorak950 said:
Ah, nice. Not as intuitive as the TouchWiz solution, but it works! Thank you kindly, good sir.
Click to expand...
Click to collapse
I agree. As much as I like stock Android, I must also acknowledge that some of the extensions of the custom ui are quite useful.
I'm glad I could help.
Sent from my Nexus S using XDA App

Develop a market?

Okay so I have thought about this for a long time.
I want to develop a Market, but I don't know were to start... So I need help with this. Maybe we can make a development team of this?
What I can do:
- Supply with Servers (MySQL, FTP etc)
- code in eclipse (I'm not a hardcore coder)
- design the app
I guess you can have a listview to begin with that takes data from a JSON from a MySQL database. Well I'm not really sure.
So if any is interested, post here on this thread or send a PM to me
I know it's a lot of work... Please don't remind me about that, lol.
See this thread:
http://forum.xda-developers.com/showthread.php?t=1135340
It would be very useful.
ppirate said:
See this thread:
http://forum.xda-developers.com/showthread.php?t=1135340
It would be very useful.
Click to expand...
Click to collapse
that doesnt appear to have anything to do with this topic. they are discussing how to compile and package native c binaries for android. the only thing that comes close is the discussion of opkg
If u need any apk's to stock it let me know. I have somewhere in the ballpark of about 1400. I would need to go through them all 2 remove all the paid apps 1st though.
Sent from my HTC HD2 using XDA App
htccraze said:
If u need any apk's to stock it let me know. I have somewhere in the ballpark of about 1400. I would need to go through them all 2 remove all the paid apps 1st though.
Sent from my HTC HD2 using XDA App
Click to expand...
Click to collapse
Okay I'll do that. For the moment the market has to be developed.
lol. yea i figured that part but i just wanted to throw it out there since i seen your post.
excited to see what comes of it.
You could probably just take a look at the AOSP source code, specifically the market code, and get started from there.

Source to learn java for android apps?

Outside the official java tutorial site. I know that is the best site to learn java, but Ive tried and I cant keep up. It looked messy for me. So anyone got a site or a book which covers some moderate stuff? Im not looking for game development. Also, I've managed to make my own simple notepad app, from the exercise at google. So no "hello world" tutorials, please.
Sent from my GT-I9105P using Tapatalk 2
First head java very good book for learning java, I learned from there
Sent from my GT-I9100 using Tapatalk
Paulius7 said:
First head java very good book for learning java, I learned from there
Sent from my GT-I9100 using Tapatalk
Click to expand...
Click to collapse
Me, too.
It's a great book.
If you're new to Java, I would highly recommend at least learning the basics of Java and OO before launching into Android dev. Mainly because with Android dev there are a lot more moving parts than just pure Java.
Haven't taken this course myself, but looking through the contents of the course it looks quite good. At the price of 'FREE' you can't go wrong! https://www.udemy.com/java-tutorial/
Once you're more familiar with Java, this is a good reference book: http://www.amazon.com/Effective-Java-Edition-Joshua-Bloch/dp/0321356683
ArigatoLowLife said:
Outside the official java tutorial site. ...
Click to expand...
Click to collapse
What is the official java tutorial site?
javapimp said:
What is the official java tutorial site?
Click to expand...
Click to collapse
Here you go: http://docs.oracle.com/javase/tutorial/
Welcome to the forum by the way.
nikwen said:
Here you go: [link removed 'cause I'm a noob]
Welcome to the forum by the way.
Click to expand...
Click to collapse
Oh yeah, that makes sense! Seems like a stupid question now. I've always tended to avoid the tutorials from the actual vendors since they are typically the worst. I guess I sometimes forget they even exist...
...
javapimp said:
Oh yeah, that makes sense! Seems like a stupid question now. I've always tended to avoid the tutorials from the actual vendors since they are typically the worst. I guess I sometimes forget they even exist...
Click to expand...
Click to collapse
i think if u have better foundation of c or c++ the learning lava will hardly take one month...
i will give my example i learnt c++ in my 12th standard...
then for developing android app i learnt java by myself without any tutorials or guides ,just used eclipse IDE and source codes of sample android app...
and now my android app is in playstore... and i made my app opensource and u can see my app in this thread..
http://forum.xda-developers.com/showthread.php?t=2547427
javapimp said:
Oh yeah, that makes sense! Seems like a stupid question now. I've always tended to avoid the tutorials from the actual vendors since they are typically the worst. I guess I sometimes forget they even exist...
Click to expand...
Click to collapse
I haven't used them, too. The Head First Java book did the job.
nikwen said:
I haven't used them, too. The Head First Java book did the job.
Click to expand...
Click to collapse
Paulius7 said:
First head java very good book for learning java, I learned from there
Sent from my GT-I9100 using Tapatalk
Click to expand...
Click to collapse
Since you both recommend this book, I'll give it a try. I found 'Head First Java Second Edition' on Amazon. Seems like there are two different versions. Which did you guys read? Thanks for the help
I have Head First Java, 2nd Edition This book amazing because it's explain like in life events or something like that then you very easy to learn it.
ArigatoLowLife said:
Since you both recommend this book, I'll give it a try. I found 'Head First Java Second Edition' on Amazon. Seems like there are two different versions. Which did you guys read? Thanks for the help
Click to expand...
Click to collapse
I used the German edition of the book. I recommend to choose the second edition as it should contain information that is more up to date.

New Simple/Effective Android RSS lIbrary

Hey All, while working on a new app, I put together a very simple library that reads RSS feeds. I decided to make my own, because the current ones are very outdated and seem impossible to customize. Please check it out and share! Thanks!
https://github.com/ShirwaM/Simplistic-RSS
I don't understand what to do with the files in rss.zip
Thank You
Aashutoshrraj said:
I don't understand what to do with the files in rss.zip
Thank You
Click to expand...
Click to collapse
What do you mean? When you clone the project, you can include in your project by importing it.
Sent from my Nexus 5 using Tapatalk
thanks! :laugh:
No problem.
beefx said:
thanks! :laugh:
Click to expand...
Click to collapse
.. no Android Studio Support?
shirwa said:
Hey All, while working on a new app, I put together a very simple library that reads RSS feeds. I decided to make my own, because the current ones are very outdated and seem impossible to customize. Please check it out and share! Thanks!
https://github.com/ShirwaM/Simplistic-RSS
Click to expand...
Click to collapse
Hi Shirwa,
First, Thanx for a simple and great library! :good:
Learnt how to use RSS using this.
Even added a few items to it.
Now to brass tacks.
Some URL's are not loaded.
eg.: http://feeds.feedburner.com/ndtv/Lsgd?format=xml
http://indiatoday.feedsportal.com/c.../indiatoday.intoday.in/rss/article.jsp?sid=61
http://feeds.feedburner.com/News-Karnataka?format=xml
Also, some ATOM feeds load, whiles others don't.
Could you help out?
Thanx.

Categories

Resources