Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

A short article about a problem I had getting the GPS LocationListener working.
Here, we have shared an easy step by step tutorial on how to download instagram images and videos on PC, Android Mobile and iOS mobile.
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.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

618 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