Android questions

Posted on 2013-01-17
Medium Priority
Last Modified: 2013-07-23
Hello, I should begin by saying that I'm brand new to android development, although I have a good understanding of the fundamentals of java. That being said, I usually learn best by doing, so I'm writing an app for a campus magazine I work for and trying to learn through the process of making it.

At the top of the screen is a bar with two spinners labeled "issues" and "sections," which allow the user to filter the articles shown to only those in the respective issue / section. The rest of the screen is taken up by what I will describe as a vertically-oriented gallery, which shows the headline for each story underneath an image associated with it. The user can then "flip" through the stories in the magazine by scrolling through the "gallery." Selecting one of the stories will open the full story up in ViewPager.

Several questions:

1) Initially, I planned to place the "issues" and "sections" spinners in the ActionBar. However, as I understand it, ActionBars are not displayed to users using Android 2.x. Given that these elements are critical to navigating the app, and that a majority of android users are still using 2.x, this seems unacceptable. As a result, I'm using an ActionBar-less theme and essentially drawing my own action bar via a linear layout on top of my main activity. Am I correct in my understanding that ActionBars do not display on Android 2.x devices? If so, am I correct in including my "tool bar" as a part of the main activity, or is there a better way to implement it? (Perhaps as a fragment? I don't really understand how those fit in yet...).

2) I am aware that the gallery widget is deprecated, so obviously I'm not going to use it. What alternative widgets would best achieve the same visual goal of having the user "flip" through the stories in the magazine by scrolling through the widget? Is there a way to animate a ListView to achieve this goal?

3) I'm trying to do just that, but am stumbling even at getting the ListView to work with a custom adapter. I want to make sure that whoever helps me gets enough points to warrant their time, so I've posted this issue to a separate question here.

Again, any help - particularly which helps me to understand the wider issues involved here - will be greatly appreciated.

Thanks in advance.
Question by:dm4488
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 18

Expert Comment

ID: 38792482
may be helpful:
ActionBarSherlock :
The library will automatically use the native action bar when appropriate or will automatically wrap a custom implementation around your layouts. This allows you to easily develop an application with an action bar for every version of Android from 2.x and up.

LVL 17

Accepted Solution

Chris Harte earned 2000 total points
ID: 38793364
Pre and post honeycomb are not compatible. Fragments only run on post honeycomb for example. Writing old code just fills my screen with errors and warnings. Every day more stuff gets deprecated from android. Deprecated means that there will come a time, probably sooner rather than later, when it will be completely disabled, usually because of security fears. This means maintaining two versions of the same software. From my experience as a C programmer I know that is an awful lot of work. All the clever bits of Android, the bits that make it fun to use and code, are in the later versions.

Personally I made the decision to write apps for the new versions, the old will just have to learn to upgrade. If I can get ice cream sandwich on my phone, anybody can. Time to let the previous generation wonder off and die on the ice somewhere (By previous generation I do mean three months ago).  That is my opinion, and since you are a premium member, probably worth less than you paid for it.  Good luck with the coding by the way.


Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you use the Google Now Launcher, as an aftermarket add on, have a Samsung Note 5 and are worried about power consumption be wary of using the ultra power saving mode.  Here is what happened to me when I made the mistake of trying this out...
Learn how to use the free Acronis True Image app to easily transfer data between iPhones and Android phones.
This video is in connection to the article "The case of a missing mobile phone (https://www.experts-exchange.com/articles/28474/The-Case-of-a-Missing-Mobile-Phone.html)". It will help one to understand clearly the steps to track a lost android phone.
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question