Android Question Read Manufacturer ,Model, Product

Ricardo Bunschoten

Active Member
Licensed User
Longtime User
Hello all,

I have a question.

I have a excisting app that downloads and installs software

But i want to protect it that it can only be installed on a certain manufacturer or model or product.

I saw in some code that extra modules like httpuitls is used in a new tab and is beening called in the main code.

So what i want to know is

is it possible to read the manufacturer , model or product code or all three and check if the string of these options is correspondending with the device it's installed on

Like if i want the app only to be installed on a samsung s5 installed it in a s4 it must give a message box this can not be installed on this device because the Manufacturer , model or product code is not correspondening with the codes in the app

If it's the right manufacturer , model or product code then it will be installed.

is this possible in B4a and can this be addes as a new tab/module like the httpultils module ?

Thnx in advance
 

Ricardo Bunschoten

Active Member
Licensed User
Longtime User
Thnx.

But now second i need some code to cpmpare

I am still a bit newbie in this language

I think i need something like if string manufacturer string is equal to manufacturer string needed then continue otherwise msgbox("message here")

Not sure how to do that

Maybe somehting like this i guess ?

Dim Item asString
Item = ValueIf Item.Contains("*") then
.
 
Last edited:
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0
Top