Have an amazing solution built in RAD Studio? Let us know. Looking for discounts? Visit our Special Offers page!
C++

ANDROID_IDと、identifierForVendorを取得[JAPAN]

Author: h.mohri

 


 

毛利です。

C++Builderを使用してANDROID_IDとidentifierForVendor(IDFV)を取得を試してみました。

ID Description
ANDROID_ID ANDROID_IDは、Android端末の初期化時にランダムに生成された文字列です。
identifierForVendor(IDFV) identifierForVendor(IDFV)は、iOS UDIDの代替としてiOS 6.0から使用できるIDです。 異なるベンダ(開発者)を持つアプリケーションでは、異なるIDが返されます。複数のアプリケーション間で同じ値を得ることができます。異なる端末で異なる値が返されることは保証されません。
uGetUuid.hpp
uGetUuid.cpp

使い方

In the button click event, return ID to Edit1->Text.

Unit1.cpp

Delphiコードは、下記URL.

https://community.embarcadero.com/answers/device-information

RAD Studio 13.2 Florence Now Available! Kai 1.1.1 Now Available! What's Coming in RAD Studio 13.2 Florence

Reduce development time and get to market faster with RAD Studio, Delphi, or C++Builder.
Design. Code. Compile. Deploy.

Start Free Trial   Upgrade Today

   Free Delphi Community Edition   Free C++Builder Community Edition

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

IN THE ARTICLES