[android-developers] Re: HttpsURLConnection returns -1 code on second request

2010-05-16 Thread g...@devicedriven
@Arkaitz Which server are u using?? i also had the same problem with tomcat server...but after playing around with the code i finally got it right... Regards Gino On May 15, 11:21 pm, Arkaitz Jimenez arkai...@gmail.com wrote: Hi all, I think I'm experiencing the same

[android-developers] Re: how do i get the android unique id??

2010-03-16 Thread g...@devicedriven
the funniest part is..on the emulator too its giving the value like android id..not null.. i explicitly checked it using a try catch. and i tried using it on a nexux one,,still same result.. On Mar 16, 8:12 pm, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: It might be a good idea,

[android-developers] how do i get the android unique id??

2010-03-15 Thread g...@devicedriven
can any 1 tell me how to get an unique id from an android phone?? whenever i try to get the unique id from the phone as a string it always shows android id and no other unique hex values...how do i get that one?? String id=Settings.Secure.getString(contentResolver, Settings.Secure.ANDROID_ID);

[android-developers] Re: Images from Xml

2010-02-16 Thread g...@devicedriven
hii look at the following tutorial http://www.anddev.org/parsing_xml_from_the_net_-_using_the_saxparser-t353.html this explains xml parsing in a simple manner..or if you find that difficult you could use the default implementation of SAX parser ... Regards Gino On Feb 15, 5:52 pm,

[android-developers] Re: Emulator Loading Error

2010-02-15 Thread g...@devicedriven
hi sasikumar.. whats your s/m configuration?? even i get almost 4 such errors.. clicking on wait will resume them...i think this is due to limited resources.. im working on windows xp machine/1gb ram and using ganymade eclipse Regards Gino On Feb 15, 4:33 pm, Sasikumar.S

[android-developers] Re: How to perform socket communication

2010-01-24 Thread g...@devicedriven
i think your problem is the ip address..127.0.0.1 is the device/ emulator itself not the machine on which you are programming...if you need to call localhost u should try this address--10.0.2.2 read this too--http://developer.android.com/guide/appendix/faq/ Regards Gino On Jan 22, 12:44 pm,

[android-developers] Re: Data connectivity problem.Server failed to communicate

2010-01-19 Thread g...@devicedriven
found the solution.. it was the problem with tomcat web-server.. when i switched to XAMPP web- server everything worked just fine... does'nt android support tomcat web server?? On Jan 18, 9:27 am, g...@devicedriven ginokur...@gmail.com wrote: Can any body tell me why this is happening..Whenever

[android-developers] Data connectivity problem.Server failed to communicate

2010-01-17 Thread g...@devicedriven
Can any body tell me why this is happening..Whenever i try to open a website located in the intranet server,(or even a local machine with tomcat web server) i get this message...Data connectivity problem..Server failed to communicate.Please try again later... The browser works fine for all other

[android-developers] Re: Eclipse Crashes

2010-01-11 Thread g...@devicedriven
Eclipse and start it up again. - Mike On Dec 11, 4:50 am, g...@devicedriven ginokur...@gmail.com wrote: Whenever i try to open the layout.xml file in eclipse..eclipse crashes and exits without any messages.. However if i try to open the xml file without using the layout editor

[android-developers] Re: Alarm

2010-01-10 Thread g...@devicedriven
IF as mark told u need to use an alarm manager class,here is an example: Intent alrm_intent=new Intent(this,alarmreceiver.class); /*alarmreceiver.class--this is another class which receives the alarm broadcast which we are going to broadcast*/ AlarmManager

[android-developers] Re: No route to host issue, but Browser application works fine

2010-01-07 Thread g...@devicedriven
yup..you can refer to the localhost by this ip--10.0.2.2 This is because when you are specifying localhost to the device/ emulator it is a reference to the phone\emulator itself and not the local machine read this too--http://developer.android.com/guide/appendix/faq/

[android-developers] How can i know internet data usage??

2010-01-04 Thread g...@devicedriven
Are there any inbuilt classes ya methods that help to count the number of bytes sent/received...I'm trying to develop a light weight browser and am doing this as an option.As mobile users are charged based on the bytes they browse..i think this is a mandatory requirement,,but the more i google it

[android-developers] Re: Null pointer exception

2009-12-31 Thread g...@devicedriven
Hi Jason I too was irked with the same exception which got called in some of my applications and i couldn't find the source for the exception.However i think i found the reason for it..Here is what i found: 1This exception was called in all the programs in which i used arrays 2Just try

[android-developers] Re: How to use broadcast receivers

2009-12-31 Thread g...@devicedriven
You can write an application with just a broadcast receiver..but u need to register them in ur mainfest file as receiver android:name=YOUR_RECEICER_FILE NAME /receiver you can pass the intent filters in this itself like this receiver android:name=YOUR_RECEICER_FILE NAME intent-filter action

[android-developers] Re: Eclipse Crashes

2009-12-13 Thread g...@devicedriven
/Object;+149 j org.eclipse.core.runtime.adaptor.EclipseStarter.run([Ljava/lang/ String;Ljava/lang/Runnable;)Ljava/lang/Object;+183 On Dec 11, 4:50 pm, g...@devicedriven ginokur...@gmail.com wrote: Whenever i try to open the layout.xml file ineclipse..eclipsecrashes and exits without any messages

[android-developers] Eclipse Crashes

2009-12-11 Thread g...@devicedriven
Whenever i try to open the layout.xml file in eclipse..eclipse crashes and exits without any messages.. However if i try to open the xml file without using the layout editor of ADT plugin everything is fineit will open as an editable file..the problem started only after i updated the latest