Skip to main content

Posts

Showing posts with the label problem

Geocoder is not working, instead use google maps

I noticed that Geocoder does not work for a month in my app. I tested it different simulator and device. But i never get a address. After test i search another method for find address. While i search this, i notice i am not alone with geocoder issue. Other developers use a work arround. I added a few line of code for encoding UTF-8 characters. public static List < Address > getStringFromLocation ( double lat , double lng ) throws ClientProtocolException , IOException , JSONException { String address = String . format (Locale. ENGLISH , "http://maps.googleapis.com/maps/api/geocode/json?latlng=%1$f,%2$f&sensor=false" , lat, lng); HttpGet httpGet = new HttpGet(address); HttpClient client = new DefaultHttpClient(); client.getParams().setParameter(CoreProtocolPNames. HTTP_CONTENT_CHARSET , "UTF-8" ); HttpResponse response; StringBuilder stringBuilder = new StringBuilder(); List<Address> retList = null ;  respo...

Android Telefonlarda Usb Problemi

Telefonum kendi kendine araba moduna girmeye ve şarj sırasında problem yaratmaya başladı. Genel olarak sorun usb portu ile alakalı olduğu kesindi. Telefonu bilgisayara taktığım zaman tanıyamıyor, bazen şarj oluyor bazen olmuyor, bazen takılı değilken bile şarj olduğunu zannediyordu. Sorunu yazılımsal olabilir diye her türlü şeyi denedim ama çözüm olmadı. Sorunun çözümü olarak internette okuduğum ingilizce kaynaklarda USB portun 4 ve 5 inci pinlerinde gizli olduğunu öğrendim. Telefon 4 ve 5. pinler üzerinde direnç oluşunca (yağ, su, kir vb.) telefon araçta kullanıldığını zannediyor. Donanımsal bu uyarı yazılımsal desteklenmediği için telefon saçmalıyor. Çözüm ise aslında çok basit ama uygularken dikkatli olmak lazım. Öncelikle kendiniz uğraşmanızı tavsiye etmiyorum. Bir profesyonele danışın yada teknik servise götürün. CİHAZINIZDA OLUŞABİLECEK PROBLEMLERDE TÜM SORUMLULUK SİZE AİTTİR. BU YAZIDA ANLATTIKLARIM KENDİ TECRÜBELERİM VE YABANCI FORUMLARDAN OKUDUKLARIMDAN İBARETTİR. 1- A...