Re: Me, Android, & Google guide you :-)

by Suyandi Liyis » Sat, 22 Jan 2011 17:35:38 GMT


Sponsored Links
 sekedar info, utk pemakai a10, tidak perlu instal lagi, sudah built in
aplikasi flight status khas garmin...pemakai garmin xt di nokia pasti
tau

syd
ptk

-- 
===============
"



Re: Re: Me, Android, & Google guide you :-)

by Paskal Agung » Sun, 23 Jan 2011 07:52:25 GMT


 Cerita yg mantap...
Kalo nulis yg beginian terus, saya yakin deh om Lucky cpet jadi penulis
expert

Dapat tambahan ilmu lagi...
Makasih om... ^_^



-- 
===============
"


Sponsored Links


Other Threads

1. Problem in Reverse Geocoder...Address,Country Name are not Displaying...

whenever i run this code it shows Latitude and Longitude correctly...

  but i did'nt get the address,Country name and Postal code.Here I Used
Reverse

  Geocoder.  In my output Only Latitude and Longitude shows but Adddress
Detaily   are not Displaying

  can u tel me pls. thanks,

 WithRegards,

 S.raghav



 public class WhereAmI extends Activity {
 @Override
 public void onCreate(Bundle icicle) {
 super.onCreate(icicle);
 setContentView(R.layout.main);
 LocationManager locationManager;
 String context = Context.LOCATION_SERVICE;
 locationManager = (LocationManager)getSystemService(context);
 String provider = LocationManager.GPS_PROVIDER;
 Location location = locationManager.getLastKnownLocation(provider);
 updateWithNewLocation(location);
 }


        private void updateWithNewLocation(Location location) {
        String latLongString = null;
        TextView myLocationText;
        String addressstring="No address Found";
        myLocationText = (TextView)findViewById(R.id.myLocationText);
        if (location != null) {
        double lat = location.getLatitude();
        double lng = location.getLongitude();
           latLongString = "Lat:" + lat + "\n Long: " + lng;


            Geocoder gc=new Geocoder(this,Locale.getDefault());
         try {
            List<Address> addresses=gc.getFromLocation(lat,lng,5);
            StringBuilder sb=new StringBuilder();

            if(addresses.size()>0)
             {

                Address address=addresses.get(0);


                for(int i=0;i<address.getMaxAddressLineIndex();i++)

                {
                    sb.append(address.getAddressLine(i)).append("\n");
                    sb.append(address.getCountryName()).append("\n");
                    sb.append(address.getCountryCode()).append("\n");
                    sb.append(address.getPostalCode());
                }



            }

                   addressstring=sb.toString();

        }
        catch (IOException e) {
             // TODO Auto-generated catch block
            e.printStackTrace();
        }
        }
            else
            {
                latLongString = "No location found";


            }


           myLocationText.setText("Your Current Position is:\n"
+latLongString+"\n"+addressstring);


        }

}

--~--~---------~--~----~------------~-------~--~----~

2. Cross rom

kayaknya harus msg2 luck.
itu htc touch dual udah bisa jadi android krn ada yg port android ke  
handheld type itu, yg type lain blm ada yg bikin, makanya pasti itu  
utk msg2 device beda2.









--~--~---------~--~----~------------~-------~--~----~
Google Groups "Indonesian Android Community [id-android]" group.

To post to this group, send email to id-android@googlegroups.com

To request to subscribe to this group, please visit the following page:
 

3. How to Develop a Custom Soft Keyboard

4. Activity and TabActivity...

5. Recommended uses of a class extending android.app.Application

6. Android License compatibility with LGPLd code

7. how to change ListView Item Text Color?