Re: [android-developers] Reading ROM version through code

2012-04-30 Thread JP
And as we all know... the trees do not grow into the sky ;-) This morning, I tried this with a few Sony Ericsson phones I had at the office. And they do not return anything when I try to get the ro.product.version property. I still get the ro.build.fingerprint, but nothing else. Does anyone

Re: [android-developers] Reading ROM version through code

2012-04-29 Thread JP
I tried using this code: TextView arch = (TextView)findViewById(R.id.arch); TextView name = (TextView)findViewById(R.id.name); TextView version = (TextView)findViewById(R.id.version); TextView roversion = (TextView)findViewById(R.id.roversion); TextView rofingerprint =

Re: [android-developers] Reading ROM version through code

2012-04-29 Thread JP
Hey guys... This code works... although I'm not that keen on it, since it is definitely not part of the jars available. But it works: @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main);

Re: [android-developers] Reading ROM version through code

2012-04-23 Thread JP
Didn't find anything unfortunately. Is this really impossible to do? JP Den tirsdag den 17. april 2012 23.24.22 UTC+2 skrev JP: I just found that code myself... am cloning as I type. Will report what I find. JP Den tirsdag den 17. april 2012 23.19.04 UTC+2 skrev Mark Murphy (a Commons

Re: [android-developers] Reading ROM version through code

2012-04-23 Thread Chris Stratton
On Monday, April 23, 2012 7:54:50 AM UTC-4, JP wrote: Didn't find anything unfortunately. Is this really impossible to do? Open an adb shell, type getprop and look at the result. Some entries which may be of interest: ro.build.fingerprint ro.build.version.* ro.product.version These should

Re: [android-developers] Reading ROM version through code

2012-04-23 Thread Chris Stratton
Update: none of these are stable APIs and you will need to use the call the native function property_get() or invoke the getprop routine to retrieve them. That makes this method off topic for this group. On Monday, April 23, 2012 10:53:25 AM UTC-4, Chris Stratton wrote: On Monday, April 23,

Re: [android-developers] Reading ROM version through code

2012-04-23 Thread Kostya Vasilyev
Or just read /system/build.prop directly from Java. It's off-topic, that's true. OP: you may want to also try asking on xda-developers. -- K 23 апреля 2012 г. 18:58 пользователь Chris Stratton cs07...@gmail.comнаписал: Update: none of these are stable APIs and you will need to use the call

[android-developers] Reading ROM version through code

2012-04-17 Thread JP
Hi guys, I am trying to read the ROM version, and displaying it in my app. I am NOT talking about the information available from the android.os.Build.*; namespace. This gives me the Android OS version numbers. I am looking for a way to display the ROM version. Most commonly this is the software

Re: [android-developers] Reading ROM version through code

2012-04-17 Thread TreKing
On Tue, Apr 17, 2012 at 9:45 AM, JP jetp...@yahoo.com wrote: I just can't find anywhere this information has been documented?!? http://developer.android.com/reference/android/telephony/TelephonyManager.html#getDeviceSoftwareVersion() ?

Re: [android-developers] Reading ROM version through code

2012-04-17 Thread JP
I looked at that also, and this doesn't give me what I want. For my HTC Legend phone, this returns 01. I am expecting: 3.15.405.3 or 3.15.405.3 CL291292 release-keys, which is what it says under Software number and Build number in my Settings/About Phone/Software Information activity. Thanks

Re: [android-developers] Reading ROM version through code

2012-04-17 Thread Justin Anderson
Maybe this? http://developer.android.com/reference/android/os/Build.VERSION.html Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Apr 17, 2012 at 3:11 PM, JP jetp...@yahoo.com wrote: I looked at that also, and this doesn't give me what I want. For

Re: [android-developers] Reading ROM version through code

2012-04-17 Thread Mark Murphy
On Tue, Apr 17, 2012 at 5:11 PM, JP jetp...@yahoo.com wrote: I looked at that also, and this doesn't give me what I want. For my HTC Legend phone, this returns 01. I am expecting: 3.15.405.3 or 3.15.405.3 CL291292 release-keys, which is what it says under Software number and Build number in

Re: [android-developers] Reading ROM version through code

2012-04-17 Thread JP
I just found that code myself... am cloning as I type. Will report what I find. JP Den tirsdag den 17. april 2012 23.19.04 UTC+2 skrev Mark Murphy (a Commons Guy): On Tue, Apr 17, 2012 at 5:11 PM, JP jetp...@yahoo.com wrote: I looked at that also, and this doesn't give me what I want. For

Re: [android-developers] Reading ROM version through code

2012-04-17 Thread Justin Anderson
Or this... http://developer.android.com/reference/android/os/Build.html* * Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Apr 17, 2012 at 3:19 PM, Mark Murphy mmur...@commonsware.comwrote: On Tue, Apr 17, 2012 at 5:11 PM, JP jetp...@yahoo.com

Re: [android-developers] Reading ROM version through code

2012-04-17 Thread JP
No, as I stated to begin with this isn't what I am looking for. This returns 2.2 in my case, and this is the Android version, not the ROM version. .JP Den tirsdag den 17. april 2012 23.18.25 UTC+2 skrev MagouyaWare: Maybe this?