Android :: Best Practices In App UI Navigation

Jun 2, 2010

I am trying to learn how to do stuff in Android, and I'm not sure of the best way to build the interface.I've been working on porting an iPhone app, which uses navigation controllers and table views for looking at the different sections: basically, someone touches a cell in the table, which drills down to another table. when they touch a cell on that table it drills down to a webview that displays the information.I want to do something similar for the android app, but I don't know how, or if there is a better way native to Android. I've figured out how to use the webview to my purposes, but moving forward and backward in the table tree is unclear.

Android :: Best Practices in App UI Navigation


Android :: Using MediaPlayer Best Practices

Nov 3, 2009

What is the best way to use the MediaPlayer when needed multiple times?

Reuse the instantiated MediaPlayer throughout the session? Or constantly stop() release() and instantiate a new MediaPlayer() ?

If I reuse I'm afraid the player could be in a bad state? What about performance wise? what's better? reuse or renew?

This is for using as a music player so one audio be present at one given time...

View 4 Replies View Related

Android :: Best Practices For Library With UI Component

Jun 26, 2009

My company is in the process of evaluating if we can add support for Android to our product. I am currently working on porting our existing J2ME library to the Android framework and I have a question regarding our UI component. Right now, we have a custom menu that we allow our developers to bring up on the device. On J2ME, we simply have a single call that the developer makes to enter into the menu and then we handle the rest. On Android, it seems the best way to handle this is an Activity. But I have a few questions regarding this approach including is the really the best way to do something like this? Second, if it is, if there are multiple applications on the device that are using our library, are there going to be conflicts with them all having the same Activity embedded in them? Is it possible to create an Actvity at runtime and use it directly? Would there be any side effects of going about it this way?

View 2 Replies View Related

Android : Best Practices To Be Followed When Designing Database?

Aug 30, 2010

I have to create a number of tables for caching some amount of textual data, obtained by reading XMLs. These tables need to be created only once - on the initial run of the application. The data in the tables should be cleared after fixed time period. There should be a class exposed to other classes that would allow CRUD operations on this database. Googling found me some links to tutorials for creating databases and Data Access logic.

I have some questions, please help:

How many DataBaseHelper(DBAdapter) classes should I have, I am guessing only one? Is it okay to have all the SQL DDL and DML statements, DB name, Table Names as static strings of this class?
How do I ensure that the tables are created only once?
Is it possible to clear the DataBase after a fixed time interval?
Are there any best practices to be followed when designing the database?
The data in the database is to be displayed in Lists. I have data in ArrayLists(created when parsing XML) as well as Database(after these lists are persisted). What adapter should I use to back the list up? Should I use ListAdapter or CursorAdapter?

View 2 Replies View Related

Android :: Any Best Practices For Starting / Handling Activities

Oct 23, 2010

Understanding how to declare activities in the manifest file, how to set the appropriate flags when starting them through intents, is quite challenging in all but the default cases. The combination of all these settings and flags is daunting. I've been developing for Android for over a year now, have read the application fundamentals and the reference guide for 'Intent' quite a few times and still I don't have a good grasp of which manifest settings or intent-flags should be used for starting activities in many situations (workflows). Is there some source/document that can explain certain work-flows (ways of navigation through activities and tasks), that shows examples of how to configure and start activities?

View 4 Replies View Related

Android :: Good Practices For Building Web Application

Sep 10, 2010

can you advice me a book or something else containing good practices about how to build/structure a web application in a way that will be easy to extend it with an Android/iPhone version later.I am currently trying to get into Django so it will be nice if the practices are related to it.

View 1 Replies View Related

Android :: SQLite & Concurrent Access Best Practices

May 8, 2010

I have an application with several tables, each being updated by AsyncTask fired by different Activities and used by UI with SimpleCursorAdapter. Though i am not developping a game, I would like to avoid to interrupt the user as mush as possible. Has SQLite is not multiaccess proof, what is the best way of handling such situation?

- I consider adding lock from each DB open and to each close sequence but this seems quite subject to bugs - The solution i am using now is that each DB access (read/write) is done in UI thread (when AsyncTask completes, DB write is done typically in onPostExecute), but that means user is blocked for several seconds during the DB write.

Is there any better solution for that? Should i use a ContentProvider? when i read "Content providers store and retrieve data and make it accessible to all applications", this does not seems to be what i need. Any idea?

View 4 Replies View Related

Android :: Best Practices To Integrate Tips In Application

Apr 22, 2010

What are the best practices people have used to integrate help/tips in their application? One way I can think of is having html snippets in resources or assets - perhaps as html files - maybe as formatted strings. However, I think it would break down once an html file linked to another html file or an image or icon. I'm sure some of you have apps that are so wonderfully intuitive that they don't need any help. And I admire that. But I'm not making that assumption for my app.

View 6 Replies View Related

Android :: Best Practices For SQLite DB And Content Provider

Nov 12, 2009

My Android app is reading and writing to a local SQLite DB from a few different Activities and a Service. Pretty standard. But I'm not happy with the way I've got all the DB details stored as constants that I then use anywhere I access the DB. I've been advised to wrap the DB in a ContentProvider. Sounds good to me. While I'm refactoring my code, I figured I'd ask: What are your best practices for local DB data storage in Android?

Where and how do you store "CREATE TABLE" statements, column names, other SQL? Would you mind sharing a list of the classes you instantiate and what goes into each (ContentProvider, DatabaseProvider, DatabaseHelper...)? How do you coordinate the structure of your local Android DB with a server-side DB available through a REST interface? I realize I'm getting at the perennial "where's the Android object-relation-mapping framework?" question. For now, I'm mainly curious to hear how you structure your Android apps with what's available in the standard SDK.

View 4 Replies View Related

Android :: What Are Application Update Feedback And Best Practices?

May 20, 2009

I've published an Android applications on the Android market and now have an update to do. I want to know if any of you have already done that, and what experience can you share about it:

- How to manage version conflicts?
- What to do with databases?
- Can you make appear a message with "what's new" if it's an update, but nothing it's a new installation?
- Should you backup old data before updating, and how?
- Did you run into any trouble and how did you solve it?
- Can update be partial (like, just a patch)?

View 1 Replies View Related

Android :: Help A Newbie Learn Eclipse / Debugging Best Practices

Jul 25, 2010

I am a newbie to Android and the Eclipse development environment and would like some advice on best practices for debugging my apps when they throw a Force Close.I have researched ADB, however, I can not get this to interact with my phone even though I have explicitly turned debug mode to true on my test handset.Obviously Android comes with a LOG method which I have seen utilized in many example apps, can someone please explain how to review these logs quickly and how to setup logging appropriately to determine the cause of a Force Close (always occurs when I push the Home button).Any advice on debugging effectively in Eclipse would be much appreciated!

View 2 Replies View Related

Android :: Best Practices For Snappy Mobile I / O On Slow Connections?

Aug 12, 2010

I have a mobile app, which is pretty data driven, though only through text and images. In the current version each click or touch requires pulling new data from the server (appache/php). With network delay this easily takes 1-2 seconds for the first content to appear, which is far too long. I have heard about and considered the following options, but are not sure if some of them might be counter productive, or if I have left something important out?

Download all data from the start, in a big bunch with a loading screen? Run a prefetching thread, predicting and downloading data the user might want, in the background? Keep the connection open to the server at all time? Load different parts of the data in different connections in parallel? (Similar to facebook) Use heavy data compression? A comprehensive article on the matter would also be a good answer.

View 1 Replies View Related

Android :: ListView Large Number Of Items - Best Practices

Oct 20, 2010

I am working with a ListView, custom adapter and a large number of items. I read in a book for Android that is was more efficient to use what it called the holder pattern. That is to create a wrapper class for each view in the list view that cached the objects in the view so as to avoid calls to findViewById because those are supposed to be expensive. My question is what is better? To have 50,000 objects GC'd every time the user scrolls or to make the 4 or five calls to findViewById per view? Below is my implementation of what the book suggested.

@Override public View getView(int position, View convertView, ViewGroup parent) {
View view = convertView; if (view == null) {
final LayoutInflater inflater = (LayoutInflater)
context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
view = inflater.inflate(R.layout.survey_item, null);
view.setTag(new SurveyItemWrapper(view));
} bindView((SurveyItemWrapper) view.getTag(), position);
return view; } private void bindView(SurveyItemWrapper surveyItemWrapper, int position)
{ final SurveyedItem surveyedItem = surveyedItems.get(position);
surveyItemWrapper.getDescription().setText(surveyedItem.getItemName());
surveyItemWrapper.getCube().setText(String.format("%9.2f", surveyedItem.getCube()));
surveyItemWrapper.getShipping().setText(String.format("%d", surveyedItem.getShipping()));
surveyItemWrapper.getNotShipping().setText(String.format("%d", surveyedItem.getNotShipping()));
} private class SurveyItemWrapper { private TextView description;
private TextView cube; private TextView shipping;
private TextView notShipping; private View view;
public SurveyItemWrapper(View view) { this.view = view;
} public TextView getDescription() {
if (description == null) { description = (TextView) view.findViewById(R.id.SurveyItemDescription); } return description;
} public TextView getCube() { if (cube == null) {
cube = (TextView) view.findViewById(R.id.SurveyItemCube);
} return cube; } public TextView getShipping() {
if (shipping == null) { shipping = (TextView) view.findViewById(R.id.SurveyItemShipping);
} return shipping;} public TextView getNotShipping() {
if (notShipping == null) { notShipping = (TextView) view.findViewById(R.id.SurveyItemNotShipping); } return notShipping; } }

View 2 Replies View Related

Android :: ListView ArrayAdapter Data Updates Best Practices

Aug 26, 2010

I have an activity with multiple list views that are continuously receiving new values form a socket thread, another thread parses the data and updates the array adapters, then the ui thread calls notifyDataSetChanged() to cause the list to refresh.

My issue is that im refreshing all the list a couple of time a second, this causes the UI to be very laggy when some animations need to happen.

I was wondering what the best way is to update multiple lists with multiple value changes every second?

View 3 Replies View Related

Android :: Best Practices For Creating Multiple App Versions From A Single Codebase?

May 4, 2010

Are there any viable approaches for creating multiple .APKs out of a single codebase? The apps may share the same code, but they could have different manifest files, different resources, or different external libraries (for example in an app with both free and paid versions, the free version could have a library for display ads). Ideally, this would be a single Eclipse project, with a way to specify which app to build/debug, and possibly a command line way to batch build everything.

View 16 Replies View Related

Android :: Background Practices (Interact With Network And Check Location)

Aug 27, 2010

My application needs to perform some activities in background (like interacting with the network and check the location and some other stuff), having or not the main activity visible. Which is the best way to achieve this? Should I write a service for each kind of job? Or just one service that performs everything? I am aware that I will need to launch threads / asynctasks in any case because the service runs on the same thread of the UI, but maybe having several services is a more clear and readable structure.

View 7 Replies View Related

Android :: Practices To Design Webservices For Mobile (particularly Droid) Apps?

Oct 13, 2010

What are the best practices to design webservices for mobile (particularly Android) apps?
Personally I'm focused on using JSON (and not XML) and I try to make it the less verbose I can. But I'm probably missing a lot of things.

View 4 Replies View Related

Android :: Good Practices For Organizing Files On Storage SD Card?

Jan 7, 2010

Are there any guidelines where should my app store resource files downloaded from Internet?

View 3 Replies View Related

Android :: Best Practices For Targetting A Wide Range Of Devices And Screen Sizes

Aug 31, 2010

As you know android today is many versions many constructors, many screen sizes,...

it's quite difficult for developers today to write programs that targets a big part of devices.

What would be THE developer must-know practices for this ?

View 4 Replies View Related

Android :: Best Practices For Handling Passwords / Keys In Open Source Projects?

Sep 9, 2009

In my app, I'm taking advantage of a web-based API (the Sunlight Labs API) that requires an API Key.The project is also open source, hosted on Github. I want to avoid committing my API key into the codebase.I'd be fine with creating some other .xml file of special string values, and git-ignoring that file (while providing a .xml.example file to copy into its place), but I don't know the best way of doing that with the Android SDK.

View 4 Replies View Related

Android :: Practices On Droid To Keep Data Between Activities Deathes / Restarts For Whole App Session?

Jan 9, 2010

We're designing an Android app that has several activities which are working in a wizard like way - user should pass from the activity #1 to activity #5 to get to the final activity (#6).

Since we know an activity can be suddenly terminated by OS on low memory we used Application class as a static storage for keeping the data the user inputs on "wizard" activities and other data our app needs for the whole session.

Unfortunately we've discovered this approach fails - looks like the Application class instance is also can be killed by OS (this was specifically discovered on Android 1.6 versus 1.5). Are our expectations wrong on this approach (we think Application class instance always lives for the whole app session)?

So the question is - what is the best practices on Android to keep data between activities deathes/restarts for the whole application session?

View 2 Replies View Related

Motorola Droid :: Google Navigation Showing Navigation W/o Destination

Nov 3, 2009

Can anyone confirm if Google Navigation can be used to just show your progress/location on a road while driving, without having to have an actual destination input?I know this was shown on a few of Rob's videos as not being possible, but just wanted to confirm if anyone had any further info on it.

View 30 Replies View Related

HTC EVO 4G :: What Is Difference Between Navigation And Sprint Navigation Apps ?

Aug 13, 2010

What is difference between "Navigation" and "Sprint Navigation" apps?Newby to the smart phone, and am still trying to understand this "app" stuff.The "Navigation" app is a blue arrow, and is the one I use for map and voice navigation.The "Sprint Navigation" app seems to do the same thing in a much more belabored manner.Are these both Sprint, or what?Why two similar apps?Is one supposed to do something that the other doesn't. I don't get it.

View 15 Replies View Related

Android :: Best Practices For Developing Bigger Applications On Android

Nov 24, 2010

I've already written some small Android Applications, most of them in one Activity and nearly no data that should be persistent on the device.

Now I'm writing an application that needs more Activities and I'm a bit puzzled about how to organize all this. My app will download some data parse it show it to the user and then show other activities depending on the data and the user interaction. Some of that data could be cached, some of it has to be downloaded every time. Some of that data should not be downloaded freshly at the moment the orientation changes, but it should on the moment the activity is created...

Another thing I'm confused about are things like a httpClient. I now for example create a new httpclient for every activity, the same thing for locationlisteners.

Are there books, a blogs or documentations with patterns, examples and advice on organizing larger apps build on android? Everything I found until now are get startet tutorials leaving me alone after 60 lines of code...

View 2 Replies View Related

Android :: Best Practices Combining List And Non-list Views

Jan 10, 2010

I'm trying to tackle a problem that seemingly many Android developers have, which is how to intersperse lists with non-list data, in one big scrollable pane.The model I have in mind is the screen for an individual app in the Market. You have a big description, a list of a few lazily loaded comments, and then some individual items that do different things, like visit the developer's web page, call them, etc. And then in between them all, are nice section headers.Emulating this approach seems to be extremely hard. I've read enough SO answers and mailing list posts to know not to put a ListView inside of a ScrollView, but I want the same effect without using addHeader() and addFooter() with very complex header and footer views. I've tried using a LinearLayout that I stock with views myself, but I can't get the pleasant click effects that default list items have (the orange background, white for long-click, etc.).

View 2 Replies View Related

Android :: Best GPS Navigation Available?

Mar 25, 2010

So I got my Hero a couple weeks back, and love it.I use the Sprint navigation pretty dang frequently, but it's really not the best. I know it's a phone and not a GPS, but is there anything better out there? I purchased Copilot, which is alright, but there are a LOT of stuff/addresses it can't find even with the updated maps.So just pretending price doesn't matter for now, what's the best possible GPS for my Android?

View 18 Replies View Related

HTC Legend :: IGo My Way Navigation For Android

May 27, 2010

Ive just come accross this app and constantly checking how it works and looking for solutions. So if you want to have as little problems as possible read first, then do stuff.Not so long time ago, iGo released their navigation for Android phones. It is a traditional navigation, in which you don't need data connection for downloading maps - they are already on your microSD card This is 10 times better than Google Navigation. I had tested the google nav yesterday on my way back home - the voice commands about an upcoming turn are said once you have passed that turn.. This means you have to be constantly looking on your phone. And with iGo it's a totally different story. It works just like a proper navigation (like TomTom, Garmin, etc.).So lets begin with the step-by-step manual of how to become a happy user of iGO navigation on your Android phone (this works also for other phones, not just HTC Legend).

1) Download the latest version of iGO for Android to your PC - http://www.fileserve.com/file/dpbJy95

2) How to install the app - from Android Market download "Apps Installer". Connect phone to your PC in "Disk Drive" mode and then unzip the iGOMyWay_8.4.2.139242_JMX.zip file into your phone memory card. Dont put it any different folder, keep it in the main directory. Disconnect phone from PC. On your phone, go to Settings->Applications->Put a tick on the "Unknown sources". This will allow to install apps that are not from andoird market. Open Apps Installer and then instal the iGO app.

3) If you need maps for your location - just look in some torrent sites for 'igo maps'. For example try Pirate Bay - The Pirate Bay - The world's most resilient bittorrent site . It is important that you download the R3 version of maps and not R1, as the R1 are for older iGo software versions.

3.1) Once you have maps downloaded to your pc, once again connect your phone to pc and copy maps .fbl files to igocontentmaps and the .poi files to igocontentpoi.

3.2) From my personal experience, you can run maps on iGO from 3 companies - TeleAtlas, TopMap, Navteq. The coverage of each map provider is different depending on country. There is no "the best map company with 100% coverage everywhere". If you need maps for multiple countries, please check the coverage of each provider and choose the one that fits your needs the best. I personally used all these providers for different countries (Lithuania/Latvia/Estonia) and at first all looked good.... But today some maps just dont seam to work. Have sent a email to iGO support team. Will keep u up to date with this issue.

4) If you need speedcamera warnings - check them here - POIplaza - Free Points of Interests (POI) for iGO, Garmin, Sygic, TomTom and other popular navigation systems. Its the best place to find ANY kind of POI in your region.

4.1)Quick manual how to get speedcam warnings running - connect phone to PC. Copy the speedcam.txt file into igocontentspeedcam There should already be 1 file 'speedcamupdates.spud'. In some manuals it says that you have to delete it, in others - that you don't. I left the update file and everything just works fine. When you have the speedcam.txt file in your phone, disconnect it from PC, turn on iGO, then Settings-> Sound and Warnings-> Tick the 'Speedcams'. Your GPS has to be turned on (and have a fixed signal at least to a few satelites) so that you could see the speedcam option in settings.

5) The previous versions of iGO are out-dated and had a few bugs. I personally could not run TeleAtlas and TopMap maps on my device. But when upgradings to the latest version (v8.4.2.139242) all looks good so far.

6.1) For those, who have a small screen phone. anonym.to - free dereferer service This data.gro file should make iGO work on phones with 240x320 and 320x240 screens. Didn't test it. You use it at your own risk!!!

6.1.1) For users of HTC Wildfire - here is a quick guide for you all! iGO for HTC Wildfire Special thanks to our mate indrek1!

6.2) For those, who have a BIG screen phone (Desire, nexus1, etc.) - you might need to use MOTONAV http://forum.ppcwarez.org/viewtopic.php?p=543174#543174 instead of iGO. Its a special build of iGO, but designed for Motorola phones. Big thanks for this program goes to biggdaniell

View 49 Replies View Related

Android :: Not Getting Navigation App Icon

Jul 27, 2010

Got a replacement Droid Incredible the other day and I've been working on getting it set up like my previous phone, with the exception of random restarts.Anyway, I updated Google Maps and for some reason I'm not getting the Navigation app icon like I used to.

View 3 Replies View Related

Android :: HTC EVO As Navigation Device

Jun 23, 2010

It is my understanding that the EVO has a built-in GPS. I will be going soon to Europe. Can I use it their as a Navigation device (not as a phone, I Know that the phone will not work). If it can be used as a navigation device, can I use the existing app. (Navigator) Where can I get European maps for it. Will 3G work in Europe?

View 10 Replies View Related

Android :: Navigation Software

Apr 30, 2009

Does anyone know if there is a Tom Tom equivelent for the Android platform?

View 31 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved