In this application,
you saw the infrastructure for
how Geo-fences work in Android.
You saw how easy it is to set up
Geo-fences, and how you can use
an intent service to handle
the transitions between Geo-fences.
In this case,
we hard coded several locations but
there's no reason why you couldn't put
your Geo-fence data into the cloud and
have your phone dynamically update
the number of Geo-fences that it tracks.
So for example, if you wanted
to have a virtual treasure hunt
with locations that change every day,
you could do so and
have your app update them
whenever it launches.
There's just so
much that you can do with Geo-fencing.
Particularly, now,
that the users carry these powerful
mobile devices with them all the time.
We scratched the surface
of what you can do.
But in doing so,
we've built a powerful scaffolding
that you can use in your future apps.
في هذا التطبيق رأيت البنية الأساسية لـ
لطريقة عمل Geo-fences مع نظام آندرويد.
لقد رأيت سهولة إعداد كائنات Geo-fence،
وطريقة استخدام
خدمات مصممة للتعامل مع
التحويلات بين كائنات Geo-fence.
في هذه الحالة، وضعنا
تعليمات برمجية مضمنة لعدة مواقع
لكن لا يوجد سبب لعدم وضع بيانات
Geo-fence في السحابة
وتحديث هاتفك بشكل تلقائي لعدد
كائنات Geo-fence التي يتتبعها.
لذا إذا أردت مثلاً إنشاء
لعبة صيد الكنوز الافتراضية
مع مواقع تتغير يوميًا،
يمكنك فعل ذلك
وتجعل هاتفك يحدّثها متى
تم تشغيله.
هناك العديد مما يمكنك فعله
مع استخدام تقنية Geo-fence.
تحديدًا الآن،
يمكن للمستخدم حمل أجهزة الهاتف القوية
تلك كلها معه في نفس الوقت.
لقد عرضنا جزءًا بسيطًا
مما يمكنك فعله.
لكن لفعل ذلك،
أنشأنا سقالة قوية يمكنك استخدامها
في المستقبل مع تطبيقاتك.
Neste aplicativo,
você viu a infraestrutura de
como as cercas geográficas funcionanam no Android.
Você viu como é fácil configurar
cercas geográficas e como é possível
usar um intent service para manipular
as transições entre cercas geográficas.
Neste caso,
fixamos em código vários locais,
mas não há nada que impeça você de colocar
os dados da sua cerca geográfica na nuvem
e deixar seu telefone atualizar dinamicamente
o número de cercas geográficas que rastreia.
Por exemplo, se você quisesse
uma caça ao tesouro virtual
com locais que variassem todos os dias,
poderia fazer isso
e deixar seu aplicativo atualizá-los
sempre que fosse iniciado.
Há tanta coisa para
se fazer com cercas geográficas.
Especialmente agora que os usuários
levam esses poderosos
dispositivos móveis para toda parte.
Tivemos um panorama
do que você pode fazer.
Com isso, formamos
uma base forte que você pode
galgar para criar seus aplicativos futuros.
在本应用程序中,
你可看到地理围栏
如何在 Android 中工作的基础结构。
可看到设置地理围栏是多么容易,
如何可以使用意图服务解决地理围栏之间的过渡。
在本例中,我们对一些位置进行硬编码,
但是对于为什么不能将你的地理围栏数据放入云中并使
你的手机动态更新其所追踪的地理围栏数目,没有任何理由。
所以,例如,如果你想玩虚拟的寻宝游戏,
其中附有每天改变的位置,
你就可以这样做,
在你的应用启用时用来更新它们。
你可以使用地理围栏做大量的工作。
特别是现在,
用户始终随身携带强大的移动设备。
我们只是粗浅地讲述了你可以做的事情。
但是在这样做时,
我们建立了一个强大的工具,你可以在未来的应用中使用。