[android-developers] GPS NET Position
Ok .. i Understand the Main location Function of Android but i want implementing a complete function for Device Positioning estimate with the event showed in Figure 1 of Android Dev Documentation : http://developer.android.com/guide/topics/location/obtaining-user-loc... : 1_Application Start 2_Listen for GPS and Net Update ecc with Testing on Emulator is so hard because i don't receive network's Localization parameter and the same for GPS( from shell GPS signal haven't delay and accuracy ecc ). Someone has already stand up to this Problem, and have an algorithm to do this ?? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] GPS NET Position
Ok .. i Understand the Main location Function of Android but i want implementing a complete function for Device Positioning estimate with the event showed in Figure 1 of Android Dev Documentation : http://developer.android.com/guide/topics/location/obtaining-user-loc... : 1_Application Start 2_Listen for GPS and Net Update ecc with Testing on Emulator is so hard because i don't receive network's Localization parameter and the same for GPS( from shell GPS signal haven't delay and accuracy ecc ). Someone has already stand up to this Problem, and have an algorithm to do this ?? ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Estimation go across to GeoPoint !
Thanks a Lot ! On 21 Ott, 17:01, TreKing treking...@gmail.com wrote: On Thu, Oct 21, 2010 at 8:45 AM, MarcoCanali marco.can...@gmail.com wrote: Someone have a smart tip for get estimated time travel between two GeoPoint from Google Service ?? http://code.google.com/apis/maps/documentation/directions/ --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] GPS and Network Position!
Ok .. i Understand the Main location Function of Android but i want implementing a complete function for Device Positioning estimate with the event showed in Figure 1 of Android Dev Documentation : http://developer.android.com/guide/topics/location/obtaining-user-location.html : 1_Application Start 2_Listen for GPS and Net Update ecc with Testing on Emulator is so hard because i don't receive network's Localization parameter and the same for GPS( from shell GPS signal haven't delay and accuracy ecc ). Someone has already stand up to this Problem, and have an algorithm to do this ?? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Problem With Thread !
Thanks a Lot , i'Ve Discover New World !! Now It Work ! On 23 Ott, 11:59, Kostya Vasilyev kmans...@gmail.com wrote: Marco, If you're going to control periodic / scheduled events, then you don't need a thread at all. Take a look at AlarmManager, and schedule an alarm at appropriate time. AlarmManager will wake up the phone (as needed) and fire off a PendingIntent, which you can receive with a BroadcastReceiver. -- Kostya 23.10.2010 13:48, MarcoCanali : Before i use the Runnable interface and call in run method the Thread.sleep() for put the service in wait for a moment, my service controlls the appointment for all time the device is on , but the problem is the same my UI don't respond to any command !! On 22 Ott, 22:41, Kostya Vasilyevkmans...@gmail.com wrote: Prakash is right - the thread needs to be started. Now, btw, why does Thead implement Runnable in Java? Seems like a recipe for confusion. -- Kostya Vasilyev --http://kmansoft.wordpress.com 23.10.2010 0:33 DanHdanhi...@ieee.org : No, he's posting it as a Runnable to a Handler, it looks like. Yeah, there's a lot of that going around, and it causes a lot of confusion. Stupid to use a Thread when a Runnable will do, but that's the way it is in some examples on the net, and those examples keep getting copied. And, of course, since it's not a separate thread (though the OP probably thinks it is), the sleep call holds up the UI. Not a nice thing to do. On Oct 22, 2:59 pm, TreKingtreking...@gmail.com wrote: On Fri, Oct 22, 2010 at 8:02 AM, MarcoCanalimarco.can...@gmail.com wrote: The Service Work ... On Fri, Oct 22, 2010 at 8:34 AM, Prakash Iyerthei...@gmail.com wrote: Don't you need to sta... TreKinghttp://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are su... -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Problem With Thread !
Ok i Implements Runnable for put the service in Waith() i call Thread.sleep() in run() method of class that Implements Runnable and The Problem is the Same ; The stone don't hit the two Bird On 22 Ott, 23:32, DanH danhi...@ieee.org wrote: Thread implements Runnable mainly as a convenience. When you want to start a thread you need a Runnable to execute. You can supply a separate Runnable, but, since you're already creating a Thread, why not just make it a Runnable too, and kill two birds with one stone? On Oct 22, 3:41 pm, Kostya Vasilyev kmans...@gmail.com wrote: Prakash is right - the thread needs to be started. Now, btw, why does Thead implement Runnable in Java? Seems like a recipe for confusion. -- Kostya Vasilyev --http://kmansoft.wordpress.com 23.10.2010 0:33 пользователь DanH danhi...@ieee.org написал: No, he's posting it as a Runnable to a Handler, it looks like. Yeah, there's a lot of that going around, and it causes a lot of confusion. Stupid to use a Thread when a Runnable will do, but that's the way it is in some examples on the net, and those examples keep getting copied. And, of course, since it's not a separate thread (though the OP probably thinks it is), the sleep call holds up the UI. Not a nice thing to do. On Oct 22, 2:59 pm, TreKing treking...@gmail.com wrote: On Fri, Oct 22, 2010 at 8:02 AM, MarcoCanali marco.can...@gmail.com wrote: The Service Work ... On Fri, Oct 22, 2010 at 8:34 AM, Prakash Iyer thei...@gmail.com wrote: Don't you need to sta... TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are su... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Problem With Thread !
Before i use the Runnable interface and call in run method the Thread.sleep() for put the service in wait for a moment, my service controlls the appointment for all time the device is on , but the problem is the same my UI don't respond to any command !! On 22 Ott, 22:41, Kostya Vasilyev kmans...@gmail.com wrote: Prakash is right - the thread needs to be started. Now, btw, why does Thead implement Runnable in Java? Seems like a recipe for confusion. -- Kostya Vasilyev --http://kmansoft.wordpress.com 23.10.2010 0:33 пользователь DanH danhi...@ieee.org написал: No, he's posting it as a Runnable to a Handler, it looks like. Yeah, there's a lot of that going around, and it causes a lot of confusion. Stupid to use a Thread when a Runnable will do, but that's the way it is in some examples on the net, and those examples keep getting copied. And, of course, since it's not a separate thread (though the OP probably thinks it is), the sleep call holds up the UI. Not a nice thing to do. On Oct 22, 2:59 pm, TreKing treking...@gmail.com wrote: On Fri, Oct 22, 2010 at 8:02 AM, MarcoCanali marco.can...@gmail.com wrote: The Service Work ... On Fri, Oct 22, 2010 at 8:34 AM, Prakash Iyer thei...@gmail.com wrote: Don't you need to sta... TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are su... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Problem With Thread !
Yes Right ... How can resolve the problem, and run the run() method without intact the UI thread !! Thanks a Lot On 22 Ott, 23:09, Kostya Vasilyev kmans...@gmail.com wrote: Right, instead of starting a thread he posts its body as a runnable to the UI thread, and sleep causes an ANR. Since he has a call to sleep, it seems that he really intends to have a thread (perhaps using sleep as a temporary placeholder for a lengthy operation, to be added later). So, the worker thread needs to be started, so it really runs as a thread. This is nstead of posting it to the UI thread, which compiles and runs (although not as intended) because Java threads implement Runnable. Am I making more sense now? -- Kostya Vasilyev --http://kmansoft.wordpress.com 23.10.2010 0:47 пользователь TreKing treking...@gmail.com написал: 2010/10/22 Kostya Vasilyev kmans...@gmail.com Prakash is right - the thread needs to be started. No, it doesn't. He's posting it to run on a handler which will call the run method. The problem is that that runs on the UI thread and the Task object is sleeping for some arbitrary time, as Dan pointed out. Now, btw, why does Thead implement Runnable in Java? Seems like a recipe for confusion. Yes it does.http://developer.android.com/reference/java/lang/Thread.html --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Service start in Turn on Device
Thanks ... It Works ! i Use this Code in Service Class : Intent mIntent = new Intent(context,MyClass.class); context.startService(mIntent); And Uses Permission in Manifest ! !-- Register in Android Manifest BootReceiver receiver -- receiver android:name=BootReceiver intent-filter action android:name=android.intent.action.BOOT_COMPLETED / category android:name=android.intent.category.HOME / /intent-filter /receiver And : uses-permission android:name=android.permission.RECEIVE_BOOT_COMPLETED / On 12 Ott, 12:04, pramod.deore deore.pramo...@gmail.com wrote: You have to register for the BOOT_COMPLETED intent but also for the intent that will start the actual service.In manifest file use permission as uses-permission android:name=android.permission.RECEIVE_BOOT_COMPLETED / The broadcast action android.intent.action.BOOT_COMPLETED that is sent out once the platform boot is complete. On Oct 12, 2:53 pm, MarcoCanali marco.can...@gmail.com wrote: How start my service when turn on my device in automatic mode ?? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Problem With Thread !
I use thic Code in a Class Of type Service : class A extends Service { @Override public IBinder onBind(Intent intent) { // TODO Auto-generated method stub Log.v(AppointmentFinderService, OnBind the Binder ); return mBinder; } @Override public void onCreate() { Context context = getBaseContext(); } @Override public void onDestroy() { // TODO Auto-generated method stub super.onDestroy(); serviceHandler.removeCallbacks(myTask); serviceHandler = null; /** Destroy the Thread */ myTask.destroy(); } @Override public void onStart(Intent intent, int startId) { // TODO Auto-generated method stub super.onStart(intent, startId); myTask = new Task(); serviceHandler = new Handler(); serviceHandler.postDelayed(myTask, delayMillis); } class Task extends Thread{ @Override public void run() { try { sleep(timeToSleep); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } The Service Work in Right mode but the other activity of application don't respond to command ...from the sleep command add !! Someone have an Idea of problem with Thread process, the sleep method intact the Application main core i think !!! Thanks in Advance !! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Estimation go across to GeoPoint !
Someone have a smart tip for get estimated time travel between two GeoPoint from Google Service ?? Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: how to change location provider provider...
When you declare ... mLocationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, minTime, minDistance , mGPSLocationListner); go to method @Override public void onStatusChanged(String provider, int status, Bundle extras) { // TODO Auto-generated method stub } OR @Override public void onProviderDisabled(String provider) { // TODO Auto-generated method stub Toast.makeText(getApplicationContext(),provider +:ProviderDisable, Toast.LENGTH_LONG).show(); } Both Method of LocationListner and write what do you want to do when the Provider GPS changes the status !! On 21 Ott, 13:40, A N K ! T ankit.awasth...@gmail.com wrote: i have developed an app which just notify when location changed... it used GPS_PROVIDERS as provider.. but as devices go inside of some building. it stop listening .. i want to change the provider at that time to network provider.. so should i write locationManager.requestLocationUpdate method there in status change method of listener.with provider to network provider... or something else will do the task... -- A N K ! T.. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Service start in Turn on Device
How start my service when turn on my device in automatic mode ?? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] is there somewhere the code of application Maps on Android 4 API ??
is there somewhere the code of application Maps on Android 4 API ?? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Android 1.6 Maps Application
is there somewhere the code of application Maps on Android 4 API ?? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Search in Maps !
I want insert a search function in my android project like search function in Android Maps application. Anyone has a solution ?? Thanks Marco --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: DDMS won't load (or doesn't parse?) KML file
I've the same problem click the Button load kML Select my File. KML and do nothing !! I use android-sdk-windows-1.5_r3 ! On 30 Giu, 02:24, nderraugh nderra...@gmail.com wrote: I've tried various permutations of KML files and now I've tried yours. Still no luck. And no error messages either. It just seems to ignore me. I'm on a dual processor quad core Xeon system running Vista 64 if it makes any difference. On Jun 27, 6:44 pm, atrekker androidtrek...@gmail.com wrote: I compare your KML with the one I have been using in DDMS notice some tag difference. Please try following modified version: ?xml version=1.0 encoding=UTF-8? kml xmlns=http://www.opengis.net/kml/2.2; Document nameSimple placement/name Placemark nameSimple placemark/name descriptionAttached to the ground. Intelligently places itself at the height of the underlying terrain./description Point coordinates-122.0822035425683,37.42228990140251,0/ coordinates /Point /Placemark /Document /kml On Jun 27, 2:45 pm, nderraugh nderra...@gmail.com wrote: I can't get DDMS to load any KML files. I have a KML file for example with the following in it: ?xml version=1.0 encoding=UTF-8? kml xmlns=http://www.opengis.net/kml/2.2; Placemark nameSimple placemark/name descriptionAttached to the ground. Intelligently places itself at the height of the underlying terrain./description Point coordinates-122.0822035425683,37.42228990140251,0/ coordinates /Point /Placemark /kml The docs athttp://developer.android.com/guide/developing/tools/ddms.html seem to indicate that I only need to launch my app and fire up DDMS and load the KML. That doesn't work. I even tried the Google Earth solution suggested at the same link. I'm using SDK 1.5_r2. I am doing something wrong or missing something? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] problem with HelloMapView
I think , have correct Md5 Fingerprint for Map Service but i not see the map in the google exemple HelloMapView AnyOne help me about the main problem about it ??? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---