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
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
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
Sep 25, 2010
My Ally updated Thursday with no issues. I have observed a noticeable increase in responsiveness. Noticeable! No app issues. I did uninstall some new apps it placed on my phone like Skype. Battery life seems to be as good or better than prior to the update. I'm a light user. A couple of calls per day, some internet (Dolphin HD) and some texting. I recharge it every other day when battery level gets down to about 30%. I use ADW.Launcher, Juice Defender, no app killer, a couple of low overhead widgets, Chomps SMS, Pandora, and not much else other than a few shortcuts. I do have a widget for airplane mode. I turn it on once a day then reboot and turn it back on.
View 8 Replies
View Related
Feb 7, 2010
My nexus one now has multitouch but along with that came unwanted side effects. The device is slower and choppier than ever before. FYI, I used the manual update method using the file directly from google's site.
-screen touch calibration is constantly off
-slower overall performance
-increase latency of loading of pages in browser
-sometimes notification of text messages are delayed until unlocking.
View 14 Replies
View Related
Jun 11, 2010
Post all your feedback here on the latest 2.27.651.6 HTC SW update, pro and cons if any
View 5 Replies
View Related
May 2, 2010
I've put together an update that will remove the haptic feedback on the Eris when you press the dialer keys (it does still make the sounds though). It works great for me but I was wondering if someone else could test and let me know how it works for them. All the credit for the method goes to JsChiSurf at xda-developers who figured out how to do this for the Hero. I just decompiled the HtcDialer apk from the latest Eris 2.1 leak (Leak 4?) and applied JsChiSurf's method to it (adding a return-void to the vibration function). Just load the zip from your recovery image. This does not delete any of your data. However, please, please do a nandroid backup before you use this. This is my first attempt at creating this sort of thing. Comments and criticism welcome.
RemDialerHapFeedback.zip (MultiUpload)
MD5: b9f35b5ea1dda3e5bd30b998269924bf
SHA-1: 2704e06dcb379df49c79c9f9e50f8576572d46cc.........
View 19 Replies
View Related
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.
View 3 Replies
View Related
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
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
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
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
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
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
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
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
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
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
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
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
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
Jan 7, 2010
Are there any guidelines where should my app store resource files downloaded from Internet?
View 3 Replies
View Related
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
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
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
Aug 24, 2010
I have published application and now I'm making update to it. I changed applications Data structure and moved all files under /Android/ data/<package_name>/files/ folder.All files that are in that folder will be automatically removed when application is uninstalled.I want those files to be removed when application is uninstalled but not when it's UPDATED. I don't want users to lose all their data after every update. I don't know how to test it (without publishing new release). So will those files be deleted when user updates my application?
View 5 Replies
View Related
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
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
Mar 5, 2009
This seems like a stupid question, but somehow I couldn't find the answer anywhere ;) How do I read the feedback that my app gets in Market? Shouldn't there be a link somewhere in Developer Console?
View 2 Replies
View Related
Nov 3, 2009
It's common knowledge among people who are afflicted with stuttering that it helps if you're hearing yourself with a little delay while your speak. This is called Delayed Auditory Feedback (DAF) and makes it easier to speak in a slow and deliberate manner. There are even hardware devices sold for this purpose: http://www.casafuturatech.com/ I've tried one of these devices for a few weeks now. It helps, but it's just one more thing to remember in the morning, one more thing to carry around, and it's pretty large. It's also inconvenient when speaking on the phone. I'd love to develop an Android app for DAF, but I'm not sure if it's possible. A DAF has sound input and output, just like a phone. But instead of hearing another person, the sound input is sent to the output, with an amount of delay (somewhere between 0-200 ms). Is that effect possible to achieve with Android? How would you create the delay? Also, would it be possible to create this effect also when using the phone, so that I hear the other person AND myself with delay?
View 2 Replies
View Related