Android Debug Bridge (adb) lets you communicate with an emulator or connected Android-powered device through a command line tool. You can use
push commands to copy files to and from an emulator/device to your development machine.
Here is a simple example of designing one of the most common needed screen (Sign In&Up). Of course, this is not the only way to design such screens but the objective here is to learn some tips and tricks.
Learning by example is my best way to learn new stuff. Here we will see a good example of designing Android “sing-in with social networks” screen which covers many designing “tips & tricks” that you will definitely need when designing your real-life app.
HTTP AsyncTask is a commonly needed function in most Android app. So it is better to have a generic and reusable piece of code that can take care of the HTTP AsyncTask process whenever you need it. This will save your time and make your business code cleaner. Here we will see a suggested way to build such generic and reusable code.
To send notification messages to Android devices you need first to send a POST request from your application to Google Cloud Messaging (GCM) service instructing it to send the notifications. Here we will see how to send POST request to GCM from Java “desktop” application.
When sending a message from your own HTTP server to Google cloud messaging server, you need to authenticate using Server API Key. This API Key can be created from the Developer Console. The Key will be appended into the POST request headers as a custom header. Read more about Authentication
Running Google Map on older version of Android e.g. 2.3.3 is a bit different than running on a newer ones. Android Google Map v2 on Older Android Version shows how to setup Google Map v2 to run on Android 2.3.3. Here we will show how to add a marker to the on the middle of the map.
Google provides a service to integrate Map to Android App. Google Maps Android API, can be used to add maps to your application. The API provides functions to handle the access to Google Maps servers, data downloading, map display, and response to map gestures.
The latest release of the API “Google Maps Android API v2″, allows you to add maps into an activity as a fragment with a simple XML snippet.
Running Android Google Map v2 on emulator is not straight-forward. Google Map v2 is “so far” not running on the default emulator even if you try all the options e.g. changing the target “Android API x” or “Google API”.
The only “relatively easy” solution is to manually install two apk “Google Play services & Google Play store” files on the emulator.
Google Maps v2 Android API, can be embedded into an activity as a fragment with a simple XML snippet in the layout file. Running Google Maps v2 on older version of Android “below API 11″ needs some support classes from the support library. Here we will see how to setup Google Maps v2 on Android 2.3.3.