# How to detect device information

**URL:** <https://community.thunkable.com/t/how-to-detect-device-information/2764093>\
**Category:** Questions about Thunkable X\
**Created:** [December 30, 2023, 6:01pm UTC](https://community.thunkable.com/t/how-to-detect-device-information/2764093 "2023-12-30T18:01:25Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![lorenzofaverijfd3b](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/lorenzofaverijfd3b/32/168865_2.png) [@lorenzofaverijfd3b](https://community.thunkable.com/u/lorenzofaverijfd3b)\
**Post date:** [December 30, 2023, 6:01pm UTC](https://community.thunkable.com/t/how-to-detect-device-information/2764093/1 "2023-12-30T18:01:25Z")

</div>

Hi, I’m trying to understand how to get Country Code Of Device… and other info for example, android version, device time zone… etc…  
Thanks for the attention.  
I apologize in advance if I didn’t post in the correct channel.

---

<div class="post-metadata">

**Author:** ![emlee703](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/emlee703/32/165400_2.png) [@emlee703](https://community.thunkable.com/u/emlee703)\
**Post date:** [December 30, 2023, 6:06pm UTC](https://community.thunkable.com/t/how-to-detect-device-information/2764093/2 "2023-12-30T18:06:30Z")

</div>

**You may want to post on the Weekdays, since the people that are good at helping are online during the weekdays, not weekends. (Weekends include holidays).**

---

<div class="post-metadata">

**Author:** ![emlee703](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/emlee703/32/165400_2.png) [@emlee703](https://community.thunkable.com/u/emlee703)\
**Post date:** [December 30, 2023, 6:08pm UTC](https://community.thunkable.com/t/how-to-detect-device-information/2764093/3 "2023-12-30T18:08:04Z")

</div>

**Please read through the entire post before responding**

Hi, @lorenzofaverijfd3b Welcome to the Community!

Please check out these links on how to post in the future: [How to ask Great Questions v2.0](https://community.thunkable.com/t/how-to-ask-great-questions-v2-0/2689983) + [Community Guidelines](https://community.thunkable.com/t/community-guidelines/78)

To answer your question, try using these blocks ⬇

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/4/34abefb534a9055278b71c7c6c89e83178926dff.png)

You can also try using the Time and Date inputs ⬇

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/a/6afdca1b96fd46c089f76e3ff75c431d18f4f5c0.png)  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/1/019d98ee277d57c283bdb6f4ac7f86adf620a762.png)  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/4/a4efb74c0f5e99ae8cd424ab855ac56be72cc54e.png)

---

<div class="post-metadata">

**Author:** ![lorenzofaverijfd3b](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/lorenzofaverijfd3b/32/168865_2.png) [@lorenzofaverijfd3b](https://community.thunkable.com/u/lorenzofaverijfd3b)\
**Post date:** [January 2, 2024, 7:15pm UTC](https://community.thunkable.com/t/how-to-detect-device-information/2764093/4 "2024-01-02T19:15:11Z")

</div>

Hi, you’re right, I’ll keep that in mind.  
sorry, 🙂

---

<div class="post-metadata">

**Author:** ![lorenzofaverijfd3b](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/lorenzofaverijfd3b/32/168865_2.png) [@lorenzofaverijfd3b](https://community.thunkable.com/u/lorenzofaverijfd3b)\
**Post date:** [January 2, 2024, 7:20pm UTC](https://community.thunkable.com/t/how-to-detect-device-information/2764093/5 "2024-01-02T19:20:20Z")

</div>

ok, I found this section and used it. I would like to know in which country and region the device is set. to be able to set the correct translation of the app.  
I also searched, but unlike other platforms, similar (BUT NOT THE SAME TO THUNKABLE), it doesn’t seem to support the function I was looking for. Or rather I couldn’t find it.  
Thanks for your attention anyway. 🙂

---

<div class="post-metadata">

**Author:** ![afnan.fozail4698](https://avatars.discourse-cdn.com/v4/letter/a/41988e/32.png) [@afnan.fozail4698](https://community.thunkable.com/u/afnan.fozail4698)\
**Post date:** [January 2, 2024, 8:32pm UTC](https://community.thunkable.com/t/how-to-detect-device-information/2764093/6 "2024-01-02T20:32:17Z")

</div>

I don’t really know, but I have an idea: maybe what we can do is to show a screen showing countries of the world in buttons. It’s like a please select your country screen, showing country options like Afghanistan, Albania, Algeria, Andorra, Angola, Antigua and Barbuda, etc. Then with the selected country option, you can use the correct translation option. E.g. if the user selects the USA then you can use the correct translation for the United States (i.e. American English).

> **[List of sovereign states](https://en.wikipedia.org/wiki/List_of_sovereign_states)**
>
> The following is a list providing an overview of sovereign states around the world with information on their status and recognition of their sovereignty.
> The 205 listed states can be divided into three categories based on membership within the United Nations System: 193 UN member states, 2 UN General Assembly non-member observer states, and 10 other states. The sovereignty dispute column indicates states having undisputed sovereignty (188 states, of which there are 187 UN member states and...

If that’s not what you want, please tell me.

---

<div class="post-metadata">

**Author:** ![emlee703](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/emlee703/32/165400_2.png) [@emlee703](https://community.thunkable.com/u/emlee703)\
**Post date:** [January 2, 2024, 9:28pm UTC](https://community.thunkable.com/t/how-to-detect-device-information/2764093/7 "2024-01-02T21:28:00Z")

</div>

@lorenzofaverijfd3b, try using the location tab? I’m not in front of a computer right now, so I’m not sure if there are blocks that can see location, though I think there are some, since I know some Thunkable Apps, use the devices location.

You may need a Google Map API to track a device location.

Also look at this topic as a reference; [Get Current Location with Location Sensor](https://community.thunkable.com/t/get-current-location-with-location-sensor/1005293)

---

<div class="post-metadata">

**Author:** ![emlee703](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/emlee703/32/165400_2.png) [@emlee703](https://community.thunkable.com/u/emlee703)\
**Post date:** [January 3, 2024, 3:47pm UTC](https://community.thunkable.com/t/how-to-detect-device-information/2764093/8 "2024-01-03T15:47:37Z")

</div>

@lorenzofaverijfd3b, try using these blocks! (You will need a google map API) ⬇  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/5/254e307e234dcb4058329dcda91acb113bbdc17c.png)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/1/715eee87c3c2ff8f822f3e8ee3894a65685f5a6a.png)

Also look here:

> [@emlee703](#):
>
> @lorenzofaverijfd3b, try using the location tab? I’m not in front of a computer right now, so I’m not sure if there are blocks that can see location, though I think there are some, since I know some Thunkable Apps, use the devices location.
> 
> You may need a Google Map API to track a device location.
> 
> Also look at this topic as a reference; [Get Current Location with Location Sensor](https://community.thunkable.com/t/get-current-location-with-location-sensor/1005293)

---

<div class="post-metadata">

**Author:** ![afnan.fozail4698](https://avatars.discourse-cdn.com/v4/letter/a/41988e/32.png) [@afnan.fozail4698](https://community.thunkable.com/u/afnan.fozail4698)\
**Post date:** [January 3, 2024, 6:23pm UTC](https://community.thunkable.com/t/how-to-detect-device-information/2764093/9 "2024-01-03T18:23:52Z")

</div>

@emlee703  
So how do I get the country someone’s in from the Google Map API?  
Or maybe that second picture means I should use the “language” section in the last block of the picture you posted. Because it shows the English accent that I can use for a translator.

---

<div class="post-metadata">

**Author:** ![emlee703](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/emlee703/32/165400_2.png) [@emlee703](https://community.thunkable.com/u/emlee703)\
**Post date:** [January 3, 2024, 6:53pm UTC](https://community.thunkable.com/t/how-to-detect-device-information/2764093/10 "2024-01-03T18:53:06Z")

</div>

I don’t have a Google Map API, but I would assume that the API would take the location, and use the coordinates to figure out what country the user is in, and then you can use blocks to set the language, to where they are…

I assume this. Remember, I don’t have a Google Map API key. Try to do some more research to find out.

---

<div class="post-metadata">

**Author:** ![lorenzofaverijfd3b](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/lorenzofaverijfd3b/32/168865_2.png) [@lorenzofaverijfd3b](https://community.thunkable.com/u/lorenzofaverijfd3b)\
**Post date:** [January 4, 2024, 8:33pm UTC](https://community.thunkable.com/t/how-to-detect-device-information/2764093/11 "2024-01-04T20:33:09Z")

</div>

Thank you all for your help, some clarifications.

- the last block posted in the image above by @emlee703, according to the documentation says: “An optional parameter that specifies the preferred language for the results, ensuring that place names, descriptions, and other information are presented in the user’s preferred language. See here for a list of supported languages:”
- at the moment the best solution is to ask the user, because even if I knew the location of the device, I wouldn’t really know the language installed on the device. Let me explain with an example. I live in Italy and consequently I set my device to “IT”, now if I went to Japan and wanted to install an app with geolocation to automatically set the language, I would go crazy just figuring out how to change the settings.  
I’ll try to point it out as a feature to add.

---

<div class="post-metadata">

**Author:** ![emlee703](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/emlee703/32/165400_2.png) [@emlee703](https://community.thunkable.com/u/emlee703)\
**Post date:** [January 4, 2024, 9:02pm UTC](https://community.thunkable.com/t/how-to-detect-device-information/2764093/12 "2024-01-04T21:02:51Z")

</div>

Good point! Like your idea!

I think however the “Translate” button should be in the language of the country, so if you were in Italy, and it was in English, at least the “Translate” button is in Italian so you can find it.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [April 3, 2024, 9:03pm UTC](https://community.thunkable.com/t/how-to-detect-device-information/2764093/13 "2024-04-03T21:03:46Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
