Android :: Getting Build Number / Version Programmatically
Feb 27, 2009
Any way to get the version/build number programatically? I dug into Settings source code, it indicated that this info could be read from the file /proc/socinfo, but this file doesn't seem to exists on any of the devices I'm working with?! Wondering where else I might be able to get this info.
We are using Hudson to automate our Android build. I need to incorporate the build number into the version string used in our app. Was wondering if anyone had an example of doing that before I (re?)invent that wheel. Obviously I need to replace a string value in one of our config files.
I was wondering if it is possible to have Eclipse automatically increment the build version number inside of the Manifest each time that I either build or run an Android app. Has anyone ever done something like this?
Everyone probably has the exact same Build Number, but than again, maybe a couple don't. So after a search, I was not able to find a thread like this, so here it is. I just received my X10 yesterday and per Sony Support, my X10 has the current OS. So here is my info:
I've experienced two problems with Google Voice that are causing me to get charged minutes I wouldn't usually get charged. If I can't solve them, I'll have to go back to using my Verizon number. First, let me say that I'm using a new Google Voice number that isn't Verizon cell phone number or any other preexisting number. Second, my girlfriend is on my family plan, but she doesn't have GV yet. We're using the 700-minute plan, so we don't have a friends circle.
Problem 1: When I call my girlfriend's Verizon wireless phone using the GV on my Verizon phone, I get charged, and when she calls my GV number on my Verizon Wireless phone from her Verizon wireless phone, she gets charged. We don't cash in on our free in-network calling. I know, this should have been obvious, but it just never occurred to me until after I looked at the bill. I'd be able to work with that, though, and just select "Call without using Google Voice" or whatever when calling her if it weren't for the second problem. When people call my Google Voice number, I get charged when I don't answer. Usually, it's just a one-minute charge, but sometimes it's two or three minutes (don't know why). With anything less than an unlimited plan, minutes count. Not good.
My application needs to compile into different version, from 1.5 to 2.1. The development environment is eclipse. I don't want to have different source code or project for each version. How could I do it?
I just tried to figure out the build.xml from the SDK 1.5. I used "android update project" an an existing project and got a very short build.xml. When I strip out all the comments, this is what's left:
I am writing an app and for one of the features I need the firmware build number.
I know I can get the firmware version(like 4.1.1) with android.os.build but I need the build number of a rom(like "Rom version 1.0") thats stored in build.prop. I know I can parse the whole build.prop file and extract the 1 string of information but is there another way to get is faster and that it doesnt require root to use?
New to smartphones. Example: Just bought Picsay Pro. I see the free version is still on the phone. Can I delete it, or does the Pro version utilize and build on the free one? Another example is Documents to Go. OK to delete free versions after upgrading to pay versions?
I have an XML layout which contains a TableLayout with an unknown number of TableRows... The number of Rows will be established durin runtime, what I do know though is that I want two columns... So I have a couple of questions regarding this :
- is there a way to set the whole TableLayout to have 2 columns ?
- is there a way programmatically to give an id to the (during runtime) created TableRows which will be placed within the TableLayout, so I can reference them later on from other parts of the software ?
I know how to get the API level, android.os.Build.VERSION.SDK_INT, but there are also several revisions of each level release, e.g. for 2.1 there's rev 1 and 2. How do I determine the revision of a build?
The reason i'd like to know this is that I have a workaround for a bug in Android 2.1 (and 2.2), and this workaround will break the moment the corresponding bug is fixed. So right now i'm in the odd position of hoping that the bug won't be fixed (at least not until I can find an answer to above question).
Build date is found on the inside of the back cover. Mine reads "DT10.04.26" I have a Version 2 Not exactly sure what the DT means, but the other numbers mean it was manufactured on 4/26/10. The DT could be the place of manufacturing? Or the line. Is anyone's different? This Poll is to try and figure out when the version 2 ended, and the version 3 began. It is also to figure out when the screen change was. HOW TO FIND YOUR 003 SCREEN TYPE: [Tutorial] How to check your 003 screen type... - PPCGeeks Quote:
As you may know, when you buy an app from the market, an email is sent to you with a "Google order number" (which I believe is 15 digits long), which is specific to this transaction. I was wondering if this number is stored anywhere on your device after you purchase an app, and if it is, is there anything in the API to allow an android app to retrieve this number. If this number cannot be retrieved, is there a similar market transaction code that's retrievable?
My HTC Hero have Build Number of : 1.79.482.3. Is there any way to root this type since I found that all of the way to root here is for the phone with Build Number of 2.73 ?
Here are the complete specification of my phone : Model Number : HTC Hero Firmware version : 1.5 Baseband version : 63.18.55.06JU_6.35.08.29 Kernel version : 2.6.27-8dd6deee; htc-kernel@and18-2 ) Build number : 1.79.482.3 146733 CL#49365 release-keys Software version : www.HIAPK.com 1.2_g3_sense
I have been reading some of these threads and alot of them say i need to be running a 2.7 version or something like that for my "Build" version. I have the 1.5 firmware and i know the 2.1 hasnt been released yet but how do i update the Build and other things like that?
I couldnt root my arc s, version 2.3.4, build 4.0.2.A.0.62 I've tried several methods, including the Batch on windows and the software "unlock root". It's possible to root my device by any other methods or I still have to wait to something come up?
My application is built on 2.2, but it is backwards compatible down to 1.6. I've used reflection for the newer methods. When I try to run it on an emulator in Eclipse, it only lists my 2.2 AVDs. I need to test on 1.6 to ensure compatibility. I've tried building with Android 2.2 and with Google APIs 2.2 with no luck. (what's the difference, anyway?) I have set <uses-sdk android:minSdkVersion="4" targetSDK="8"/> in my manifest. I also tried targetSDK="4".
So, I've just started create my first Android ROM, for my Galaxy Note. I'm now enjoying my break from school, and what could be better then spending it developing? Well, let's start!
I've downloaded two ROMs that a friend of mine has created. He's right now on vacation, so I can't ask him.
My first problem is probably a simple one. But how do I change the "About Phone" section? I understand that I can't change the model number, or the Baseband version. But how do I change the Build number so that it shows my ROM name?
Remember do tell me idiot simple, due to the fact that this in my first ROM.
We have a set of 3-5 android applications that we have developed for an enterprise to integrate with our back-end. How do we create an installer system that upgrades applications automatically. We were thinking of getting version numbers and querying the backend to get current versions and downloading them. How do I get the version number of an application in Android?
I own a BB Playbook tablet for about a year now (bought it during the when it was about 200$ because I needed a 7'', the hardware was specs were nice at the time and the company promised Android app support). Regardless of the sanity of my decision the device saves me about 2 hours per day (I use it mainly to read pdf and build an xls database).
I've converted many apk to bar in order to sideload them to my device (not all of these work). Recently I tried Firefox on my Xperia mobile and was quite pleased with the ABP plugin So I tried to convert the apk but both the apk2bar and the Blackberry Graphical Aid Tool complain that the version number is too long...