[android-beginners] Re: How do I get Current GPS Location?

2009-03-14 Thread Issac Trotts
On Mon, Mar 9, 2009 at 1:57 AM, Issac Trotts wrote: > I tried this on my dev phone, but the app always crashes > at requestLocationUpdates(LocationManager.GPS_PROVIDER,...). > A screenshot of the backtrace is attached, not that it seems to help much. > > So far I haven't found a single example of

[android-beginners] Re: How often does gmail sync on the G1?

2009-03-14 Thread Jean-Baptiste Queru
It is pushed from the server, not polled by the client, so there's no fundamental notion of a sync interval. The "only" cost of the system is that of keeping a TCP socket open, which is reasonably low. JBQ On Fri, Mar 13, 2009 at 11:52 AM, Troglodad wrote: > > I am used to Outlook Express where

[android-beginners] New to SDK. What to do?

2009-03-14 Thread australopitecus
Hello, folks! A friend of mine came to me with a problem he could not solve: he wants to install SDK Android (which I've never heard of) to use his G1 Phone as a modem, and he has a Mac Book. Downloading the version 1.1 of SDK, all I could find was a package of files and folders, but the website

[android-beginners] Re: g1 developer firmware update

2009-03-14 Thread dqjiang...@gmail.com
Thanks. On Mar 14, 1:46 pm, Michael Bollmann wrote: > Thank you very much :) > > On 13 Mrz., 23:59, sm1 wrote: > > > > > Merci Jean-Baptiste. > > > On Mar 13, 5:36 pm, Jean-Baptiste Queru wrote: > > > >http://www.htc.com/www/support/android/adp.html > > > > JBQ > > > > On Fri, Mar 13, 2009 at

[android-beginners] My freeware concept for a multimedia entertainment device.

2009-03-14 Thread Loris
{GamePad MultiMedia mobile entertainment device concept specification. Similar to Nintendo DSi but with Larger and higher definition screens, Wider keys each with own display, Much more SSD memory, Better CPU and GPUs, and No camera on the outside, just one screen side camera for video phone. Ru

[android-beginners] Re: How to add SMS to inbox in android programmatically?

2009-03-14 Thread sync qa3
test delete spam On Fri, Mar 13, 2009 at 2:01 AM, senthil wrote: > > Hi, > I have used the below code to send the SMS, But my need is the same > sms should be reflected in the android native sms application. > SmsManager smsManager = SmsManager.getDefault(); > smsManager.sendTextMessage(destAddr

[android-beginners] Internet permission crash

2009-03-14 Thread The Savage Killer
When i add internet permissions to my manifest file my application refuses to even start and i get this in my console: [2009-03-13 20:06:17 - Funny RSS] ActivityManager: Starting: Intent { comp={dev.funnyrss/dev.funnyrss.FRSS} } [2009-03-13 20:06:17 - Funny RSS] ActivityManager: [1] Killed

[android-beginners] Internet permission won't let application start

2009-03-14 Thread The Savage Killer
Basically when i add internet permissions to my manifest file my application refuses to even start. 03-13 18:05:59.262: DEBUG/AndroidRuntime(662): >> AndroidRuntime START << 03-13 18:05:59.262: DEBUG/AndroidRuntime(662): CheckJNI is ON 03-13 18:05:59.493: DEBUG/AndroidRunt

[android-beginners] ID3 Tags

2009-03-14 Thread xinit
Hello I am looking into Media API's for playing music on Android. Can someone please help me to explain how I can extract ID3 information from an MP3 File ? I think the android.provider.MediaStore provides the API's but I cant figure out how to use these API's. Does anyone know of some examples

[android-beginners] Re: Basic file input / output tutorial

2009-03-14 Thread superjet
Thanks man! I'll give this a shot tomorrow night. On Mar 12, 1:57 pm, Joseph Arceneaux wrote: > I'm not aware of a tutorial, but it's pretty easy - here's some code that > reads in a file.  Check out the File and File*Stream classes. > Joe > >         String path = "/data/data/com.company.app/fi

[android-beginners] Re: How to set a mask on an EditText widget?

2009-03-14 Thread Gesh
On Mar 14, 8:50 am, frizzo wrote: > I'd like users to be able to enter a price (e.g. 4.49 or 10.99) and > that's all, no negative numbers or any of that.  Is there a feature > that allows me to do that?  I can't seem to find support for masks. You can use the "android:numeric" xml attribute. Or

[android-beginners] How often does gmail sync on the G1?

2009-03-14 Thread Troglodad
I am used to Outlook Express where I can set the interval for how often my PC checks for new emails. I can't find an adjustable variable for gmail on my phone or the website- just an "autosync" option. (I'd like to check once every hour) Does the phone notify me, when set on auto, as soon as an e

[android-beginners] Re: Problem with ProgressDialog

2009-03-14 Thread sync qa3
FgfcccbvfCfkgcghbxh gy On Mar 13, 2009 11:19 AM, "rustyventure" wrote: Hi, Everyone: I'm having some trouble displaying a ProgressDialog. Basically, I want to show a progress "popup" when a user presses a button in my app. Here's the code: OnClickListener updateButtonPressed = new OnClickLis

[android-beginners] INTERNET permission won't let my app start

2009-03-14 Thread The Savage Killer
My application won't start anymore after I've given it internet permissions in the manifest file, without the permissions i get a simple socket error. Here's a LogCat of a debug run: 03-13 18:05:59.262: DEBUG/AndroidRuntime(662): >> AndroidRuntime START << 03-13 18:05:59.2

[android-beginners] tools/geo seems to be missing.

2009-03-14 Thread Issac Trotts
The documentation ( http://developer.android.com/guide/topics/location/index.html) says there is supposed to be a tool called tools/geo, but it's not there in android-sdk-mac_x86-1.0_r2 or in android-sdk-mac_x86-1.1_r1. Can someone tell me where to find this? - Issac --~--~-~--~~-

[android-beginners] Re: how to read specific part in a string

2009-03-14 Thread sm1
Albert, I don't think that it can be done using StringTokenizer. serge On Mar 14, 12:17 pm, Albert Hernández wrote: > I think that the methods proposed here are very heavy: > XML Parsing is too much for that easy task > "Check it manually" is not optimal > > I suggest you to have a look on the c

[android-beginners] Re: How to perform a HTTP request ?

2009-03-14 Thread Mark Murphy
binklee wrote: > I'm trying to perform a HTTP request and to read the answer. > > My first idea was to import java.net.*; and to use : > > URL url = new URL(myUrl); > String answer = (String)url.getContent(); // !!! produce an error in > Android ! Try this: http://www.exampledepot.com/egs/jav

[android-beginners] Spinner problems

2009-03-14 Thread Danny
Hi all: I have some problems with spinners 1. I have 3 spinners: type_spinner, from_spinner, to_spinner. Problem: from_spinner and to_spinner does not display correctly what are selected AFTER switching to landscape mode ( or portrait mode ) by pressing Ctrl + F11. The position selected of from_s

[android-beginners] How to perform a HTTP request ?

2009-03-14 Thread binklee
Hi, I'm trying to perform a HTTP request and to read the answer. My first idea was to import java.net.*; and to use : URL url = new URL(myUrl); String answer = (String)url.getContent(); // !!! produce an error in Android ! After some research in the group, I am confused on what should I do. S

[android-beginners] Re: How to set a mask on an EditText widget?

2009-03-14 Thread frizzo
That sounds so VB2 On Mar 14, 5:46 am, Mark Murphy wrote: > frizzo wrote: > > I'd like users to be able to enter a price (e.g. 4.49 or 10.99) and > > that's all, no negative numbers or any of that.  Is there a feature > > that allows me to do that?  I can't seem to find support for masks. > > Yo

[android-beginners] Re: How to run the 'AllTests' of ApiDemos in the android sdk sample

2009-03-14 Thread Gavin Aiken
Hey, You can't run these tests as simple java JUnit tests, they need to be run on the device. The process is pretty straight forward and is best explained here; http://dtmilano.blogspot.com/2008/11/android-testing-on-android-platf.html What I am currently trying to work out is how to debug my te

[android-beginners] Re: Update Gallery and Listview after Thread

2009-03-14 Thread Mark Murphy
guruk wrote: > I have a Gallery with ImageAdapter and a Listview with > EfficientAdapter > .. both come initialized with a set of Data in an Array. (for those who are wondering, EfficientAdapter is part of the API samples, not part of the SDK itself) > Now i update the Data by downloading new In

[android-beginners] Re: encode html with inputstream

2009-03-14 Thread guruk
Hi Albert, thanks for your Effort, you already answered in my other post. But URLEncoder, looks to encode the URL itself, not the Content. Now I have this Solution for all other Beginners: For example after I read my Content with: while ((current = is.read()) != -1) { baf.append((byte) current)

[android-beginners] Re: how to read specific part in a string

2009-03-14 Thread guruk
Hi and thanks for all your great help So I also like to share what I use now public String TakeIt (String xtag, String xhtml) { String x1tag = "<" + xtag + ">"; String x2tag = ""; int xstart = xhtml.indexOf(x1tag); int x1le

[android-beginners] Update Gallery and Listview after Thread

2009-03-14 Thread guruk
Hi, I have a Gallery with ImageAdapter and a Listview with EfficientAdapter .. both come initialized with a set of Data in an Array. Now i update the Data by downloading new Infos from the Net in a Thread. I know from debugging that the Arrays are updated, but not the GUI. So how to update the

[android-beginners] Re: how to read specific part in a string

2009-03-14 Thread Albert Hernández
I think that the methods proposed here are very heavy: XML Parsing is too much for that easy task "Check it manually" is not optimal I suggest you to have a look on the class StringTokenizer: http://developer.android.com/reference/java/util/StringTokenizer.html Albert On Mar 13, 11:57 pm, sm1

[android-beginners] Re: encode html with inputstream

2009-03-14 Thread Albert Hernández
Hi, Check these classes: URLEncoder: http://developer.android.com/reference/java/net/URLEncoder.html URLDecoder: http://developer.android.com/reference/java/net/URLDecoder.html I hope that is what you need. Albert. On Mar 13, 1:37 pm, guruk wrote: > Hi, > > i am reading a text from the net an

[android-beginners] Re: g1 developer firmware update

2009-03-14 Thread Michael Bollmann
Thank you very much :) On 13 Mrz., 23:59, sm1 wrote: > Merci Jean-Baptiste. > > On Mar 13, 5:36 pm, Jean-Baptiste Queru wrote: > > >http://www.htc.com/www/support/android/adp.html > > > JBQ > > > On Fri, Mar 13, 2009 at 11:06 AM,MichaelBollmann > > > wrote: > > > > this might be a stupid quest

[android-beginners] Re: How to set a mask on an EditText widget?

2009-03-14 Thread Mark Murphy
frizzo wrote: > I'd like users to be able to enter a price (e.g. 4.49 or 10.99) and > that's all, no negative numbers or any of that. Is there a feature > that allows me to do that? I can't seem to find support for masks. You can use setKeyListener() on the EditText to supply it something that

[android-beginners] Re: Yet another layout question.

2009-03-14 Thread Mark Murphy
frizzo wrote: > I have a screen, where most of the information is layed out in a table > manner, thus I use a TableLayout. However, I want to have button, > that aligns to the bottom of the screen. I've tried using > android:layout_alignParentBottom="true", but that is ignored in > TableLayout.

[android-beginners] How to set a mask on an EditText widget?

2009-03-14 Thread frizzo
I'd like users to be able to enter a price (e.g. 4.49 or 10.99) and that's all, no negative numbers or any of that. Is there a feature that allows me to do that? I can't seem to find support for masks. --~--~-~--~~~---~--~~ You received this message because you ar

[android-beginners] Yet another layout question.

2009-03-14 Thread frizzo
I have a screen, where most of the information is layed out in a table manner, thus I use a TableLayout. However, I want to have button, that aligns to the bottom of the screen. I've tried using android:layout_alignParentBottom="true", but that is ignored in TableLayout. What options do I have?