Tuesday, April 19, 2016

Receiving a Message - Udacity Advance Android Course

Link quiznya bisa dilihat di sini. Instruksinya kyk gini :
Okieee...pertama-tama kita tambain string key baru di strings.xml :
Terus kita ubah MyGcmListenerService.java menjadi seperti ini :


Okieee... fungsi onMessageReceived sm sendNotificationnya udaaah... B-)

Tapi kmaren tuh ada yang lupa diubah... :v
Jadi skrg mo diubah... mmm.. yang versi gcm dependencynya diganti jadi ke 8.3.0
Terus di manifestnya tambain "titik"... wkwkw... :v
Terus yang dimainActivity :
Okieee... selese daaah... coba di run di real device buat mastiin sunshinya bisa jalan... :v


Prev Quiz --- Next Quiz

Installing Google Play Service in Genymotion

1. Download Genymotion ARM Translation from this site.
After downloading the file, drag and drop it to genymotion emulator screen as shown below :
You will get some notifications like these :


Okieee... please close genymotion, and restart adb through windows cmd : adb reboot or task manager
Next... open your genymotion again, and while opening please download gapps through these links below :
for Android 5.0.x, Android 4.4.x, Android, 4.3.x, Android 4.2.x, Android 4.1.x, etc...
In this post I'm gonna use Android.5.0.x :
After downloadin gapps file for Android.5.0.x, drag and drop downloaded file again like we did in ARM :


Oukaaay... we need to restart our genymotion emulator again... :)
btw... I'm gonna use task manager rightnow for restarting adb ehehe.. :D
aaaand... the first time we run genymotion, it will update our Android :
and then it's gonna give some error messages like these :

Then the emulator will automatically show us a google login form... yeeei.... that's a good sign .. :D
So just log in to google account :

{update google+ for removing error notifs}
aaaannnn...dd... doneeee... You are good to be the android rocker now... :D