کانال توسعه دهندگان اندروید (Android Developers Area)
41 subscribers
26 links
اولین و بهترین کانال برنامه نویسان و توسعه دهندگان اندروید به دو زبان انگلیسی و فارسی.

Great channel for "Android Developers" (In Persian and English language).
Download Telegram
Reposting again
After a long time and without any access to the channel, now i got the permission again, Thank you for being here🌹🌹👍
پس از یه مدت تقریبا طولانی و دسترسی نداشتن به کانال ، مجددا ارسال پست از نو شروع خواهد شد.

ممنون که تا اینجای کار با ما بودین🌹🌹👍
Introducing Android KTX: Even Sweeter Kotlin Development for Android
معرفی Android KTX

a set of extensions designed to make writing Kotlin code for Android more concise, idiomatic, and pleasant. Android KTX provides a nice API layer on top of both Android framework and Support Library to make writing your Kotlin code more natural.

ب طور خلاصه، مجموعه ایی از extenstion هایی که به جهت کد نویسی با Kotlin بصورت مختصر ، دلپذیر تر و اطلاح تر و بهتر ارائه شده. این اکستنشن به جهت کد نویسی با Kotlin و طبیعی تر بودن آن ارائه شده است...

@Android_developers_area

https://android-developers.googleblog.com/2018/02/introducing-android-ktx-even-sweeter.html
Code Samples Using Android KTX
مثال هایی از نحوه استفاده از Android KTX در مقابل کاتلین

Kotlin:

val uri = Uri.parse(myUriString)

Kotlin with Android KTX:

val uri = myUriString.toUri()

Or:

Kotlin;

sharedPreferences.edit()
.putBoolean(key, value)
.apply()


Kotlin with Android KTX:

sharedPreferences.edit { 
putBoolean(key, value)
}


Now you see that codes are actually somehow ‘optimized’ by using Android KTX and no need for code too much!

همونطور که دیدید، کدها کمتر و بقول آپتیمایز شده‌اند و نیازی به نوشتن اون همه کد دیگه نیست!
جهت استفاده :
Shall we start using it ? :

Add to build.gradle:

repositories {
google()
}

dependencies {
// Android KTX for framework API
implementation 'androidx.core:core-ktx:0.1'
...
}
Firebase; Crash Reporting is being replaced by Crashlytics
کرش ریپورتینگ در بازنشست شدن!

As the default crash reporter for Firebase going forward, Crashlytics is the next evolution of the crash reporting capabilities of our platform. It empowers you to achieve everything you want to with Firebase Crash Reporting, plus much more.

همونطور که میدونین، کرش ریپورتینگ در فایربیس بسیار کاربردی بود و به توسعه دهنده کمک بسیاری میرسوند. اما حالا، جای خود رو به Crashlytics داده و اگر از این ویژگی استفاده میکنید، بهتره سری به پنا فایربیس خود بزنید!
Happy new year to all iranian ...

I wish you, A good year with too many programs, Too many projects and best of luck!


سال جدید رو به همه عزیزان هموطن تبریک میگم، امیدوارم سالی پربرکت و سالی پر از پروژه رو در پیش داشته باشید ❤️😊
Introducing Google Play Instant
معرفی Google Play Instant

With all the great games available on Google Play, we want to make discovery easier and remove friction during the install process. Installing and opening a game takes time and results in many players never getting to experience your game. We're thrilled to announce that instant apps is now available for games.

This means that with a tap, players can try a game without having to download it first. Games available instantly today include: Clash Royale, Words with Friends 2, and Bubble Witch 3 Saga, and other titles from Playtika, MZ, Jam City, and Hothead Games


بصورت خلاصه، قابلیت جدیدی ارائه شده که قبل از دانلود میتونید بازی های مورد نظر رو اول Play کرده و اگر از اون خوشتون اومد، دانلود کنید.

متن کامل خبر رو میتونید بصورت فارسی از لینک زیر مطالعه کنید:
https://goo.gl/pCZbrK

In English : https://android-developers.googleblog.com/2018/03/our-big-bet-on-mobile-games-at-game.html
Android Studio 3.1

Android Studio 3.1 is now available to download in the stable release channel.

اندروید استودیو 3.1 هم اکنون جهت دانلود در چنل استیبل قابل دانلود میباشد...


https://android-developers.googleblog.com/2018/03/android-studio-3-1.html
Wear OS by Google developer preview

They finally launched the Wear OS by Google developer preview and brought Android P platform features to wearables.

Wear OS توسط توسعه دهندگان گوگل

بالاخره توسعه دهندگان اندروید p را بروی Wear نیز آوردند.

more info : https://android-developers.googleblog.com/2018/03/wear-os-by-google-developer-preview.html
Channel name was changed to «Android Developers Area کانال توسعه دهندگان اندروید»
Introducing new Android Excellence apps and games on Google Play

معرفی بهترین و عالی ترین برنامه ها و بازی های منتخب گوگل پلی


Congratulations to the latest apps and games featured in the Android Excellence program on Google Play. As a reminder, these collections are refreshed every three months and recognize apps and games that set the bar for high quality, great user experience, and strong technical performance.

بطور خلاصه، تبریک به بازی ها و بهترین برنامه های منتخب که انتخاب شده اند. به عنوان یادآوری، این کالکشن هر سه ماه آپدیت شده و بهترین ها انتخاب میشوند.



If you're looking for some new apps, here are a few highlights.

Adobe Photoshop Lightroom CC: Capture, edit, and share your photos with the power of Lightroom on your mobile device. Use presets for quick and easy edits, or dive in with the advanced editing tools.

Seven - 7 Minute Workout Training Challenge: Use this app to fit seven minute workouts into your busy lifestyle. Grab your phone, or even your Wear OS device to work out anywhere and anytime. Keep it up to earn achievements and join the 7 Club for even more support.

SoloLearn: Learn to Code for Free: Learn one of many new coding languages by joining a community of millions. Tap in to the 24/7 peer support, or create your own lessons to become a community influencer.


اگر بدنبال برنامه ایی جدید میگردید، سه برنامه بالا بهترین انتخاب میتونند باشند!

بازی های زیر رو هم شامل میشند:

Here are a few of our favorite new games joining the collection.

CodyCross: Crossword Puzzles: Try this game for a fun new style of crossword puzzles. Play for free on adventure mode or subscribe for special themed packs, varying difficulty levels and fresh content added weekly.

MARVEL Contest of Champions: Play with your favorite Marvel Super Heroes and Super Villians in iconic locations from the Marvel Universe. Assemble your team of champions to play through the exciting storyline and even build alliances with your friends.

**Orbital 1: **Test your skills in this real-time multiplayer game with beautiful 3D graphics. Collect and upgrade fighters and weapons to build out your perfect squad for quick battles and new daily quests.

ادامه مطلب و معرفی در لینک زیر :
See more :
https://android-developers.googleblog.com/2018/04/introducing-new-android-excellence-apps.html
Channel name was changed to «کانال توسعه دهندگان اندروید (Android Developers Area)»
I have just took control of old Question/answer group which i have lost the access and now, Everything will back to normal.

بنده یه عذر خواهی بدهکارم. فراموش شده بود گروهی نیز قبلا مرتبط با این کانال ساخته شده و دسترسی اون به کل پریده بود. اما حالا خوشبختانه موفق شدم دسترسی رو برگردونم و بدون هیچ مشکلی میتونین سوالات خودتون رو اونجا بپرسین.



Link: https://t.me/joinchat/FzCcVUQQ3IPsmR3UYfYstQ
کانال توسعه دهندگان اندروید (Android Developers Area) pinned «I have just took control of old Question/answer group which i have lost the access and now, Everything will back to normal. بنده یه عذر خواهی بدهکارم. فراموش شده بود گروهی نیز قبلا مرتبط با این کانال ساخته شده و دسترسی اون به کل پریده بود. اما حالا خوشبختانه…»
Time to Upgrade from GCM to FCM

Originally posted by Jen Person on the Firebase Blog.

In 2016, we unveiled Firebase Cloud Messaging (FCM) as the next evolution of Google Cloud Messaging (GCM). Since then, we've been working hard to make Firebase Cloud Messaging even more powerful than its predecessor. Like GCM, Firebase Cloud Messaging allows you to send notifications and data messages reliably to iOS, Android, and the Web at no cost.


زمان زمان آپدیت از GCM به FCM است!

از سال 2016، توسعه دهندگان گوگل FCM رو معرفی کردن که بهتر و روانتر و بسیار بهتر از GCM بود. بنده خودم چندین بار استفاده کردم از این نسخه هرچند در ایران مشکلاتی همانند تحریم و ... دارم اما پنل مدیریتی فایربیس بسیار عالی بود و هم اکنون زمان زمان آپدیت هستش. البته ، اگر دیدید احیانا تحریم شدیم باز هم، میتونین از پوشه : http://pushe.co و بقیه api هایی که بیشتر روی آیپی های ما ایرانیان کاربرد دارن استفاده کنین🤙❤️

متن کامل خبر: (Link)

https://android-developers.googleblog.com/2018/04/time-to-upgrade-from-gcm-to-fcm.html
Protecting users with TLS by default in Android P

Android is committed to keeping users, their devices, and their data safe. One of the ways that we keep data safe is by protecting all data that enters or leaves an Android device with Transport Layer Security (TLS) in transit.


در اندروید p، تمام سعی در لایه Transport بر این شده که از اطلاعات کاربران حفاظت بیشتری بشه. (مربوط به قضیه مارک زاکربرگ و فیسبوک و جریان افشای اطلاعاتشون هم ممکنه بشه)

بدین ترتیب، اگر اپلیکیشن شما از Transport Layer Security (TLS) استفاده میکنه بهتره این خبر رو جدی بگیرین :

To prevent accidental unencrypted connections, we introduced the android:usesCleartextTraffic manifest attribute in Android Marshmallow. In Android Nougat, we extended that attribute by creating the Network Security Config feature, which allows apps to indicate that they do not intend to send network traffic without encryption. In Android Nougat and Oreo, we still allowed cleartext connections.

How do I update my app? چجوری باید آپدیت کرد اپلیکیشنتون رو ؟

If your app uses TLS for all connections then you have nothing to do. If not, update your app to use TLS to encrypt all connections. If you still need to make cleartext connections, keep reading for some best practices.


اگر تمام کانکشن هاتون از TLS استفاده میکنه پس کاری واسه انجام دادن ندارید. اگر اینطور نیست، تمامی قسمت های اپلیکیشن رو آپدیت کنید تا از TLS استفاده کند.

How do I use TLS in my app?

Once your server supports TLS, simply change the URLs in your app and server responses from http:// to https://. Your HTTP stack handles the TLS handshake without any more work.

If you are making sockets yourself, use an SSLSocketFactory instead of a SocketFactory. Take extra care to use the socket correctly as SSLSocket doesn't perform hostname verification. Your app needs to do its own hostname verification, preferably by calling getDefaultHostnameVerifier() with the expected hostname. Further, beware that HostnameVerifier.verify() doesn't throw an exception on error but instead returns a boolean result that you must explicitly check.


زمانی که سرورتون TLS رو ساپورت کرد، فقط کافیه لینک های در برنامه رو به https تغییر بدید...


link : لینک خبر

https://android-developers.googleblog.com/2018/04/protecting-users-with-tls-by-default-in.html
Also, Question/Answer group due to inactivity Destroyed. You can ask your question in the related websites like (StackOverflow or ...).

همچنین، گروه سوال/پاسخ بنابر نبود فعالیت منحل شد.

سوالات خودتون رو میتونین در سایت های مرتبط (مثل StackOverflow) مطرح کنید👍😘❤️ مرسی که تا اینجای کار با ما بودین.

تمام سعی کانال بر این بوده که بدون هیچگونه تبلیغات یا .. از وضعیت و آموزش های اندروید استفاده کنین.

امیدوارم تا اینجای کار راضی بوده باشید! لطفا اگر دوستی آشنایی مد نظر دارید که علاقه مند به توسعه برنامه نویسی اندروید هستش، اون‌رو به کانال خودتون دعوت کنین تا شاید کمکی ، آموزشی یا راهنمایی به ایشون بشه.

لینک کانال:
https://t.me/android_developers_area

مرسی از همراهیتون🌹🌹👍

#group #destroy #no_group
کانال توسعه دهندگان اندروید (Android Developers Area) pinned «Also, Question/Answer group due to inactivity Destroyed. You can ask your question in the related websites like (StackOverflow or ...). همچنین، گروه سوال/پاسخ بنابر نبود فعالیت منحل شد. سوالات خودتون رو میتونین در سایت های مرتبط (مثل StackOverflow) مطرح…»
Protecting WebView with Safe Browsing
حفاظت از WebView زمانی که در حال مرور وب هستید..

Since 2007, Google Safe Browsing has been protecting users across the web from phishing and malware attacks. It protects over three billion devices from an increasing number of threats, now also including unwanted software across desktop and mobile platforms.
از سال ۲۰۰۷، گوگل Safe browsing درحال حفاظت از کاربران در محیط وب بوده و از اتکر ها و حملات کاربران رو حفاظت میکرده.

You can learn more about customizing and controlling Safe Browsing in the Android API documentation, and you can test your application today by visiting the Safe Browsing test URL ;

‘(chrome://safe-browsing/match?type=malware)’


جهت تست میتونید از کد بالا در مرورگرهاتون استفاده‌کنین...

while using the current WebView beta.


اطلاعات بیشتر :


https://developer.android.com/reference/android/webkit/WebView.html