This Blog is introduce to help Tanzania community get to know more about Android Technology, it help developers to start develop android mobile apps and also the community will know more about the benefit of using Mobile Phone that support android Technology
Thursday, May 29, 2014
Wednesday, May 21, 2014
Latest Android Studio
For those who do not know Android studio, is an integrated development environment (IDE) for the Android Platform. Now Android has released Android Studio 0.5.8 to the canary channel with more bug fixes, support for the new Gradle plugin, new lint checks, layout editor improvements and more!
How to build a mobile app with an Cloud Platform as backend
This tutorial describes how to develop a mobile application powered by Google Cloud Platform. The application includes an Android client and an App Engine Backend.
First and foremost you must have a little idea about Android and Google App Engine.
Africa Android Challenge first round is over
The first round of the Challenge is over and 300 submission was collected across 30 countries in Africa. Tanzania for the first in History submit 8 android application through the help of GDG Mwanza . Congratulation to George Machibya and Organizers of GDG Mwanza to help participants to reach the deadline.
For more information please visit. Africa Android Challenge.
For more information please visit. Africa Android Challenge.
Monday, September 16, 2013
Google Cloud Developer Challenge!
Google Cloud Developer Challenge! It's time to show the world what you can do with the Google Cloud Platform.
What is the Google Cloud Developer Challenge?
Developers in 6 regions across the world will win prizes that include Android devices and up to$20,000 USD. We are also highlighting innovations of students and female developers!
All you have to do is build and submit an amazing application in one of these categories:- Enterprise/Small Business Solutions , Education, Not for Profit
- Social / Personal Productivity/Games / Fun
A winner will be chosen for each category, in each region -- 12 prizes in total.
Awards for best mentors! A mentor will be chosen for in each region -- 6 prizes in total.
find more detail: http://www.google.com/events/gcdc2013/
.
Thursday, August 8, 2013
GDG Mwanza is set
Google Developer Group (GDG) Mwanza is a group caters for developers in Mwanza, Tanzania with interests and/or practical experience in Google technologies.
The group is aimed at bringing together Google Technology enthusiasts to share and learn from their skills and experiences to create effective systems and solve compelling problems within the country using Google Technologies. Our Meetings will always be open to general public.
follow us on and be member: https://plus.google.com/b/113901864922964546168/113901864922964546168/posts?cfem=1
Wednesday, July 24, 2013
Android GPS Using. How to get current location example
To use GPS in your application first of all you must specify the uses-permission in Android manifest file
For more detail information please visit: http://www.hrupin.com/2011/04/android-gps-using-how-to-get-current-location-example
<manifest>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"></uses-permission>
</manifest>
If you don’t set this permission the application can’t get access to location service.To use this application with android emulator you must mock location data. To do this using Eclipse you must:
- Select Window > Show View > Other > Emulator Control
- In Emulator Control panel enter the GPS coordinates under Location Controls and press Send
This operation you must do every time then you Run application.
Below you can see the application activity (MainCoordinate.java) source. Below you can download the source code of this Android project.
package com.muchbeer;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ProgressBar;
public class HelloAndroidGpsActivity extends Activity implements OnClickListener, android.content.DialogInterface.OnClickListener {
private EditText editTextShowLocation;
private Button buttonGetLocation;
private ProgressBar progress;
private LocationManager locManager;
private LocationListener locListener = new MyLocationListener();
private boolean gps_enabled = false;
private boolean network_enabled = false;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
editTextShowLocation = (EditText) findViewById(R.id.editTextShowLocation);
progress = (ProgressBar) findViewById(R.id.progressBar1);
progress.setVisibility(View.GONE);
buttonGetLocation = (Button) findViewById(R.id.buttonGetLocation);
buttonGetLocation.setOnClickListener(this);
locManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);
}
@Override
public void onClick(View v) {
progress.setVisibility(View.VISIBLE);
// exceptions will be thrown if provider is not permitted.
try {
gps_enabled = locManager.isProviderEnabled(LocationManager.GPS_PROVIDER);
} catch (Exception ex) {
}
try {
network_enabled = locManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER);
} catch (Exception ex) {
}
// don't start listeners if no provider is enabled
if (!gps_enabled &amp;amp;amp;amp;&amp;amp;amp;amp; !network_enabled) {
AlertDialog.Builder builder = new Builder(this);
builder.setTitle("Attention!");
builder.setMessage("Sorry, location is not determined. Please enable location providers");
builder.setPositiveButton("OK", this);
builder.setNeutralButton("Cancel", this);
builder.create().show();
progress.setVisibility(View.GONE);
}
if (gps_enabled) {
locManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, locListener);
}
if (network_enabled) {
locManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locListener);
}
}
class MyLocationListener implements LocationListener {
@Override
public void onLocationChanged(Location location) {
if (location != null) {
// This needs to stop getting the location data and save the battery power.
locManager.removeUpdates(locListener);
String londitude = "Londitude: " + location.getLongitude();
String latitude = "Latitude: " + location.getLatitude();
String altitiude = "Altitiude: " + location.getAltitude();
String accuracy = "Accuracy: " + location.getAccuracy();
String time = "Time: " + location.getTime();
editTextShowLocation.setText(londitude + "\n" + latitude + "\n" + altitiude + "\n" + accuracy + "\n" + time);
progress.setVisibility(View.GONE);
}
}
@Override
public void onProviderDisabled(String provider) {
// TODO Auto-generated method stub
}
@Override
public void onProviderEnabled(String provider) {
// TODO Auto-generated method stub
}
@Override
public void onStatusChanged(String provider, int status, Bundle extras) {
// TODO Auto-generated method stub
}
}
@Override
public void onClick(DialogInterface dialog, int which) {
if(which == DialogInterface.BUTTON_NEUTRAL){
editTextShowLocation.setText("Sorry, location is not determined. To fix this please enable location providers");
}else if (which == DialogInterface.BUTTON_POSITIVE) {
startActivity(new Intent(android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS));
}
}
}
For more detail information please visit: http://www.hrupin.com/2011/04/android-gps-using-how-to-get-current-location-example
Subscribe to:
Posts (Atom)