Suzzane Pinto
,
Ranch Hand
hi ,
i have written this simple code to get phone number programaticly
it doesnt give any output...
any idea?
Tim Moores
,
Saloon Keeper
staff
Have you verified that the code is being run?
Pramod P Deore
,
Ranch Hand
Did you had set permission in manifest as permission READ_PHONE_STATE
Suzzane Pinto
,
Ranch Hand
hi,
yes,i hav given permission in manifest.
still no output
Suzzane Pinto
,
Ranch Hand
and is it possible to get the andriod version,model of phone and network from my app code??
if yes how?
Tim Moores
,
Saloon Keeper
staff
Tim Moores wrote:Have you verified that the code is being run?
Suzzane Pinto
,
Ranch Hand
i tried to run but no output....many say dat it is running while some say its not sure
Suzzane Pinto
,
Ranch Hand
and is it possible to get the andriod version,model of phone and network from my app code??
if yes how?
Tim Moores
,
Saloon Keeper
staff
and is it possible to get the andriod version,model of phone and network from my app code?
Check android.os.Build.VERSION, android.os.Build.MODEL, android.os.Build.MANUFACTURER and android.net.ConnectivityManager.
Tim Moores
,
Saloon Keeper
staff
Your first step should be to verify positively that the code runs, for example by writing something to the Log.
I like you because you always keep good, crunchy cereal in your pantry. This tiny ad agrees:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com