[android-developers] Writing applications uses ethernet instead of Wifi

2011-07-06 Thread tarek attia
Hi all, I've a board that doesn't have Wifi module,However it has an Ethernet connection .The browser works fine,however I want to write an Application that communicates with the internet,and and I want to tell my application to use the Ethernet connection instead of the Wifi in Android ... Any

Re: [android-developers] Writing applications uses ethernet instead of Wifi

2011-07-06 Thread tarek attia
at 7:14 PM, tarek attia tarek.m.at...@gmail.com wrote: I've a board that doesn't have Wifi module,However it has an Ethernet connection .The browser works fine,however I want to write an Application that communicates with the internet,and and I want to tell my application to use the Ethernet

[android-developers] Window already focused:ignoring focus gain android

2010-11-20 Thread tarek attia
Hi all, I have an application which has a thread inside,this thread calls handler.post ,however if the application is just turned off then be opened again I got this message on the log cat 11-20 23:28:23.736: WARN/InputManagerService(76): *Window already focused, ignoring focus gain of:

Re: [android-developers] Window already focused:ignoring focus gain android

2010-11-20 Thread tarek attia
above in the code,,,and if that why it sometimes working fine and sometimes not ?? Why just after terminating the application this occurs,,however if I waited for seconds it will work normally ??? On Sat, Nov 20, 2010 at 5:05 PM, tarek attia tarek.m.at...@gmail.com wrote: Hi all, I have

Re: [android-developers] Window already focused:ignoring focus gain android

2010-11-20 Thread tarek attia
Thanks you so much Mark. On Sun, Nov 21, 2010 at 12:30 AM, Mark Murphy mmur...@commonsware.comwrote: On Sat, Nov 20, 2010 at 5:17 PM, tarek attia tarek.m.at...@gmail.com wrote: Thanks for such a response On Sun, Nov 21, 2010 at 12:09 AM, Mark Murphy mmur...@commonsware.com wrote

Re: [android-developers] Window already focused:ignoring focus gain android

2010-11-20 Thread tarek attia
-focused client com.android.internal.view.iinputmethodclient$stub$pr...@4324fad0 (uid=10010 pid=124) * On Sun, Nov 21, 2010 at 12:53 AM, tarek attia tarek.m.at...@gmail.comwrote: Thanks you so much Mark. On Sun, Nov 21, 2010 at 12:30 AM, Mark Murphy mmur...@commonsware.comwrote: On Sat, Nov 20

[android-developers] Why is the Android UI toolkit not thread-safe?

2010-11-13 Thread tarek attia
Hi all, As I read at many places this phrase the Android UI toolkit is not thread-safe Why is that,just I want to understand . Regards, -- tarek -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Re: HTTP Post works in activity but not in service

2010-11-08 Thread tarek attia
On Mon, Nov 8, 2010 at 8:56 PM, loweroctave twinte...@gmail.com wrote: Try putting it in onStartCommand() instead. I haven't had any problems doing posts from the service, but they all happen after the onCreate method. On Nov 5, 8:38 pm, Burk Ferden schneck.jus...@gmail.com wrote: Hello,

Re: [android-developers] Re: Speed from GPS

2010-10-27 Thread tarek attia
I'm doing it on Nexus one On Tue, Oct 26, 2010 at 6:00 PM, MB manoj.bi...@gmail.com wrote: What device/OS are you trying it on? It works fine on my droid. On Oct 26, 3:54 am, tarek attia tarek.m.at...@gmail.com wrote: Dear all, Just in my application I want to get the speed

[android-developers] Speed from GPS

2010-10-26 Thread tarek attia
Dear all, Just in my application I want to get the speed of the android device using the GPS,so I use the api of location.getspeed() http://developer.android.com/reference/android/location/Location.html#getSpeed%28%29 However all the speed I got is just incorrect ,,,and the values are very

Re: [android-developers] Re: Problem after reopen the application !!!

2010-10-04 Thread tarek attia
any idea ? On 10/3/10, tarek attia tarek.m.at...@gmail.com wrote: On Sun, Oct 3, 2010 at 10:27 PM, Prajakta Shitole prajakt...@gmail.comwrote: is it possible to paste ur code here.. what code do u hv in ur onResume?? may be there is some problem with ur onResume as that gets called

Re: [android-developers] Re: Problem after reopen the application !!!

2010-10-03 Thread tarek attia
): at java.lang.Thread.run(Thread.java:1060) Line 144 contains call for the thread handler to handle gui operation as follow :- guiHandler.post(noConnectionAlert); What could be the issue,however if i waited then reopened it again it will work fine . On Oct 2, 3:56 pm, tarek attia tarek.m.at

Re: [android-developers] Re: Problem after reopen the application !!!

2010-10-03 Thread tarek attia
On Sun, Oct 3, 2010 at 10:14 PM, Prajakta Shitole prajakt...@gmail.comwrote: have u checked the value of noConnectionAlert.. as it is a null pointer exception it is possible that the value is null.. It's an object of Runnable . On Sun, Oct 3, 2010 at 1:10 PM, tarek attia tarek.m.at

Re: [android-developers] Re: Problem after reopen the application !!!

2010-10-03 Thread tarek attia
at 1:19 PM, tarek attia tarek.m.at...@gmail.comwrote: On Sun, Oct 3, 2010 at 10:14 PM, Prajakta Shitole prajakt...@gmail.comwrote: have u checked the value of noConnectionAlert.. as it is a null pointer exception it is possible that the value is null.. It's an object of Runnable

[android-developers] Problem after reopen the application !!!

2010-10-02 Thread tarek attia
Hi all, I have a weird behaviour on T-mobile ,as I made an application,then after closing it and reopen it immediately after closing ,a message box telling me that the application had to stop and fatal error occurred,then I reopen it again after this,it opens normally Any Idea ? Do I miss

[android-developers] Re: Problem after reopen the application !!!

2010-10-02 Thread tarek attia
the alert box is as the follow :- The process com.android.phone has stopped unexpectedly. Please try again. On Sun, Oct 3, 2010 at 1:56 AM, tarek attia tarek.m.at...@gmail.com wrote: Hi all, I have a weird behaviour on T-mobile ,as I made an application,then after closing it and reopen

[android-developers] What phone to develop on?

2010-09-21 Thread tarek attia
Hi all, I want to purchase an Android phone for development ? what do you recommend ? Is there any mobile more updated than Nexus one ? -- tarek -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Re: What phone to develop on?

2010-09-21 Thread tarek attia
: http://channel.hexus.net/content/item.php?item=26545 A £99 Pay as you go android 2.1 handset, I'd call that a bargain On Sep 21, 12:23 pm, tarek attia tarek.m.at...@gmail.com wrote: Hi all, I want to purchase an Android phone for development ? what do you recommend ? Is there any

Re: [android-developers] Re: Internet Connection Bug Or Error ??

2010-08-25 Thread tarek attia
On Sat, Aug 21, 2010 at 1:33 AM, tarek attia tarek.m.at...@gmail.comwrote: On Sat, Aug 21, 2010 at 1:43 AM, Miguel Morales therevolti...@gmail.comwrote: Did you not read my reply? Try pinging an ip that's always up like 4.2.2.2 or similar. So you'll need a few levels of checks, first

[android-developers] Which is better in Performance ?

2010-08-24 Thread tarek attia
Hi all,, I have a service which collect data and send them to a certain URL and updating the main activity GUI ,so which is better in the performance to use a long service with listeners to collect the data and threads in it to update the GUI and sends to the internet Or to make another service

Re: [android-developers] Which is better in Performance ?

2010-08-24 Thread tarek attia
of which have threads ?? -- Kostya Vasilyev -- http://kmansoft.wordpress.com 24.08.2010 23:55 пользователь TreKing treking...@gmail.com написал: On Tue, Aug 24, 2010 at 2:34 PM, tarek attia tarek.m.at...@gmail.comwrote: so which is better This will be highly dependent on your

[android-developers] Android InetAddress.isReachable always returns False

2010-08-24 Thread tarek attia
Hi, Whenever I use this method InetAddress.isReachable to ping any website it always returns false even if I'm sure that's website is reachable I read on a thread on the StackOverFlow that it doesn't work for the Android ? So what can I use to ping any websites? -- tarek -- You received

[android-developers] Weird behaviour on Nexus phone ?

2010-08-22 Thread tarek attia
Hi all, After developing my application and Installing it on nexus phone,and open it after a while it causes the phone to be switched off ?? Is it possible for an application to cause that ??? however in this application I didn't involve any power management API's Regards, -- tarek -- You

[android-developers] Internet Connection Bug Or Error ??

2010-08-20 Thread tarek attia
Hi all, In my application I must use the internet connection ,so I check it first before I open an URL connection using this :- public boolean IsConnectedToNetwork(ConnectivityManager conManager) { NetworkInfo allNetworkInfo = conManager.getActiveNetworkInfo(); NetworkInfo

[android-developers] Re: Internet Connection Bug Or Error ??

2010-08-20 Thread tarek attia
Any Idea??? On Fri, Aug 20, 2010 at 10:33 PM, tarek attia tarek.m.at...@gmail.comwrote: Hi all, In my application I must use the internet connection ,so I check it first before I open an URL connection using this :- public boolean IsConnectedToNetwork(ConnectivityManager conManager

Re: [android-developers] Re: Internet Connection Bug Or Error ??

2010-08-20 Thread tarek attia
past some firewall to the rest of the world. I mean by Connected to the internet to have an internet Gateway .I want to ensure that I'm connected to the internet not just a network without an internet gateway On Aug 20, 2:33 pm, tarek attia tarek.m.at...@gmail.com wrote: Hi all

Re: [android-developers] Re: Internet Connection Bug Or Error ??

2010-08-20 Thread tarek attia
On Sat, Aug 21, 2010 at 12:43 AM, Mark Murphy mmur...@commonsware.comwrote: On Fri, Aug 20, 2010 at 4:50 PM, tarek attia tarek.m.at...@gmail.com wrote: Any Idea??? One idea is for you to have patience and not expect immediate responses to your emails. Sorry for this,but I have been

Re: [android-developers] Re: Internet Connection Bug Or Error ??

2010-08-20 Thread tarek attia
to the internet. All the software will think it's connected to the internet and try to connect forever. (At least for software that doesn't run the check I've told you) On Fri, Aug 20, 2010 at 3:38 PM, tarek attia tarek.m.at...@gmail.com wrote: On Sat, Aug 21, 2010 at 12:43 AM, Mark Murphy

[android-developers] URLConnection TimeOut

2010-07-31 Thread tarek attia
Hi all, I have a problem in my code ,runs on the emulator very well,but on my T-mobile G1 doesn't time out .Code snippet is below :- URL myURL = new URL(uriBuilder.toString()); URLConnection myConnection = myURL.openConnection(); myConnection.setConnectTimeout(4); so when no internet

[android-developers] Re: URLConnection TimeOut

2010-07-31 Thread tarek attia
I've found the problem but I don't know the Solution . URLConnection myConnection = myURL.openConnection(); when no internet it doesn't return from this method at all !! and dunno what should I do for that On Sat, Jul 31, 2010 at 2:29 PM, tarek attia tarek.m.at...@gmail.comwrote

[android-developers] LocationManager.getSpeed(); always zeroo

2010-07-05 Thread tarek attia
Hi all, I'm using LocationManager.getspeed(); and everytime I use it it comes to with location.hasSpeed=false ,and the speed is zero ? So is this something related to ANdroid bugs or this provider doesn't support speed ? and What would be the alternatives for it ? should I use the accelerometer

Re: [android-developers] Re: Protect the Shared Data between service and thread

2010-07-05 Thread tarek attia
might happen ? So am I thinking right or wrong ? On Thu, Jun 24, 2010 at 3:28 PM, Mark Murphy mmur...@commonsware.comwrote: On Wed, Jun 23, 2010 at 10:46 PM, tarek attia tarek.m.at...@gmail.com wrote: Yes,I mean that,as in my service there's an array to be accessed also by a thread exists

Re: [android-developers] LocationManager.getSpeed(); always zeroo

2010-07-05 Thread tarek attia
T-mobile G1,,plus the emulator the same case On Tue, Jul 6, 2010 at 3:32 AM, Mark Murphy mmur...@commonsware.com wrote: On Mon, Jul 5, 2010 at 8:21 PM, tarek attia tarek.m.at...@gmail.com wrote: I'm using LocationManager.getspeed(); and everytime I use it it comes to with location.hasSpeed

[android-developers] Protect the Shared Data between service and thread

2010-06-23 Thread tarek attia
Hi all, I'm doing an application that requires that certain thread access data that's shared among it and another service.How can I protect these shared data form accessing in the same time ,,is there anything in android for that or android has nothing to do with this as Java API's will do the

[android-developers] Protect the Shared Data between service and thread

2010-06-23 Thread tarek attia
Hi all, I'm doing an application that requires that certain thread access data that's shared among it and another service.How can I protect these shared data form accessing in the same time ,,is there anything in android for that or android has nothing to do with this as Java API's will do the

[android-developers] Location.getspeed always returns Zero

2010-06-23 Thread tarek attia
Hi, While I'm testing the functioon that returns speed location.getSpeed() ,using GPX files I have always the return value equals to Zero no change whatever happened ?? -- tarek -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

Re: [android-developers] Re: Protect the Shared Data between service and thread

2010-06-23 Thread tarek attia
synchronization? (synchronized blocks; classes from the java.util.concurrent package) On Jun 23, 8:38 pm, tarek attia tarek.m.at...@gmail.com wrote: Hi all, I'm doing an application that requires that certain thread access data that's shared among it and another service.How can I protect

[android-developers] “Failed to find provider info for android.server.checkin ” ?

2010-06-21 Thread tarek attia
Hi , I'm doing a GPS application ,and it worked fine till I updated the SDK for API 8 ,,then after close and open eclipse once again I got this error in my LgCat “Failed to find provider info for android.server.checkin ” and anytime I call Location =

[android-developers] Re: “Failed to find provider info for android.server.checkin ” ?

2010-06-21 Thread tarek attia
Any Idea about that?! On Mon, Jun 21, 2010 at 9:31 PM, tarek attia tarek.m.at...@gmail.comwrote: Hi , I'm doing a GPS application ,and it worked fine till I updated the SDK for API 8 ,,then after close and open eclipse once again I got this error in my LgCat

Re: [android-developers] Unable To run Service

2010-06-17 Thread tarek attia
as previous? Do i forget something that has to be done? On Wed, Jun 16, 2010 at 11:55 PM, tarek attia tarek.m.at...@gmail.comwrote: The problem was this in the AndroidManifest.xml :SS I was registering the service as following Service android:enabeled=true android:name.MyService

Re: [android-developers] Unable To run Service

2010-06-16 Thread tarek attia
=true android:name.MyService/ On Tue, Jun 15, 2010 at 10:35 PM, Mark Murphy mmur...@commonsware.comwrote: On Tue, Jun 15, 2010 at 2:10 PM, tarek attia tarek.m.at...@gmail.com wrote: The Same Error What could cause this? I would recommend starting

[android-developers] Unable To run Service

2010-06-15 Thread tarek attia
Hi all,, I have an activity that contains a button in it,and once this button is clicked I start service ,but each time i press the button no service is started and this message appear in the LogCat Unable to start service intent {Package name}: Not found Any help ?? -- tarek -- You

Re: [android-developers] Unable To run Service

2010-06-15 Thread tarek attia
,,does that relate to this? On Tue, Jun 15, 2010 at 6:08 PM, Mark Murphy mmur...@commonsware.comwrote: On Tue, Jun 15, 2010 at 11:06 AM, tarek attia tarek.m.at...@gmail.com wrote: Hi all,, I have an activity that contains a button in it,and once this button is clicked I start service

Re: [android-developers] Unable To run Service

2010-06-15 Thread tarek attia
don't contain package for resource number ,,does that relate to this? On Tue, Jun 15, 2010 at 6:08 PM, Mark Murphy mmur...@commonsware.comwrote: On Tue, Jun 15, 2010 at 11:06 AM, tarek attia tarek.m.at...@gmail.com wrote: Hi all,, I have an activity that contains a button in it,and once

Re: [android-developers] Service Vs Thread

2010-06-14 Thread tarek attia
to the user So Service is the best candidate for that ?? On Mon, Jun 14, 2010 at 1:09 AM, Olivier Guilyardi l...@samalyse.comwrote: On 06/14/2010 12:00 AM, Olivier Guilyardi wrote: On 06/13/2010 06:49 PM, tarek attia wrote: Thanks you so much for this clarification ,,exactly I want to make

Re: [android-developers] Start Service from Activity

2010-06-14 Thread tarek attia
Is there any tutorial or something explains how does it work? On Tue, Jun 15, 2010 at 1:24 AM, Mark Murphy mmur...@commonsware.comwrote: On Mon, Jun 14, 2010 at 6:20 PM, tarek.attia tarek.m.at...@gmail.com wrote: How can I start a service from an Activity ?? Call startService(). -- Mark

Re: [android-developers] Re: Service Vs Thread

2010-06-13 Thread tarek attia
Services Run in the background as stated here *Services*A *service* doesn't have a visual user interface, but rather runs in the background for an indefinite period of time http://developer.android.com/guide/topics/fundamentals.html So my question is when to use Services and When to Use threads

Re: [android-developers] Service Vs Thread

2010-06-13 Thread tarek attia
Thanks you so much for this clarification ,,exactly I want to make an application that keeps running while the user may went of the main application ,,and I guess Service will be the best candidate for doing that ,,, But what if the application will take much time ,,so should I make a thread

[android-developers] GPS Min Time

2010-06-06 Thread tarek attia
Hi all, When using locationManager.requestLocationUpdates(provider, 3,1, locationListener);,,,it doesn't consider the time in consideration,,just it updates the location when I change the coordinates from the DDMS , What should I do just to make the updates periodically based on the time I

[android-developers] GPS Min Time

2010-06-06 Thread tarek attia
Hi all, When using locationManager.requestLocationUpdates(provider, 3,1, locationListener);,,,it doesn't consider the time in consideration,,just it updates the location when I change the coordinates from the DDMS , What should I do just to make the updates periodically based on the time I 

[android-developers] GPS Min Time

2010-06-06 Thread tarek attia
Hi all, When using locationManager.requestLocationUpdates(provider, 3,1,locationListener);,,,it doesn't consider the time in consideration,,just it updates the location when I change the coordinates from the DDMS , What should I do just to make the updates periodically based on the time I

[android-developers] GPS Min Time

2010-06-06 Thread tarek attia
Hi all, When using locationManager.requestLocationUpdates(provider, 3,1,locationListener);,,,it doesn't consider the time in consideration,,just it updates the location when I change the coordinates from the DDMS , What should I do just to make the updates periodically based on the time I

[android-developers] Re: DDMS won't load (or doesn't parse?) KML file

2009-09-27 Thread tarek attia
Thn you,,really very thanks to you :)),, Ultimately It worked fine On Sun, Sep 27, 2009 at 10:52 PM, ZA_Alligator alasdair.mcc...@gmail.comwrote: I found this solution on StackOverflow.com http://stackoverflow.com/questions/1053721/ddms-wont-load-or-doesnt-parse-kml-file