[android-beginners] Re: Question about requestLocationUpdates()
> 1. After making this call, does it actually wait for the location > provider(gps in the above example) to complete the location update > THEN call the listener you give it? In other words, if I'm in my > locationListener() because the above call sent us there, will the > information be current? Yes. > 2. The second argument is the "minTime". If I put a value in there, > will it request location updates automatically based on the time i > give it OR does it just mean that it won't update locations until the > timer has expired to prevent battery drain, etc? The minimum time is simply that: you will not be informed of a location update until the minimum time has elapsed from the previous update. I do not think the GPS radio is turned off, though. > Bonus Question: > I can get my gps provider to work in the emulator, but I can't get the > "network" provider to work. In fact, when I list all providers, only > gps is in there. Does the emulator not have the network provider > available? AFAIK, it does not. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Question about requestLocationUpdates()
Hello, I have two questions regarding this call: Example Call: locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, locationListener); 1. After making this call, does it actually wait for the location provider(gps in the above example) to complete the location update THEN call the listener you give it? In other words, if I'm in my locationListener() because the above call sent us there, will the information be current? 2. The second argument is the "minTime". If I put a value in there, will it request location updates automatically based on the time i give it OR does it just mean that it won't update locations until the timer has expired to prevent battery drain, etc? Bonus Question: I can get my gps provider to work in the emulator, but I can't get the "network" provider to work. In fact, when I list all providers, only gps is in there. Does the emulator not have the network provider available? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] [android-beginners]GPS Application
Hi All, As iam new in java but iam trying to build an GPS application.i need a little help for that. The problem is: i have two classes command.java and positioninfo.java. i want to call requestLocationUpdates(LocationManager.GPS_PROVIDER, 1l, 1f, *command.this*) API in command class but i need to implement the locationlistner in positioninfo class. i dont know what has to be the *last paremeter of this API instead of command.this i think i need to pass the instance of the positioninfo class if yes HOW TO DO THAT??? *It would be very helpful if you guys can help me out. * *thanks and regards #Ashish Dhiman# --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: how to change Widget layout when screen is opend
thank you Alan it was realy helpfull On May 27, 2009 5:01 AM, "Alan Cassar" wrote: Yes there is. You can design 2 different layouts, one for horizontal and one for vertical. Under res folder, create folder layout-port and place your portait layout.xml file. create also layout-land and when you create a new layout inside this folder, it will automatically be considered as a landscape layout. Android will choose the appropriate layout at runtime. Alan Cassar, Software Engineer | Tel: +356 21334457 | Fax: +356 21 334156 ricston Ltd., Northfields Suite 4, Independence Avenue, Mosta MST9026 - MALTA email: alan.cas...@ricston.com | web:http://www.ricston.com -- *Disclaimer* - This email and any files transmitted with it are confidential and contain privileged or copyright information. You must not present this message to another party without first gaining permission from the sender. If you are not the intended recipient you must not copy, distribute or use this email or the information contained in it for any purpose other than to notify us. If you have received this message in error, please notify the sender immediately and delete this email from your system. We do not guarantee that this material is free from viruses or any other defects although due care has been taken to minimise the risk. Any views stated in this communication are those of the actual sender and not necessarily those of Ricston Ltd. or its subsidiaries. RTX wrote: > > please > > any help will be welcome > im stuck with vertical widget that looks li... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] vertical scrolling TableLayout
I have a TableLayout that I am trying to set as scrolling vertical but the android framework is ignoring all of the scroll related attributes. At runtime I add a bunch of TableRow objects but like I said, the fill the table until they are off the screen. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Android on Ubunty 9.04
Without changing anything, I tried it again today and it works. thanks you all! On May 26, 1:37 pm, Sean Hodges wrote: > Mina, > > Wonglik's instructions worked for me, on Ubuntu 9.04, 64bit. > > You may have forgotten to check the execute flag on both files: > > cp /etc/udev/rules.d/50-android.rules /etc/udev/rules.d/51-android.rules > chmod a+rx /etc/udev/rules.d/*-android.rules > /etc/init.d/udev reload > > If you're still having problems, please post up an "ls -l" listing of > your rules.d directory, and the contents of your rules files. > > Regards, > > Sean > > On Mon, May 25, 2009 at 3:07 PM, Mina Shokry wrote: > > > I had same on ubuntu 9.04. I did the copy and still doesn't work. > > > I am using 64-bit edition. is this related? > > > On May 25, 1:53 pm, hgschmidt > > wrote: > >> Had the same problem: Upgrade to 9.04 and couldn't connect to G1 > >> anymore. > > >> Copying the file, as mentioned, worked fine. > > >> On Apr 27, 12:00 pm, wonglik wrote: > > >> > I found some post suggesting copying (not renaming) > > >> > /etc/udev/rules.d/50-android.rules. > > >> > to > > >> > /etc/udev/rules.d/51-android.rules. > > >> > It helps. > > >> > regards > >> > w > > >> > On Apr 27, 12:07 pm, Sean Hodges wrote: > > >> > > I'll be upgrading in the next couple of days, if you don't get your > >> > > answer already by then I'll let you know how I get on. > > >> > > On Sat, Apr 25, 2009 at 11:10 AM, wonglik wrote: > > >> > > > Hi > > >> > > > Does anybody have a problem connecting G1 to Ubuntu 9.04? > > >> > > > It was working fine for me on 8.04 but now I just can not connect to > >> > > > it. > > >> > > > adb devices > > >> > > > just show empty list. > > >> > > > I have added > > >> > > > SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666" > > >> > > > to > > >> > > > /etc/udev/rules.d/50-android.rules > > >> > > > and run : > > >> > > > chmod a+rx /etc/udev/rules.d/50-android.rules > > >> > > > but it did not help. > > >> > > > Any body have any idea? > > >> > > > Kind regards > >> > > > w > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: SDL init failure, reason is: No available video device
One possibility is that the emulator is a 32-bit program that expects to use the 32-bit libX11 shared library. You might want to install this if you run on a 64-bit system. On Wed, May 27, 2009 at 11:52 PM, David Turner wrote: > then it means the emulator could not find your X11 library (libX11.so.6) > through dlopen(). > this is really weird, what kind of setup are you using ? > > > On Wed, May 27, 2009 at 7:43 AM, arunjith g wrote: > >> hi >> I have no enviornment variable as SDL_VIDEODRIVER. Im running the >> emulator in a ubuntu machine (32 bit) . I have installed my sdl libraries >> properly. please suggest me how to proceed >> >> >> On Wed, May 27, 2009 at 2:25 AM, David Turner wrote: >> >>> Try unsetting SDL_VIDEODRIVER in your environment before launching the >>> emulator. >>> That should generally fix the issue. If not, please tell me more about >>> your system. >>> >>> >>> On Tue, May 26, 2009 at 7:09 AM, arunjith wrote: >>> Hi When im trying to run the emulator i have this following error comes SDL init failure, reason is: No available video device. I have updated and installed all the necessary packages . i tried using both java5 and java6 . Can any one guide me , how to solve this problem >>> >>> >>> >> >> >> >> > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: SDL init failure, reason is: No available video device
then it means the emulator could not find your X11 library (libX11.so.6) through dlopen(). this is really weird, what kind of setup are you using ? On Wed, May 27, 2009 at 7:43 AM, arunjith g wrote: > hi > I have no enviornment variable as SDL_VIDEODRIVER. Im running the emulator > in a ubuntu machine (32 bit) . I have installed my sdl libraries properly. > please suggest me how to proceed > > > On Wed, May 27, 2009 at 2:25 AM, David Turner wrote: > >> Try unsetting SDL_VIDEODRIVER in your environment before launching the >> emulator. >> That should generally fix the issue. If not, please tell me more about >> your system. >> >> >> On Tue, May 26, 2009 at 7:09 AM, arunjith wrote: >> >>> >>> Hi >>> >>> When im trying to run the emulator i have this following error >>> comes >>> SDL init failure, reason is: No available video device. I have >>> updated and installed all the necessary packages . i tried using both >>> java5 and java6 . Can any one guide me , how to solve this problem >>> >>> >>> >>> >> >> >> > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Android emulator starts with a dialog promoting what is the HOME
Hi, Why sometimes when I start Android emulator starts with a dialog promoting what is the HOME? How can I make that dialog goes away? And how can I reset the android emulator so that the dialog appears again? I have tried starting the emulator with '-wipe-data', that does not prompt me back that dialog? Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Receiving Changes to the Phone state
Hi Zsolt, I had understood that by prefixing my BroadcastReceiver with '.', Android would look in my default namespace (i.e. I'd get "com.technicana.customercontact." for free). Is this correct? I am wondering whether my complete lack of any activity or service in my manifest is preventing things operating correctly. Has anyone had any success getting notifications of an incoming call via the ACTION_PHONE_STATE_CHANGED broadcast intent? Chris On May 26, 12:41 am, Zod wrote: > Hi Chris! > > Well the receiver android:name should be fully qualified, in your > case: "com.technicana.customercontact.CallBroadcastReceiver" > > Zsolt --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: very urgent
Nope, but the developer documents at http://Android.com has good documentation, and has some tutorials on database access. Again, better subjects for your emails please. On May 27, 2009 12:53 PM, "sahil mehta" wrote: Hello. I am Sahil here i am developing my application in android. and i want to create database for that but i dont know how to create the database... i know the methods openorcreate() open and dbhelper and all but i dont know how to use them in project so i need the code which create the database.. can anyonne please provide the code ?? thanx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] How to set the width of Dialog Box?
Hi In my project i want to set the width for dialogBox DialogBox is containing 4 textView and 4 spinner items with one Button. So i want to set the width as one textView and one spinner item will place horizontally. Any suggestions will welcome with code. Thanks in advance -Android beginner --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: how to change Widget layout when screen is opend
Title: signature Yes there is. You can design 2 different layouts, one for horizontal and one for vertical. Under res folder, create folder layout-port and place your portait layout.xml file. create also layout-land and when you create a new layout inside this folder, it will automatically be considered as a landscape layout. Android will choose the appropriate layout at runtime. Alan Cassar, Software Engineer | Tel: +356 21334457 | Fax: +356 21 334156 ricston Ltd., Northfields Suite 4, Independence Avenue, Mosta MST9026 - MALTA email: alan.cas...@ricston.com | web:http://www.ricston.com -- Disclaimer - This email and any files transmitted with it are confidential and contain privileged or copyright information. You must not present this message to another party without first gaining permission from the sender. If you are not the intended recipient you must not copy, distribute or use this email or the information contained in it for any purpose other than to notify us. If you have received this message in error, please notify the sender immediately and delete this email from your system. We do not guarantee that this material is free from viruses or any other defects although due care has been taken to minimise the risk. Any views stated in this communication are those of the actual sender and not necessarily those of Ricston Ltd. or its subsidiaries. RTX wrote: please any help will be welcome im stuck with vertical widget that looks like hell on horizontal what event is being fierd when screen is being opend i can probebly change the images by the code in there if i would only knew what event is fired and what filter do i need but im sure there is a buitin functionality for the layout changing but i couldnt find anything again any help will be great --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] very urgent
Hello. I am Sahil here i am developing my application in android. and i want to create database for that but i dont know how to create the database... i know the methods openorcreate() open and dbhelper and all but i dont know how to use them in project so i need the code which create the database.. can anyonne please provide the code ?? thanx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: very very urgent need
there is an excellent example of how to read and write to a txt file on android in the following book - The Busy Coder's Guide to Android Development by Mark Murphy. it covers all aspects of this topic and is very easy to understand. it'll also serve as a good reference for other aspects of android. On May 27, 12:02 pm, abdelkarim bezi wrote: > hi Aakash Patel > thank you > i'd like an example explaining how to access file and read data from it.(all > th procedure) > thank you. > > 2009/5/27 Aakash Patel > > > > > How is your application accessing an external resource on the computer > > like that? That is not possible. > > > On May 26, 4:02 pm, abdelkarim bezi wrote: > > > hi everybody > > > i develop an android application which need to access video file (the > > path > > > is c:\sequence.mp4) and play it. > > > my problem is that where i launch the emulator nothing is happened and > > > nothing is played. > > > i would like a detailed example which explains how to play a video file > > (in > > > C:\ or another lector) . > > > thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners]
--~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] XmlReader with InputSource encoding issue
XmlReader with InputSource crash when xml encoding is "windows-1255" what can i do i tried to set inputSource.SetEncoding(cp1255) then it gives me unknown encoding i know its probebly a java thing and not android but i will be happy to get help here --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] how to change Widget layout when screen is opend
please any help will be welcome im stuck with vertical widget that looks like hell on horizontal what event is being fierd when screen is being opend i can probebly change the images by the code in there if i would only knew what event is fired and what filter do i need but im sure there is a buitin functionality for the layout changing but i couldnt find anything again any help will be great --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Where are the table layout sample files?
Check out table_layout_10.xml: http://developer.android.com/guide/samples/ApiDemos/res/layout/table_layout_10.html It uses a table containing TextView's and Button's. Basically, you want a series of TableRow views, containing the Button views inside (each View becomes a new cell). On Tue, May 26, 2009 at 12:16 PM, abcom wrote: > > The apisamples in android-sdk samples do not contain the layout files > for API samples. Where do I find these XML files? Alternatively, how > do I create a simple layout with 3x3 table with each table cell > containg a button view object? > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: very very urgent need
Abdelkarim, Take a look at the developer guide for information on data storage, including files: http://developer.android.com/guide/topics/data/data-storage.html There is a tutorial on reading/writing files in Android here: http://www.anddev.org/working_with_files-t115.html As an aside-note: the subject title "very very urgent need" is not very descriptive. You'll get far more people reading your posts if you make the subject title clearer. On Wed, May 27, 2009 at 8:02 AM, abdelkarim bezi wrote: > > hi Aakash Patel > thank you > i'd like an example explaining how to access file and read data from it.(all > th procedure) > thank you. > > 2009/5/27 Aakash Patel >> >> How is your application accessing an external resource on the computer >> like that? That is not possible. >> >> On May 26, 4:02 pm, abdelkarim bezi wrote: >> > hi everybody >> > i develop an android application which need to access video file (the >> > path >> > is c:\sequence.mp4) and play it. >> > my problem is that where i launch the emulator nothing is happened and >> > nothing is played. >> > i would like a detailed example which explains how to play a video file >> > (in >> > C:\ or another lector) . >> > thank you. >> > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: can we use "adb install" or other else command to install all of .apk in a Dir once?
Luke, Perhaps you could run "adb install" across the directory contents? e.g. find ~/Desktop -name "*.apk" -execdir adb install {} \; On Tue, May 26, 2009 at 7:47 AM, Luke wrote: > > Greetings, > As the tittle. > Thx > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: very very urgent need
hi Aakash Patel thank you i'd like an example explaining how to access file and read data from it.(all th procedure) thank you. 2009/5/27 Aakash Patel > > How is your application accessing an external resource on the computer > like that? That is not possible. > > On May 26, 4:02 pm, abdelkarim bezi wrote: > > hi everybody > > i develop an android application which need to access video file (the > path > > is c:\sequence.mp4) and play it. > > my problem is that where i launch the emulator nothing is happened and > > nothing is played. > > i would like a detailed example which explains how to play a video file > (in > > C:\ or another lector) . > > thank you. > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---