Android : How To Maintain Two Different Versions Of Same App?
Jan 8, 2010
The requirement is totally simple: I want to have a lite and pro version of an app. There is a little bit of difference between those two apps, but they are 99% identically. Unfortunately it seems that the best choice is to really treat this as two projects that are one and the same and copy over the source code and assets from one to the other. The Android Manifest file must be different, because the Android Market - for some reason - makes the implementation's package name the ID. Working around this ID issue the straight forward approach would be to have a third project with the common code that exports its code, libraries and in a best case scenario also the ressources to the other two objects. Unfortunately this doesn't work. Only the actual Android projects generate the R.class and so the common project would need to be dependent on it..
View 6 Replies
Sep 9, 2010
I would like to know if its possible to prevent my application from looking different every time I run it on a different android phone. For example, on stock 2.2, my seek bar (with default values and theme) has an orange color for the selected portion, whereas on a Samsung Galaxy S (with 2.1), it is green. Also the tab background is grey in stock 2.2, but blue in Galaxy S. On a similar note, my rating bar changes size too. I do not implement multiple screen resolutions and all my drawables are located in the "drawables" folder under "res". I donot specify a minimum sdk requirement.
View 5 Replies
View Related
Nov 22, 2010
I am new to android programming. In my application, i want to implement automatic scrolling. So, i used scroller for this purpose.It is performing scrolling but not maintaining constant speed till the end of scrolling the text. Can anyone help me out of this problem.
View 2 Replies
View Related
Apr 17, 2010
According to the instructions found here, to make your app state which screen sizes you can support, you'll need to compile your app against Android 1.6.
View 1 Replies
View Related
Aug 22, 2010
During my game loop I am constantly loading images using BitmapFactory.decodeResource(getResources(), R.drawable.objectx); Most of the time I'm calling images that have already been decoded earlier. Am I slowing down execution by decoding the resource every time? Is it better to store every image into a Map (or Dictionary) at the beginning of the program? If so, how do you get the resource IDs for all images in the drawable folder?
View 1 Replies
View Related
Oct 6, 2010
My ListActivity is bound to an ArrayAdapter where I have overriden the getView() method. If I change the visibility of a widget in that method or modify the view's background color, those changes somehow get lost once that modified list item returns after being scrolled off the screen. In fact, some other view in the list is picking up the changes. How do I get the modified view to look the same when it's redisplayed after scrolling?
View 1 Replies
View Related
Nov 21, 2010
I have two spinners in an activity, A and B. Each spinner uses an arrayAdapter linked to one or more string-arrays from an XML file. I need multiple because B's values are populated depending on what is selected in A.
View 1 Replies
View Related
Nov 9, 2010
This usually happens when the user hits "Home", does something else, then eventually wanders back into the app - it attempts to go back to where it was before, but the application Context has mysteriously lost all its previously-saved state information (in my case, a few integers and a few Strings). I know this is a very vague question, but are there any cases (other than the user using "back" to back completely out of the application) where the application Context gets completely destroyed even though the application is not terminated? Is there a better way to maintain persistent state information?
View 1 Replies
View Related
Aug 25, 2010
Is there an app that I can use to maintain the balances of multiple credit cards? The app does not need to be able to directly access the credit card's balances online (straight thru online banking), but I must be able to add transactions and update it manually. I also should be able to manage multiple cards without the app adding the balances of all cards into a grand total (balance).
View 6 Replies
View Related
Apr 27, 2010
How can I maintain the position of my ListView in my activity when I go to another activity (by launching another intent) and then come back (press the back button)?
View 2 Replies
View Related
Jul 2, 2010
Well, not sure if this was already somewhere else, but I looked and couldn't find it, so I'm gonna ask here...
What are the required APKs to maintain running the Android OS? I have root access on my Eris, and was tinkering around with a bit with removing some of the preinstalled APKs such as YouTube and stuff like that, just wondering how much I can delete and work to create my own system to a certain extent. Anyone that can let me know what I need would be nice.
View 4 Replies
View Related
May 8, 2010
I have built an app for the Motorola Droid which should automatically update a server with the phone's location. After the user performs a particular task on the main activity screen, an alarm is set to update the user's location periodically, using a service. The alarm is explicitly stopped when the user completes another task. Thing is, I have set up a location manager within the main activity's onCreate() method which is supposed to place the first acquired lat/long into two textview fields. Even though the manifest is set up for acquiring coarse and fine coords and I'm using requestLocationUpdates (String provider, long minTime, float minDistance, LocationListener listener), with minTime and minDistance set to zero, I'm not seeing the coords coming up on the screen.
With that, I'm not recording any locations on the server. When I seed the textviews with sample coords, they are being recorded fine on the server. I am not at a computer that can run the IDE, so don't currently have the code, but am desperate for some help on this. One other thing is that the main activity screen calls a photography app before the user manually clicks "send data". I'm suspicious that I may need to override the main activity's onResume() method to do this location acquisition.
View 2 Replies
View Related
Jun 15, 2010
While developing a sample android application I have constructed two activities
1)Activity 1
2)Activity 2
Now Activity 2 is the foreground activity whereas Activity 1 is the background one. Now user presses Home key. The application(i.e. both the activities) disappear. Now is we relaunch the application we see Activity 1 as the foreground activity. My question is:
1)Does the platform maintain any history entry when pressed home key?
2)How do we take the user to the last launch activity on relaunching the application?
View 2 Replies
View Related
Apr 8, 2010
I am working on my App. in between i pressed the Home button on the device. my app will go to the background tasks. After that i long press the home button it will show my app as a persistent state. i.e where and what i had done in my app. But i click my app in the directory window it restarts my app. i want to do if my app is in the background tasks it will wake up else it will start. how to achieve that?
View 1 Replies
View Related
Aug 29, 2010
I'm developing one of my first Android apps. I come from an ASP.NET world where it's trivial to have separate Web.config files for dev, test, and production. Does anyone have a good, automated way of doing this for Android via Eclipse?
View 1 Replies
View Related
Jun 28, 2009
If you derive a class from ArrayAdapter for the purpose of customizing the views of listview items, and you vary the background color of those items by doing something like this in getView()...
View 2 Replies
View Related
Jun 26, 2010
I'm interested in knowing how other people maintain good battery life with their evo. I get about 5 hours a day with moderate usage. I don't do much but put the screen brightness in the middle and occasionally going into "running applications" and closing the ones I don't need or use (most of them being the trashy default stuff); Turn off syncing when not needed; turn off GPS and other seetings that are not continuously needed to be left on.
I also configured my send and receive settings for each mail account. I know there is no official way to close out an app when your done using it, I usually just press the home button when i need to exit an app. Does everyone else do the same? Or is there a better technique to officially close apps and stop them running when you are done using them? Without DLing a task killer app cause I don't want one.? Feel Free to share your ideas or techniques.
View 8 Replies
View Related
Jul 18, 2010
I notice that after awhile the speed of the phone slows down quite a bit when I haven't rebooted the phone. Is there any way to maintain the fast speeds without having to occasionally reboot? Not using any task killers either btw
View 7 Replies
View Related
Nov 29, 2009
My Christmas gift this year... the HTC Hero. Quite happy so far. However because neither my hubby (he has a Palm Pre) and I have ever had an android before, I have a few questions that he can't seem to answer. So please excuse the simiplicity of my questions
1)) What is the best way to maintain good battery life? Is there a specific % I should never let the batter fall below?
2)) Besides from being able to pull ringtones from my MP3 files on my PC, are there any good websites that offer free ringtones for android devices?
3)) My Hero came packed with a whole bunch of apps that I will never use. Like NFL Mobile, Nascar, Amazon and YouTube apps. Is it okay to delete these from my phone entirely? Will doing so free up memory for bigger and/or better apps?
4)) Are there any types files or apps that I should not put on my phone?
View 3 Replies
View Related
Nov 9, 2010
I have seen this happen many times on my Phone. I have folders on my Homescreen with Shortcuts/Apps in them. Inside a given folder, I have a SPECIFIC ORDER to my Shortcuts/Apps. For whatever reason, my phone will decide to mess up that order that I created. Various things seem to trigger my phone to re-arrange the Icons in my folders. For example, unplugging my phone from my computer after disk use triggers it.
View 4 Replies
View Related
May 6, 2010
This has probably already been discussed, but I couldn't find anything. Do we need to periodically drain the battery completely to maintain it, or is it alright to charge it every chance I get?
View 6 Replies
View Related
Jul 16, 2010
I have a DIR-655 and just got my Droid X. It will not maintain a connection to it. I tried all the obvious things... Forced it to G only, tried using the guest zone with different encryption.
View 32 Replies
View Related
Oct 5, 2010
I have created one custom view that contains the horizontalscrollview. Now when i changes the orientation its scroll state change to 0 every time. I got the previous scroll state by using onSaveInstanceState(Bundle savedInstanceState) and onRestoreInstanceState(Bundle savedInstanceState) . in onRestoreInstanceState i am using following method to get reposition the scroll, hoz_scroll.scrollTo(hoz_x_pos, hoz_scroll.getScrollY());
View 2 Replies
View Related
Oct 3, 2009
How can I publish two versions of my app without changing the package name, so that users may upgrade to either version, one for Anroid 1.5 and one for Android 1.6 ? I want to offer new features requiring Android 1.6 as soon as possible, but not all users will have upgraded to Android 1.6.
View 2 Replies
View Related
Jan 26, 2010
I can run my application on 1.5, 1.6 and 2.0 emulator and on a 1.5 device without any problems. But some of my users are reporting force close and strange menu entries (see the attachment) using 1.6 and higher version devices.
This screen should look like this:
http://www.taypo.com/blog/WindowsLiveWriter/TurkceKlavye0.7_6F1/settings_0.7_2.png
And the code that generates this screen is:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory android:title="@string/general_settings">
<CheckBoxPreference android:title="@string/haptic_feedback" android:defaultValue="true"android:summary="@string/haptic_feedback_summary" android:key="vibrate"/>
<CheckBoxPreference android:title="@string/sound_feedback" android:defaultValue="false" android:summary="@string/sound_feedback_summary" android:key="sound" />
<CheckBoxPreference android:title="@string/auto_caps" android:defaultValue="true"
android:summary="@string/auto_caps_summary" android:key="auto_caps" />
</PreferenceCategory>
<PreferenceCategory android:title="@string/layout_settings">
<ListPreference android:title="@string/keyboard_layout" android:defaultValue="TRQ" android:key="kbd_layout" android:entries="@array/layout_names" android:entryValues="@array/layout_values" />
</PreferenceCategory>
</PreferenceScreen>
View 1 Replies
View Related
Sep 3, 2009
I want to use the same eclipse project to maintain only one source code (or two projects that refer to a generic project). My problem is that the names of the package have to be different on the market (eg: my.android.app.lite and my.android.app.pro). If the package names are differents, the generated java ressource files are differents (eg: my.android.app.lite.R.java and my.android.app.pro.R.java). So, the source files must point to differents R files according to the version (pro or lite) and I have to change all the import...
View 6 Replies
View Related
Nov 17, 2009
We are upgrading our application to add 2.0 support. I have read http://developer.android.com/guide/appendix/api-levels.html and the older blog post http://android-developers.blogspot.com/2009/04/backward-compatibility.... I want to avoid using reflection if possible. I have found that if I set my minSdkVersion="3" in the application manifest but in my build path in eclipse point to the Adroid 2.0 jar file I can compile with direct calls to 2.0 code (with the relevant code to ensure they are not invoked on <2.0 devices). My question is will people with pre 2.0 devices be able to see the application in the market place in this case? What are other people using for multi-targeting different API levels with the same package.
View 7 Replies
View Related
Feb 19, 2009
I am planning to have two versions of the same app available in the market - let's say "App-Lite" and "App-Advanced". They both almost the same core functionality, but App-Advanced has a bit more specific features, than the App-Lite has. Now I am thinking what would be the strategy of deploying those two apps in the market. The simple way is to provide different name space in AndroidManifest.xml for both apps, so "App-Lite" and "App-Advanced" would show up as two completely different applications and could be installed parallel on the same device. But I'm also thinking about another way of installing the App-Advanced version - like an upgrade to the App-Lite which might be already installed. To do this, I can just set the same name space for both app in AndroidManifest.xml, so after installing one app would replace the other one - I can do this from adb command line, but I'm not sure how android market would behave in this case. Will it show them as two different apps, will it show them as two different versions of the same app with the ability to upgrade from one version to another, or it just will not allow to publish two apps with the same name space? Is this scenario doable with Android Market?
View 3 Replies
View Related
Aug 3, 2009
Whats the best way to deploy several customized versions of a Android application? Currently I have a script to exchange the resource folder for getting a customized version of my app. It works great, but all custom versions still have the same package name in the AndroidManifest.xml. Therefore it is not possible to install two customized versions of the app at the same time.
View 3 Replies
View Related
Dec 7, 2009
Is there a basic guide to the main differences between versions of the Android OS?I am using a 1.6 Magic, am buying a 1.5 T-Mobile Pulse for my son and looking at a 1.6 Hero for myself early next year. I wanted to see what the differences were between 1.5 -> 1.6 -> 2.0.I assume that I have to wait for network operators to provide updated operating systems? Can the Pulse be upgraded at all? Is the Hero getting/got version 2.0?
View 2 Replies
View Related