• advertisement_alt
  • advertisement_alt
  • advertisement_alt

Search the Community

Showing results for tags 'dispositivo android'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Windev Desktop, Mobile, Web
    • Windev Desktop
    • Windev Mobile
    • Webdev
    • Bugs
  • Banco de Dados
    • HFSQL
    • PostgreSQL
    • MySQL, MariaDB, Outros
  • Vendendo Seu Peixe
    • Hire a Professional to solve your Demand!
    • Cursos
    • Aplicativos
  • Tips and Tricks
    • Tips and Tricks
    • Fivewin / xHb / Harbor migration to Windev

Categories

  • Files

Calendars

  • Community Calendar

Categories

  • Articles

Found 1 result

  1. Dica de Luiz Antonio (zap PCSOFT BRASIL) obter Marca, modelo e outras informações do aparelho import android.app.Activity; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.content.SharedPreferences.Editor; import android.os.*; import android.os.Bundle; import android.telephony.TelephonyManager; import android.util.Log; import android.widget.Toast; import android.provider.Settings.Secure; public static String getDeviceName() { String serial = android.os.Build.SERIAL; return (serial); } //EM JAVA !!! // NÃO USEI PRO SERIAL MAS FUNCIONA PRO MODELO public static String getDeviceName() { String manufacturer = android.os.Build.MANUFACTURER; String model = android.os.Build.MODEL; String brand = android.os.Build.BRAND; String product = android.os.Build.PRODUCT; String board = android.os.Build.BOARD; String bootloader = android.os.Build.BOOTLOADER; String cpu_abi = android.os.Build.CPU_ABI; String cpu_abi2 = android.os.Build.CPU_ABI2; String device = android.os.Build.DEVICE; String display = android.os.Build.DISPLAY; String fingerprint = android.os.Build.FINGERPRINT; String hardware = android.os.Build.HARDWARE; String host = android.os.Build.HOST; String id = android.os.Build.ID; String radio = android.os.Build.RADIO; String serial = android.os.Build.SERIAL; String tags = android.os.Build.TAGS; String type = android.os.Build.TYPE; String user = android.os.Build.USER; return (model); if (model.startsWith(manufacturer)) { return (model); } else { String MarcaModeloCelular="manufacturer: "+ (manufacturer) + "; model: "+ (model) + "; brand: "+ (brand) + "; product: "+ (product) + "; board:"+ (board) + "; bootloader: "+ (bootloader) + "; cpu_abi: "+ (cpu_abi) + "; cpu_abi2: "+ (cpu_abi2) + "; device: "+ (device) + "; display: "+ (display) + "; fingerprint: "+ (fingerprint) + "; hardware: "+ (hardware) + "; host: "+ (host) + "; id: "+ (id) + "; radio: "+ (radio) + "; serial: "+ (serial) + "; tags: "+ (tags) + "; type: "+ (type) + "; user: "+ (user); MarcaModeloCelular=MarcaModeloCelular.toUpperCase(); return MarcaModeloCelular; }